addline manage rank on its own if not provided
This commit is contained in:
parent
5c024ceb54
commit
942e2f40bf
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user