Revert "adds if statement for reference_type
=== "Asset""
This reverts commit c7e3a09cfb55ed41cde3c6deafa1cf2b92c2de3d.
This commit is contained in:
parent
690de64734
commit
1ee534889f
@ -125,11 +125,7 @@ erpnext.accounts.JournalEntry = frappe.ui.form.Controller.extend({
|
||||
|
||||
var party_account_field = jvd.reference_type==="Sales Invoice" ? "debit_to": "credit_to";
|
||||
out.filters.push([jvd.reference_type, party_account_field, "=", jvd.account]);
|
||||
}
|
||||
else if(jvd.reference_type === 'Asset'){
|
||||
frappe.model.validate_missing(jvd, "account");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
// party_type and party mandatory
|
||||
frappe.model.validate_missing(jvd, "party_type");
|
||||
frappe.model.validate_missing(jvd, "party");
|
||||
|
Loading…
x
Reference in New Issue
Block a user