mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-07 10:08:27 +01:00
Code comment
This commit is contained in:
@@ -516,8 +516,9 @@ abstract class CommonDocGenerator
|
|||||||
// Add vat by rates
|
// Add vat by rates
|
||||||
if (is_array($object->lines) && count($object->lines) > 0) {
|
if (is_array($object->lines) && count($object->lines) > 0) {
|
||||||
$totalUp = 0;
|
$totalUp = 0;
|
||||||
|
// Set substitution keys for different VAT rates
|
||||||
foreach ($object->lines as $line) {
|
foreach ($object->lines as $line) {
|
||||||
// $line->tva_tx format depends on database field accuraty, no reliable. This is kept for backward compatibility
|
// $line->tva_tx format depends on database field accuracy, no reliable. This is kept for backward compatibility
|
||||||
if (empty($resarray[$array_key.'_total_vat_'.$line->tva_tx])) {
|
if (empty($resarray[$array_key.'_total_vat_'.$line->tva_tx])) {
|
||||||
$resarray[$array_key.'_total_vat_'.$line->tva_tx] = 0;
|
$resarray[$array_key.'_total_vat_'.$line->tva_tx] = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user