diff --git a/stock/doctype/serial_no/serial_no.js b/stock/doctype/serial_no/serial_no.js
index af62c722ff..9e1426c6a4 100644
--- a/stock/doctype/serial_no/serial_no.js
+++ b/stock/doctype/serial_no/serial_no.js
@@ -8,28 +8,27 @@
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
-// along with this program. If not, see .
+// along with this program. If not, see .
cur_frm.cscript.onload = function(doc, cdt, cdn) {
- if(!doc.status) set_multiple(cdt, cdn, {status:'In Store'});
- if(doc.__islocal) hide_field(['supplier_name','address_display'])
+ if(!doc.status) set_multiple(cdt, cdn, {status:'In Store'});
+ if(doc.__islocal) hide_field(['supplier_name','address_display'])
}
cur_frm.cscript.refresh = function(doc, cdt, cdn) {
- if(!doc.__islocal) {
- flds = ['item_code', 'warehouse', 'purchase_document_type', 'purchase_document_no', 'purchase_date', 'purchase_time', 'purchase_rate', 'supplier']
- for(i=0;i