[fix] serial no status
This commit is contained in:
parent
e07958bbda
commit
d91382dbf3
@ -1 +1,2 @@
|
|||||||
- Delivery to Target Warehouse: Now you can deliver items to customer's warehouse or rented warehouse. Sponsored by: **[Startrack](http://www.gps.gt/)**
|
- Delivery to Target Warehouse: Now you can deliver items to customer's warehouse or rented warehouse. Sponsored by: **[Startrack](http://www.gps.gt/)**
|
||||||
|
- Serial No **Status** deprecated
|
||||||
|
@ -17,10 +17,4 @@ cur_frm.cscript.onload = function() {
|
|||||||
|
|
||||||
frappe.ui.form.on("Serial No", "refresh", function(frm) {
|
frappe.ui.form.on("Serial No", "refresh", function(frm) {
|
||||||
frm.toggle_enable("item_code", frm.doc.__islocal);
|
frm.toggle_enable("item_code", frm.doc.__islocal);
|
||||||
|
|
||||||
if(frm.doc.status == "Sales Returned" && frm.doc.warehouse)
|
|
||||||
cur_frm.add_custom_button(__('Set Status as Available'), function() {
|
|
||||||
cur_frm.set_value("status", "Available");
|
|
||||||
cur_frm.save();
|
|
||||||
}, "icon-ok", "btn-default");
|
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user