Revert "adds if statement for `reference_type` === "Asset""
This reverts commit c7e3a09cfb55ed41cde3c6deafa1cf2b92c2de3d.
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.js b/erpnext/accounts/doctype/journal_entry/journal_entry.js
index 65f5230..4880224 100644
--- a/erpnext/accounts/doctype/journal_entry/journal_entry.js
+++ b/erpnext/accounts/doctype/journal_entry/journal_entry.js
@@ -125,11 +125,7 @@
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");