mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
fix(packing-slip): add a descriptive message (#18981)
This commit is contained in:
committed by
Nabin Hait
parent
d312d11062
commit
1853a83453
@@ -10,7 +10,7 @@ cur_frm.fields_dict['delivery_note'].get_query = function(doc, cdt, cdn) {
|
|||||||
|
|
||||||
cur_frm.fields_dict['items'].grid.get_field('item_code').get_query = function(doc, cdt, cdn) {
|
cur_frm.fields_dict['items'].grid.get_field('item_code').get_query = function(doc, cdt, cdn) {
|
||||||
if(!doc.delivery_note) {
|
if(!doc.delivery_note) {
|
||||||
frappe.throw(__("Please Delivery Note first"))
|
frappe.throw(__("Please select a Delivery Note"));
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
query: "erpnext.stock.doctype.packing_slip.packing_slip.item_details",
|
query: "erpnext.stock.doctype.packing_slip.packing_slip.item_details",
|
||||||
@@ -125,4 +125,4 @@ cur_frm.pformat.gross_weight_pkg= function(doc){
|
|||||||
return '<table style="width:100%">' + make_row('Gross Weight', doc.gross_weight_pkg) + '</table>'
|
return '<table style="width:100%">' + make_row('Gross Weight', doc.gross_weight_pkg) + '</table>'
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: validate gross weight field
|
// TODO: validate gross weight field
|
||||||
|
|||||||
Reference in New Issue
Block a user