2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 09:24:04 +00:00

Update link in invoice.js

- Replace frappe.desk.showFormModal with new $formModal
This commit is contained in:
Suraj Shetty 2018-07-14 19:58:08 +05:30
parent 4bc97c0d20
commit 52f8beffdc

View File

@ -135,7 +135,7 @@ module.exports = {
payment.party = form.doc.customer; payment.party = form.doc.customer;
payment.account = form.doc.account; payment.account = form.doc.account;
payment.for = [{ referenceType: form.doc.doctype, referenceName: form.doc.name, amount: form.doc.grandTotal }]; payment.for = [{ referenceType: form.doc.doctype, referenceName: form.doc.name, amount: form.doc.grandTotal }];
await frappe.desk.showFormModal('Payment', payment.name); await form.$formModal.open(payment);
} }
} }
], ],