FIX: situation invoices: block progress percentage change for discount lines

This commit is contained in:
Marc de Lima Lucio 2019-05-22 10:46:38 +02:00
parent f99f1d83c2
commit 66dd7e30ae

View File

@ -3031,6 +3031,12 @@ class Facture extends CommonInvoice
{
global $mysoc,$user;
// Progress should never be changed for discounts
if(($line->info_bits & 2) == 2)
{
return;
}
include_once(DOL_DOCUMENT_ROOT . '/core/lib/price.lib.php');
// Cap percentages to 100