Skip to content

Commit

Permalink
fix: indicazione scadenze da pagare in fatture
Browse files Browse the repository at this point in the history
  • Loading branch information
Pek5892 committed Oct 23, 2024
1 parent 4e7f99e commit 12856fb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/fatture/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -513,15 +513,15 @@
<strike>';
}

echo (empty($scadenza->da_pagare) ? '<i class="fa fa-exclamation-triangle"></i>' : '').moneyFormat($scadenza->da_pagare);
echo (empty($scadenza->da_pagare) ? '<i class="fa fa-exclamation-triangle"></i>' : '').moneyFormat(abs($scadenza->da_pagare));

if ($pagamento_iniziato) {
echo '
</strike>';
}

if ($pagamento_iniziato && $scadenza->pagato != $scadenza->da_pagare) {
echo ' ('.moneyFormat($scadenza->da_pagare - $scadenza->pagato).')';
if ($pagamento_iniziato && abs($scadenza->pagato) != abs($scadenza->da_pagare)) {
echo ' ('.moneyFormat(abs($scadenza->da_pagare) - abs($scadenza->pagato)).')';
}

echo '
Expand Down

0 comments on commit 12856fb

Please sign in to comment.