fix: miscellaneous fixes (#18615)

This commit is contained in:
Himanshu 2019-08-12 12:17:28 +05:30 committed by Nabin Hait
parent 677c522f01
commit 19199baf29
2 changed files with 1 additions and 2 deletions

View File

@ -468,7 +468,6 @@
}, },
{ {
"default": "0", "default": "0",
"depends_on": "has_batch_no",
"fieldname": "retain_sample", "fieldname": "retain_sample",
"fieldtype": "Check", "fieldtype": "Check",
"label": "Retain Sample" "label": "Retain Sample"

View File

@ -190,7 +190,7 @@ erpnext.stock.PurchaseReceiptController = erpnext.buying.BuyingController.extend
frappe.set_route("Form", doc.doctype, doc.name); frappe.set_route("Form", doc.doctype, doc.name);
} }
else { else {
frappe.msgprint(__("Retention Stock Entry already created or Sample Quantity not provided")); frappe.msgprint(__("Purchase Receipt doesn't have any Item for which Retain Sample is enabled."));
} }
} }
}); });