Added custom serializer to Decimal for all Models to output as number and not string.
This should mitigate all hacks earlier and reverted the earlier hacks.
This commit is contained in:
1 parent
c26f433182
commit
b1ca758e9d
35 files changed
+142
-154
No files matched your search
@@ -95,13 +95,13 @@ export class LedgerComponent implements OnInit, AfterViewInit {
|
||||
this.running = 0;
|
||||
this.info.body.forEach((item) => {
|
||||
if (item.type !== 'Opening Balance') {
|
||||
this.debit += +item.debit;
|
||||
this.credit += +item.credit;
|
||||
this.debit += item.debit;
|
||||
this.credit += item.credit;
|
||||
if (item.posted) {
|
||||
this.running += +item.debit - +item.credit;
|
||||
this.running += item.debit - item.credit;
|
||||
}
|
||||
} else {
|
||||
this.running += +item.debit - +item.credit;
|
||||
this.running += item.debit - item.credit;
|
||||
}
|
||||
item.running = this.running;
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user