Skip to content

Commit

Permalink
refactor: partial change on outstanding invoice popup
Browse files Browse the repository at this point in the history
(cherry picked from commit 2154502)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Jan 23, 2024
1 parent 8f87c58 commit ecd3650
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions erpnext/accounts/doctype/payment_entry/payment_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,20 @@ frappe.ui.form.on('Payment Entry', {
frm.events.set_unallocated_amount(frm);
},

get_dimensions: function(frm) {
let result = [];
frappe.call({
method: "erpnext.accounts.doctype.accounting_dimension.accounting_dimension.get_dimensions",
async: false,
callback: function(r) {
if(!r.exc) {
result = r.message[0].map(elem => elem.document_type);
}
}
});
return result;
},

get_outstanding_invoices_or_orders: function(frm, get_outstanding_invoices, get_orders_to_be_billed) {
const today = frappe.datetime.get_today();
const fields = [
Expand Down

0 comments on commit ecd3650

Please sign in to comment.