Skip to content

Commit

Permalink
Update card.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ems-co authored Dec 26, 2024
1 parent 5cc44e3 commit b9013e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/compta/bank/various_payment/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ function setPaymentType()
print '<tr><td class="nowrap">';
print $form->editfieldkey('AccountAccounting', 'accountancy_code', $object->accountancy_code, $object, (!$alreadyaccounted && $permissiontoadd), 'string', '', 0);
print '</td><td>';
if ($action == 'editaccountancy_code' && (!$alreadyaccounted && $permissiontoadd)) {
if ($action == 'editaccountancy_code' || (!$alreadyaccounted && $permissiontoadd)) {
//print $form->editfieldval('AccountAccounting', 'accountancy_code', $object->accountancy_code, $object, (!$alreadyaccounted && $user->hasRight('banque', 'modifier')), 'string', '', 0);
print $formaccounting->formAccountingAccount($_SERVER['PHP_SELF'].'?id='.$object->id, $object->accountancy_code, 'accountancy_code', 0, 1, '', 1);
} else {
Expand Down

0 comments on commit b9013e1

Please sign in to comment.