Bumped the version to 7

Fixed double exception being thrown
Currency pipe broke the accounts pipe
This commit is contained in:
2020-06-01 09:01:31 +05:30
parent 1c2c98e7b5
commit 7b4756fe1a
26 changed files with 55 additions and 166 deletions

View File

@ -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;
}