[fix] serial no status

This commit is contained in:
Nabin Hait 2015-09-21 11:02:26 +05:30
parent e07958bbda
commit d91382dbf3
2 changed files with 1 additions and 6 deletions

View File

@ -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/)**
- Serial No **Status** deprecated

View File

@ -17,10 +17,4 @@ cur_frm.cscript.onload = function() {
frappe.ui.form.on("Serial No", "refresh", function(frm) {
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");
});