mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 17:33:09 +00:00
Merge pull request #55767 from nabinhait/refactor-je-extract-services
refactor(journal_entry): extract reference, asset and document-builder services
This commit is contained in:
@@ -3003,11 +3003,9 @@ erpnext.TransactionController = class TransactionController extends erpnext.taxe
|
||||
let method = "erpnext.accounts.doctype.payment_entry.payment_entry.get_payment_entry";
|
||||
if (this.frm.doc.__onload && this.frm.doc.__onload.make_payment_via_journal_entry) {
|
||||
if (["Sales Invoice", "Purchase Invoice"].includes(this.frm.doc.doctype)) {
|
||||
method =
|
||||
"erpnext.accounts.doctype.journal_entry.journal_entry.get_payment_entry_against_invoice";
|
||||
method = "erpnext.accounts.doctype.journal_entry.mapper.get_payment_entry_against_invoice";
|
||||
} else {
|
||||
method =
|
||||
"erpnext.accounts.doctype.journal_entry.journal_entry.get_payment_entry_against_order";
|
||||
method = "erpnext.accounts.doctype.journal_entry.mapper.get_payment_entry_against_order";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user