mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 15:00:27 +00:00
@@ -350,6 +350,9 @@ frappe.ui.form.on("Journal Entry Account", {
|
|||||||
account: function(frm, dt, dn) {
|
account: function(frm, dt, dn) {
|
||||||
var d = locals[dt][dn];
|
var d = locals[dt][dn];
|
||||||
if(d.account) {
|
if(d.account) {
|
||||||
|
if(!frm.doc.company) frappe.throw(__("Please select Company first"));
|
||||||
|
if(!frm.doc.posting_date) frappe.throw(__("Please select Posting Date first"));
|
||||||
|
|
||||||
return frappe.call({
|
return frappe.call({
|
||||||
method: "erpnext.accounts.doctype.journal_entry.journal_entry.get_account_balance_and_party_type",
|
method: "erpnext.accounts.doctype.journal_entry.journal_entry.get_account_balance_and_party_type",
|
||||||
args: {
|
args: {
|
||||||
|
|||||||
Reference in New Issue
Block a user