Fix multi VAT deposit when special lines are in origin document
This commit is contained in:
parent
6eb2204c2b
commit
22a3721dda
@ -1075,6 +1075,7 @@ if (empty($reshook))
|
|||||||
$TTotalByTva = array();
|
$TTotalByTva = array();
|
||||||
foreach ($srcobject->lines as &$line)
|
foreach ($srcobject->lines as &$line)
|
||||||
{
|
{
|
||||||
|
if(! empty($line->special_code)) continue;
|
||||||
$TTotalByTva[$line->tva_tx] += $line->total_ttc ;
|
$TTotalByTva[$line->tva_tx] += $line->total_ttc ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user