mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: unsaved status on opening gain loss journal
This commit is contained in:
@@ -126,9 +126,11 @@ frappe.ui.form.on("Journal Entry", {
|
|||||||
|
|
||||||
erpnext.accounts.unreconcile_payment.add_unreconcile_btn(frm);
|
erpnext.accounts.unreconcile_payment.add_unreconcile_btn(frm);
|
||||||
|
|
||||||
$.each(frm.doc.accounts || [], function (i, row) {
|
if (frm.doc.voucher_type !== "Exchange Gain Or Loss") {
|
||||||
erpnext.journal_entry.set_exchange_rate(frm, row.doctype, row.name);
|
$.each(frm.doc.accounts || [], function (i, row) {
|
||||||
});
|
erpnext.journal_entry.set_exchange_rate(frm, row.doctype, row.name);
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
before_save: function (frm) {
|
before_save: function (frm) {
|
||||||
if (frm.doc.docstatus == 0 && !frm.doc.is_system_generated) {
|
if (frm.doc.docstatus == 0 && !frm.doc.is_system_generated) {
|
||||||
|
|||||||
Reference in New Issue
Block a user