Bumped the version to 7
Fixed double exception being thrown Currency pipe broke the accounts pipe
This commit is contained in:
1 parent
1c2c98e7b5
commit
7b4756fe1a
26 files changed
+55
-166
No files matched your search
@@ -140,7 +140,8 @@ export class ReceiptComponent implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
rowAmount(amount: string = ''): number {
|
||||
try {
|
||||
return math.eval(amount.trim().replace(',', ''));
|
||||
amount = amount.replace(new RegExp('(₹[\s]*)|(,)|(\s)', 'g'), '');
|
||||
return math.eval(amount);
|
||||
} catch {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user