FIX: situation invoices: block progress percentage change for discount lines
This commit is contained in:
parent
f99f1d83c2
commit
66dd7e30ae
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user