diff --git a/templates/partitario_mastrino/bottom.php b/templates/partitario_mastrino/bottom.php
index 74e50396d..be07e4aef 100644
--- a/templates/partitario_mastrino/bottom.php
+++ b/templates/partitario_mastrino/bottom.php
@@ -35,6 +35,7 @@ if (get('lev') == '2' || get('lev') == '3') {
SALDO FINALE |
'.moneyFormat(abs($dare)).' |
'.moneyFormat(abs($avere)).' |
+ '.moneyFormat(abs($scalare)).' |
';
} elseif (get('lev') == '1') {
$totale_attivo = 0;
diff --git a/templates/partitario_mastrino/piece.php b/templates/partitario_mastrino/piece.php
index 24f3f13fc..aa90fc004 100644
--- a/templates/partitario_mastrino/piece.php
+++ b/templates/partitario_mastrino/piece.php
@@ -38,5 +38,12 @@ echo '
echo ' |
'.moneyFormat(abs($record['totale']), 2).' | ';
}
+
+ $scalare += $record['totale'];
+
+ echo '
+
+ '.moneyFormat($scalare, 2).'
+ | ';
echo '';
$prev_titolo = $record['titolo'];
diff --git a/templates/partitario_mastrino/top.php b/templates/partitario_mastrino/top.php
index 5415188a5..bd065e5a9 100644
--- a/templates/partitario_mastrino/top.php
+++ b/templates/partitario_mastrino/top.php
@@ -24,9 +24,12 @@ echo '
DATA |
- DESCRIZIONE |
- DARE |
- AVERE |
+ DESCRIZIONE |
+ DARE |
+ AVERE |
+ SCALARE |
';
+
+ $scalare = 0;
\ No newline at end of file