Commit ae6f3c28ebc67d5d585c5e4b9f6962133cd716b8
Exists in
3.5
and in
1 other branch
Merge pull request #97 from aspangaro/3.5
Update 3.5
Showing
3 changed files
with
4 additions
and
4 deletions
Show diff stats
accountingex/admin/fiche.php
... | ... | @@ -241,8 +241,8 @@ if ($action == 'create') { |
241 | 241 | print '<td colspan="2">' . $accounting->label . '</td></tr>'; |
242 | 242 | |
243 | 243 | $accp = new AccountingAccount($db); |
244 | - if ($accounting->account_parent) { | |
245 | - $accp->fetch('', $accounting->account_parent); | |
244 | + if (! empty($accounting->account_parent)) { | |
245 | + $accp->fetch($accounting->account_parent, ''); | |
246 | 246 | } |
247 | 247 | print '<tr><td>' . $langs->trans("Accountparent") . '</td>'; |
248 | 248 | print '<td colspan="2">' . $accp->account_number . ' - ' . $accp->label . '</td></tr>'; | ... | ... |
accountingex/customer/lignes.php
... | ... | @@ -52,7 +52,7 @@ $account_parent = GETPOST('account_parent'); |
52 | 52 | // Security check |
53 | 53 | if ($user->societe_id > 0) |
54 | 54 | accessforbidden(); |
55 | -if (! $user->rights->accountingex->admin) | |
55 | +if (! $user->rights->accountingex->access) | |
56 | 56 | accessforbidden(); |
57 | 57 | |
58 | 58 | $formventilation = new FormVentilation($db); | ... | ... |
accountingex/supplier/lignes.php
... | ... | @@ -53,7 +53,7 @@ $langs->load("accountingex@accountingex"); |
53 | 53 | // Security check |
54 | 54 | if ($user->societe_id > 0) |
55 | 55 | accessforbidden(); |
56 | -if (! $user->rights->accountingex->admin) | |
56 | +if (! $user->rights->accountingex->access) | |
57 | 57 | accessforbidden(); |
58 | 58 | |
59 | 59 | $formventilation = new FormVentilation($db); | ... | ... |