Merge pull request #12016 from yashkothari1946/yashkothari1946-patch-1
#11966 bug fix
This commit is contained in:
commit
c529979005
@ -1042,7 +1042,7 @@ if ($source == 'invoice')
|
|||||||
|
|
||||||
if ($action != 'dopayment') // Do not change amount if we just click on first dopayment
|
if ($action != 'dopayment') // Do not change amount if we just click on first dopayment
|
||||||
{
|
{
|
||||||
$amount=price2num($invoice->total_ttc - ($invoice->getSommePaiement() + $invoice->getSumCreditNotesUsed()));
|
$amount=price2num($invoice->total_ttc - ($invoice->getSommePaiement() + $invoice->getSumCreditNotesUsed() + $invoice->getSumDepositsUsed()));
|
||||||
if (GETPOST("amount", 'int')) $amount=GETPOST("amount", 'int');
|
if (GETPOST("amount", 'int')) $amount=GETPOST("amount", 'int');
|
||||||
$amount=price2num($amount);
|
$amount=price2num($amount);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user