Skip to content

Commit

Permalink
Merge pull request #1379 from Yopli2k/totales-diario-contable
Browse files Browse the repository at this point in the history
Añadida columna saldo en el diario contable
  • Loading branch information
NeoRazorX authored Nov 5, 2023
2 parents 5c137e7 + 8686b39 commit bb9dffe
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Core/Lib/Accounting/Ledger.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public function generate(int $idcompany, string $dateFrom, string $dateTo, array
}
$ledger['totals'] = [[
'debe' => $this->formatMoney($debe, true),
'haber' => $this->formatMoney($haber, true)
'haber' => $this->formatMoney($haber, true),
'saldo' => $this->formatMoney($debe - $haber, true)
]];
break;

Expand All @@ -94,7 +95,8 @@ public function generate(int $idcompany, string $dateFrom, string $dateTo, array
}
$ledger['totals'] = [[
'debe' => $this->formatMoney($debe, true),
'haber' => $this->formatMoney($haber, true)
'haber' => $this->formatMoney($haber, true),
'saldo' => $this->formatMoney($debe - $haber, true)
]];
break;

Expand All @@ -109,10 +111,10 @@ public function generate(int $idcompany, string $dateFrom, string $dateTo, array
$ledger['lines'][] = [
'asiento' => '',
'fecha' => '',
'cuenta' => '',
'concepto' => '',
'debe' => $this->formatMoney($debe, true),
'haber' => $this->formatMoney($haber, true)
'haber' => $this->formatMoney($haber, true),
'saldo' => $this->formatMoney($debe - $haber, true)
];
break;
}
Expand Down

0 comments on commit bb9dffe

Please sign in to comment.