update_price: add invoice_supplier element name

'invoice_supplier' as an element name was missing in test conditions to skip the update_price function
This commit is contained in:
simicar29 2020-03-12 12:53:17 +01:00 committed by GitHub
parent 0babab2824
commit 4f4b778c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2916,7 +2916,7 @@ abstract class CommonObject
$MODULE = "MODULE_DISALLOW_UPDATE_PRICE_ORDER";
elseif ($this->element == 'facture' || $this->element == 'invoice')
$MODULE = "MODULE_DISALLOW_UPDATE_PRICE_INVOICE";
elseif ($this->element == 'facture_fourn' || $this->element == 'supplier_invoice')
elseif ($this->element == 'facture_fourn' || $this->element == 'supplier_invoice' || $this->element == 'invoice_supplier')
$MODULE = "MODULE_DISALLOW_UPDATE_PRICE_SUPPLIER_INVOICE";
elseif ($this->element == 'order_supplier' || $this->element == 'supplier_order')
$MODULE = "MODULE_DISALLOW_UPDATE_PRICE_SUPPLIER_ORDER";