Merge pull request #7801 from atm-maxime/fix_multi_vat_deposit

Fix multi VAT deposit when special lines are in origin document
This commit is contained in:
Laurent Destailleur 2017-11-11 18:03:31 +01:00 committed by GitHub
commit d29233f553
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1075,6 +1075,7 @@ if (empty($reshook))
$TTotalByTva = array();
foreach ($srcobject->lines as &$line)
{
if(! empty($line->special_code)) continue;
$TTotalByTva[$line->tva_tx] += $line->total_ttc ;
}