mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-17 10:36:31 +00:00
chore: update new unreconcile doctype name in JS and PY files
(cherry picked from commit 74f9e34182)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
frappe.provide('erpnext.accounts');
|
||||
|
||||
erpnext.accounts.unreconcile_payments = {
|
||||
erpnext.accounts.unreconcile_payment = {
|
||||
add_unreconcile_btn(frm) {
|
||||
if (frm.doc.docstatus == 1) {
|
||||
if(((frm.doc.doctype == "Journal Entry") && (frm.doc.voucher_type != "Journal Entry"))
|
||||
@@ -10,7 +10,7 @@ erpnext.accounts.unreconcile_payments = {
|
||||
}
|
||||
|
||||
frappe.call({
|
||||
"method": "erpnext.accounts.doctype.unreconcile_payments.unreconcile_payments.doc_has_references",
|
||||
"method": "erpnext.accounts.doctype.unreconcile_payment.unreconcile_payment.doc_has_references",
|
||||
"args": {
|
||||
"doctype": frm.doc.doctype,
|
||||
"docname": frm.doc.name
|
||||
@@ -18,7 +18,7 @@ erpnext.accounts.unreconcile_payments = {
|
||||
callback: function(r) {
|
||||
if (r.message) {
|
||||
frm.add_custom_button(__("UnReconcile"), function() {
|
||||
erpnext.accounts.unreconcile_payments.build_unreconcile_dialog(frm);
|
||||
erpnext.accounts.unreconcile_payment.build_unreconcile_dialog(frm);
|
||||
}, __('Actions'));
|
||||
}
|
||||
}
|
||||
@@ -74,7 +74,7 @@ erpnext.accounts.unreconcile_payments = {
|
||||
|
||||
// get linked payments
|
||||
frappe.call({
|
||||
"method": "erpnext.accounts.doctype.unreconcile_payments.unreconcile_payments.get_linked_payments_for_doc",
|
||||
"method": "erpnext.accounts.doctype.unreconcile_payment.unreconcile_payment.get_linked_payments_for_doc",
|
||||
"args": {
|
||||
"company": frm.doc.company,
|
||||
"doctype": frm.doc.doctype,
|
||||
@@ -96,8 +96,8 @@ erpnext.accounts.unreconcile_payments = {
|
||||
|
||||
let selected_allocations = values.allocations.filter(x=>x.__checked);
|
||||
if (selected_allocations.length > 0) {
|
||||
let selection_map = erpnext.accounts.unreconcile_payments.build_selection_map(frm, selected_allocations);
|
||||
erpnext.accounts.unreconcile_payments.create_unreconcile_docs(selection_map);
|
||||
let selection_map = erpnext.accounts.unreconcile_payment.build_selection_map(frm, selected_allocations);
|
||||
erpnext.accounts.unreconcile_payment.create_unreconcile_docs(selection_map);
|
||||
d.hide();
|
||||
|
||||
} else {
|
||||
@@ -115,7 +115,7 @@ erpnext.accounts.unreconcile_payments = {
|
||||
|
||||
create_unreconcile_docs(selection_map) {
|
||||
frappe.call({
|
||||
"method": "erpnext.accounts.doctype.unreconcile_payments.unreconcile_payments.create_unreconcile_doc_for_selection",
|
||||
"method": "erpnext.accounts.doctype.unreconcile_payment.unreconcile_payment.create_unreconcile_doc_for_selection",
|
||||
"args": {
|
||||
"selections": selection_map
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user