Add debug info to show raw database values in declaration list
This commit is contained in:
parent
2fefe384b7
commit
5cae470880
@ -147,8 +147,8 @@ if (empty($declarations)) {
|
|||||||
// VAT refund case
|
// VAT refund case
|
||||||
print '<td class="center"><strong style="color: #28a745;">' . price($d['vat_credit']) . '</strong><br><small>' . $langs->trans("VATToReceive") . '</small></td>';
|
print '<td class="center"><strong style="color: #28a745;">' . price($d['vat_credit']) . '</strong><br><small>' . $langs->trans("VATToReceive") . '</small></td>';
|
||||||
} elseif ($d['net_vat_due'] > 0) {
|
} elseif ($d['net_vat_due'] > 0) {
|
||||||
// VAT due case
|
// VAT due case - DEBUG: Show raw value
|
||||||
print '<td class="center"><strong style="color: #dc3545;">' . price($d['net_vat_due']) . '</strong><br><small>' . $langs->trans("NetVATDue") . '</small></td>';
|
print '<td class="center"><strong style="color: #dc3545;">' . price($d['net_vat_due']) . '</strong><br><small>' . $langs->trans("NetVATDue") . ' (DB: ' . $d['net_vat_due'] . ')</small></td>';
|
||||||
} else {
|
} else {
|
||||||
// Balanced case
|
// Balanced case
|
||||||
print '<td class="center"><strong>' . price(0) . '</strong><br><small>' . $langs->trans("VATBalanced") . '</small></td>';
|
print '<td class="center"><strong>' . price(0) . '</strong><br><small>' . $langs->trans("VATBalanced") . '</small></td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user