addline manage rank on its own if not provided

This commit is contained in:
atm-greg 2018-05-02 17:07:27 +02:00
parent 5c024ceb54
commit 942e2f40bf

View File

@ -1383,6 +1383,11 @@ class FactureFournisseur extends CommonInvoice
if (empty($txlocaltax1)) $txlocaltax1=0;
if (empty($txlocaltax2)) $txlocaltax2=0;
if ($rang < 0) {
$rangmax = $this->line_max();
$rang = $rangmax + 1;
}
$localtaxes_type=getLocalTaxesFromRate($txtva, 0, $mysoc, $this->thirdparty);
// Clean vat code