style: formatting changes
This commit is contained in:
parent
cd59263736
commit
cf71a84976
@ -26,8 +26,7 @@ frappe.ui.form.on('Payment Order', {
|
|||||||
|
|
||||||
// payment Entry
|
// payment Entry
|
||||||
if (frm.doc.docstatus===1 && frm.doc.payment_order_type==='Payment Request') {
|
if (frm.doc.docstatus===1 && frm.doc.payment_order_type==='Payment Request') {
|
||||||
frm.add_custom_button(__('Create Payment Entries'),
|
frm.add_custom_button(__('Create Payment Entries'), function() {
|
||||||
function() {
|
|
||||||
frm.trigger("make_payment_records");
|
frm.trigger("make_payment_records");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -43,7 +42,7 @@ frappe.ui.form.on('Payment Order', {
|
|||||||
remove_button: function(frm) {
|
remove_button: function(frm) {
|
||||||
// remove custom button of order type that is not imported
|
// remove custom button of order type that is not imported
|
||||||
|
|
||||||
let label = ["Payment Request", "Payment Entry"]
|
let label = ["Payment Request", "Payment Entry"];
|
||||||
|
|
||||||
if (frm.doc.references.length > 0 && frm.doc.payment_order_type) {
|
if (frm.doc.references.length > 0 && frm.doc.payment_order_type) {
|
||||||
label = label.reduce(x => {
|
label = label.reduce(x => {
|
||||||
@ -75,7 +74,7 @@ frappe.ui.form.on('Payment Order', {
|
|||||||
},
|
},
|
||||||
|
|
||||||
get_from_payment_request: function(frm) {
|
get_from_payment_request: function(frm) {
|
||||||
frm.trigger("remove_row_if_empty")
|
frm.trigger("remove_row_if_empty");
|
||||||
erpnext.utils.map_current_doc({
|
erpnext.utils.map_current_doc({
|
||||||
method: "erpnext.accounts.doctype.payment_request.payment_request.make_payment_order",
|
method: "erpnext.accounts.doctype.payment_request.payment_request.make_payment_order",
|
||||||
source_doctype: "Payment Request",
|
source_doctype: "Payment Request",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user