FIX: Accountancy - Fix on bank journal to support subcription
This commit is contained in:
parent
5bfc65676c
commit
f5c1406beb
@ -238,7 +238,7 @@ if ($result) {
|
|||||||
$paymentsalstatic->ref = $links[$key]['url_id'];
|
$paymentsalstatic->ref = $links[$key]['url_id'];
|
||||||
$paymentsalstatic->label = $links[$key]['label'];
|
$paymentsalstatic->label = $links[$key]['label'];
|
||||||
$tabpay[$obj->rowid]["lib"] .= ' ' . $paymentsalstatic->getNomUrl(2);
|
$tabpay[$obj->rowid]["lib"] .= ' ' . $paymentsalstatic->getNomUrl(2);
|
||||||
$tabtp[$obj->rowid][$account_employee ] += $obj->amount;
|
$tabtp[$obj->rowid][$account_employee] += $obj->amount;
|
||||||
} else if ($links[$key]['type'] == 'banktransfert') {
|
} else if ($links[$key]['type'] == 'banktransfert') {
|
||||||
$tabpay[$obj->rowid]["lib"] .= ' ' . $langs->trans("BankTransfer");
|
$tabpay[$obj->rowid]["lib"] .= ' ' . $langs->trans("BankTransfer");
|
||||||
$tabtp[$obj->rowid][$account_transfer] += $obj->amount;
|
$tabtp[$obj->rowid][$account_transfer] += $obj->amount;
|
||||||
@ -599,6 +599,9 @@ else {
|
|||||||
if ($reflabel == '(DonationPayment)') {
|
if ($reflabel == '(DonationPayment)') {
|
||||||
$reflabel = $langs->trans('Donation');
|
$reflabel = $langs->trans('Donation');
|
||||||
}
|
}
|
||||||
|
if ($reflabel == '(SubscriptionPayment)') {
|
||||||
|
$reflabel = $langs->trans('SubscriptionPayment');
|
||||||
|
}
|
||||||
|
|
||||||
// Bank
|
// Bank
|
||||||
foreach ( $tabbq[$key] as $k => $mt ) {
|
foreach ( $tabbq[$key] as $k => $mt ) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user