mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix bankentries label for supplier payments
This commit is contained in:
parent
c61e4b0e25
commit
dccaf116a2
|
|
@ -522,11 +522,13 @@ class BonPrelevement extends CommonObject
|
|||
} else {
|
||||
if ($this->type == 'bank-transfer') {
|
||||
$modeforaddpayment = 'payment_supplier';
|
||||
$labelforaddpayment = '(BankTransferPayment)';
|
||||
} else {
|
||||
$modeforaddpayment = 'payment';
|
||||
$labelforaddpayment = '(WithdrawalPayment)';
|
||||
}
|
||||
|
||||
$result = $paiement->addPaymentToBank($user, $modeforaddpayment, '(WithdrawalPayment)', $bankaccount, '', '');
|
||||
$result = $paiement->addPaymentToBank($user, $modeforaddpayment, $labelforaddpayment, $bankaccount, '', '');
|
||||
if ($result < 0)
|
||||
{
|
||||
$error++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user