daybook changes : kdk
This commit is contained in:
parent
8bf985535e
commit
603e8cb09b
@ -216,6 +216,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
value['ReceiptNo'] = element.ReceiptNo || '-';
|
||||
value['Comments'] = element.ReceiptNoComments || '-';
|
||||
value['ModeofPayment'] = getSortCutModeofPayment(element.ModeOfPayment) || '-';
|
||||
value['Status'] = element.Status || '-';
|
||||
value['Amount'] = (ListName == 'Expense' ? '-' : '+') + ' ' + element.Amount || '-';
|
||||
value['Balance'] = element.Balance || '-';
|
||||
o[intDate] = value;
|
||||
@ -254,8 +255,9 @@ $scope.dayBookApprovalAccess = '';
|
||||
col_6: { text: 'Receipt No', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_7: { text: 'Comments', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_8: { text: 'Mode of Payment', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_9: { text: 'Amount', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_10: { text: 'Balance', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_9: { text: 'Status', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_10: { text: 'Amount', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_11: { text: 'Balance', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
}
|
||||
}
|
||||
var body = [];
|
||||
@ -273,6 +275,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
row.push(header.col_8);
|
||||
row.push(header.col_9);
|
||||
row.push(header.col_10);
|
||||
row.push(header.col_11);
|
||||
body.push(row);
|
||||
}
|
||||
}
|
||||
@ -288,6 +291,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
row.push(data.ReceiptNo.toString());
|
||||
row.push(data.Comments.toString());
|
||||
row.push(data.ModeofPayment.toString());
|
||||
row.push(data.Status.toString());
|
||||
row.push(data.Amount.toString());
|
||||
row.push(data.Balance.toString());
|
||||
body.push(row);
|
||||
@ -383,12 +387,12 @@ $scope.dayBookApprovalAccess = '';
|
||||
// console.log("success");
|
||||
// });
|
||||
// alert(JSON.stringify(rows1));
|
||||
var returndata = pdfMake.createPdf(docDefinition).download('DAYBOOK DETAILS' + '( ' + $scope.searchData.date + ' - ' + $scope.searchData.dateTo + ' ).pdf', function(){
|
||||
return true;
|
||||
});
|
||||
if(returndata){
|
||||
$scope.loadStaring = false;
|
||||
}
|
||||
// var returndata = pdfMake.createPdf(docDefinition).download('DAYBOOK DETAILS' + '( ' + $scope.searchData.date + ' - ' + $scope.searchData.dateTo + ' ).pdf', function(){
|
||||
// return true;
|
||||
// });
|
||||
// if(returndata){
|
||||
// $scope.loadStaring = false;
|
||||
// }
|
||||
|
||||
pdfMake.createPdf(docDefinition).download('DAYBOOK DETAILS' + '( ' + $scope.searchData.date + ' - ' + $scope.searchData.dateTo + ' ).pdf', function(res) {
|
||||
if(res === 'success'){
|
||||
|
||||
@ -218,6 +218,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
value['ReceiptNo'] = element.ReceiptNo || '-';
|
||||
value['Comments'] = element.ReceiptNoComments || '-';
|
||||
value['ModeofPayment'] = getSortCutModeofPayment(element.ModeOfPayment) || '-';
|
||||
value['Status'] = element.Status || '-';
|
||||
value['Amount'] = (ListName == 'Expense' ? '-' : '+') + ' ' + element.Amount || '-';
|
||||
value['Balance'] = element.Balance || '-';
|
||||
o[intDate] = value;
|
||||
@ -256,8 +257,9 @@ $scope.dayBookApprovalAccess = '';
|
||||
col_6: { text: 'Receipt No', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_7: { text: 'Comments', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_8: { text: 'Mode of Payment', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_9: { text: 'Amount', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_10: { text: 'Balance', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_9: { text: 'Status', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_10: { text: 'Amount', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_11: { text: 'Balance', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
}
|
||||
}
|
||||
var body = [];
|
||||
@ -275,6 +277,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
row.push(header.col_8);
|
||||
row.push(header.col_9);
|
||||
row.push(header.col_10);
|
||||
row.push(header.col_11);
|
||||
body.push(row);
|
||||
}
|
||||
}
|
||||
@ -290,6 +293,7 @@ $scope.dayBookApprovalAccess = '';
|
||||
row.push(data.ReceiptNo.toString());
|
||||
row.push(data.Comments.toString());
|
||||
row.push(data.ModeofPayment.toString());
|
||||
row.push(data.Status.toString());
|
||||
row.push(data.Amount.toString());
|
||||
row.push(data.Balance.toString());
|
||||
body.push(row);
|
||||
|
||||
@ -311,6 +311,7 @@ $scope.loadStaring = true;
|
||||
value['ReceiptNo'] = element.ReceiptNo || '-';
|
||||
value['Comments'] = element.ReceiptNoComments || '-';
|
||||
value['ModeofPayment'] = getSortCutModeofPayment(element.ModeOfPayment) || '-';
|
||||
value['Status'] = element.Status || '-';
|
||||
value['Amount'] = (ListName == 'Expense' ? '-' : '+') + ' ' + element.Amount || '-';
|
||||
value['Balance'] = element.Balance || '-';
|
||||
o[intDate] = value;
|
||||
@ -349,8 +350,9 @@ $scope.loadStaring = true;
|
||||
col_6: { text: 'Receipt No', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_7: { text: 'Comments', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_8: { text: 'Mode of Payment', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_9: { text: 'Amount', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_10: { text: 'Balance', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_9: { text: 'Status', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_10: { text: 'Amount', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
col_11: { text: 'Balance', style: 'tableHeader', alignment: 'center', bold: true },
|
||||
}
|
||||
}
|
||||
var body = [];
|
||||
@ -368,6 +370,7 @@ $scope.loadStaring = true;
|
||||
row.push(header.col_8);
|
||||
row.push(header.col_9);
|
||||
row.push(header.col_10);
|
||||
row.push(header.col_11);
|
||||
body.push(row);
|
||||
}
|
||||
}
|
||||
@ -383,6 +386,7 @@ $scope.loadStaring = true;
|
||||
row.push(data.ReceiptNo.toString());
|
||||
row.push(data.Comments.toString());
|
||||
row.push(data.ModeofPayment.toString());
|
||||
row.push(data.Status.toString());
|
||||
row.push(data.Amount.toString());
|
||||
row.push(data.Balance.toString());
|
||||
body.push(row);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user