accounting Reports
This commit is contained in:
@@ -120,3 +120,6 @@
|
||||
margin-left: 0.5rem !important;
|
||||
}
|
||||
}
|
||||
|
||||
.wms-export-link { display:block; padding:2px 4px; border-radius:4px; color:#404040; text-decoration:none; transition: background .15s, color .15s; }
|
||||
.wms-export-link:hover { background-color:#fae0d7; color:#b84a2e !important; }
|
||||
|
||||
@@ -276,8 +276,6 @@ class FinancialReports
|
||||
$pd = $period_agg[$code]['debit'] ?? 0.0;
|
||||
$pc = $period_agg[$code]['credit'] ?? 0.0;
|
||||
|
||||
if ($od == 0 && $oc == 0 && $pd == 0 && $pc == 0) continue;
|
||||
|
||||
$opening_balance = $od - $oc;
|
||||
$closing_balance = $opening_balance + $pd - $pc;
|
||||
|
||||
@@ -344,8 +342,6 @@ class FinancialReports
|
||||
$d = $agg[$code]['debit'] ?? 0.0;
|
||||
$c = $agg[$code]['credit'] ?? 0.0;
|
||||
|
||||
if ($d == 0 && $c == 0) continue;
|
||||
|
||||
$a['total_debit'] = $d;
|
||||
$a['total_credit'] = $c;
|
||||
$rows[] = $a;
|
||||
@@ -396,7 +392,6 @@ class FinancialReports
|
||||
$c = $agg[$code]['credit'] ?? 0.0;
|
||||
|
||||
if (in_array($a['account_type'], ['asset', 'liability', 'equity'])) {
|
||||
if ($d == 0 && $c == 0) continue;
|
||||
$a['total_debit'] = $d;
|
||||
$a['total_credit'] = $c;
|
||||
$rows[] = $a;
|
||||
|
||||
Reference in New Issue
Block a user