edit
This commit is contained in:
		| @ -54,7 +54,7 @@ export class WithdrawalsRecordComponent implements OnInit { | |||||||
|     switch (e.type) { |     switch (e.type) { | ||||||
|       case 'checkbox': |       case 'checkbox': | ||||||
|         this.selectedRows = e.checkbox!; |         this.selectedRows = e.checkbox!; | ||||||
|         this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.amount, 0); |         this.totalCallNo = (this.selectedRows.reduce((total, cv) => total + cv.amount, 0)).toFixed(2);; | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -60,7 +60,7 @@ export class InvoiceRequestedDetailComponent implements OnInit { | |||||||
|     switch (e.type) { |     switch (e.type) { | ||||||
|       case 'checkbox': |       case 'checkbox': | ||||||
|         this.selectedRows = e.checkbox!; |         this.selectedRows = e.checkbox!; | ||||||
|         this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.billkpmoney, 0); |         this.totalCallNo = (this.selectedRows.reduce((total, cv) => total + cv.billkpmoney, 0)).toFixed(2);; | ||||||
|         break; |         break; | ||||||
|       case 'filter': |       case 'filter': | ||||||
|         this.st.load(); |         this.st.load(); | ||||||
|  | |||||||
| @ -62,7 +62,7 @@ export class InvoiceRequestedComponent implements OnInit { | |||||||
|     switch (e.type) { |     switch (e.type) { | ||||||
|       case 'checkbox': |       case 'checkbox': | ||||||
|         this.selectedRows = e.checkbox!; |         this.selectedRows = e.checkbox!; | ||||||
|         this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.applyAmount, 0); |         this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.applyAmount, 0).toFixed(2); | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -51,7 +51,7 @@ export class InvoicedListComponent implements OnInit { | |||||||
|     switch (e.type) { |     switch (e.type) { | ||||||
|       case 'checkbox': |       case 'checkbox': | ||||||
|         this.selectedRows = e.checkbox!; |         this.selectedRows = e.checkbox!; | ||||||
|         this.totalCallNo = this.selectedRows.reduce((total, cv) => total + cv.vatnotax, 0); |         this.totalCallNo = (this.selectedRows.reduce((total, cv) => total + cv.vatnotax, 0)).toFixed(2);; | ||||||
|         break; |         break; | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user