Update newpayment.php

This commit is contained in:
Laurent Destailleur 2019-10-03 15:54:52 +02:00 committed by GitHub
parent 9ade323648
commit 78751fe0ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1042,7 +1042,8 @@ if ($source == 'invoice')
if ($action != 'dopayment') // Do not change amount if we just click on first dopayment
{
$amount=price2num($invoice->total_ttc - ($invoice->getSommePaiement() + $invoice->getSumCreditNotesUsed() + $invoice->getSumDepositsUsed())); if (GETPOST("amount", 'int')) $amount=GETPOST("amount", 'int');
$amount=price2num($invoice->total_ttc - ($invoice->getSommePaiement() + $invoice->getSumCreditNotesUsed() + $invoice->getSumDepositsUsed()));
if (GETPOST("amount", 'int')) $amount=GETPOST("amount", 'int');
$amount=price2num($amount);
}