edit
This commit is contained in:
@ -50,6 +50,8 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
beforeReq = (requestOptions: STRequestOptions) => {
|
||||
this.totalCallNo = '0';
|
||||
this.selectedRows = [];
|
||||
Object.assign(requestOptions.body, { vatappHId: this.id });
|
||||
if (this.sf) {
|
||||
Object.assign(requestOptions.body, { ...this.sf.value });
|
||||
@ -58,7 +60,7 @@ export class InvoiceRequestedDetailComponent implements OnInit {
|
||||
};
|
||||
|
||||
afterRes = (data: any[], rawData?: any) => {
|
||||
this.totalCallNo = data.reduce((total, cv) => total + cv.billkpmoney, 0).toFixed(2);
|
||||
// this.totalCallNo = data.reduce((total, cv) => total + cv.billkpmoney, 0).toFixed(2);
|
||||
return data.map(item => ({
|
||||
...item
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user