mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
@@ -234,6 +234,7 @@ frappe.ui.form.on("Asset", {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!frm.doc.purchase_receipt &&
|
!frm.doc.purchase_receipt &&
|
||||||
|
!frm.doc.purchase_invoice &&
|
||||||
["Existing Asset", "Composite Component"].includes(frm.doc.asset_type)
|
["Existing Asset", "Composite Component"].includes(frm.doc.asset_type)
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user