Skip to content

Commit

Permalink
Merge pull request #957 from bcgov/feature/AB#26774-PaymentBatch
Browse files Browse the repository at this point in the history
feature/AB#26774-BatchPayment
  • Loading branch information
AndreGAot authored Dec 24, 2024
2 parents 35ab853 + 26d1c3c commit 9feecc0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"ApplicationPaymentListTable:L1ApprovalDate": "L1 Approval Date",
"ApplicationPaymentListTable:L2ApprovalDate": "L2 Approval Date",
"ApplicationPaymentListTable:L3ApprovalDate": "L3 Approval Date",
"ApplicationPaymentListTable:BatchName": "Batch #",
"ApplicationPaymentListTable:PaymentID": "Payment ID",
"ApplicationPaymentListTable:ApplicantName": "Applicant Name",
"ApplicationPaymentListTable:SupplierNumber": "Supplier Number",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ $(function () {
'l1Approval',
'l2Approval',
'l3Approval',
'CASResponse'
'CASResponse',
'batchName',
];

let paymentRequestStatusModal = new abp.ModalManager({
Expand Down Expand Up @@ -248,6 +249,7 @@ $(function () {
getInvoiceStatusColumn(),
getPaymentStatusColumn(),
getCASResponseColumn(),
getBatchNameColumn(),
]
}

Expand Down Expand Up @@ -491,6 +493,23 @@ $(function () {
};
}

function getBatchNameColumn() {
return {
title: l('ApplicationPaymentListTable:BatchName'),
name: 'batchName',
data: 'batchName',
className: 'data-table-header',
index: 19,
render: function (data) {
if (data + "" !== "undefined" && data?.length > 0) {
return data;
} else {
return "";
}
}
};
}

function getCASResponseColumn() {
// Add button to view response modal
return {
Expand Down Expand Up @@ -522,8 +541,6 @@ $(function () {
window.addEventListener('resize', setTableHeighDynamic('PaymentRequestListTable'));
*/



$('#search').on('input', function () {
let table = $('#PaymentRequestListTable').DataTable();
table.search($(this).val()).draw();
Expand Down

0 comments on commit 9feecc0

Please sign in to comment.