Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nabinhait committed Jul 8, 2017
2 parents ab59e47 + 097da8c commit 35ecab6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion erpnext/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from __future__ import unicode_literals
import frappe

__version__ = '8.3.4'
__version__ = '8.3.5'

def get_default_company(user=None):
'''Get default company for user'''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ erpnext.production_order = {
erpnext.production_order.stop_production_order(frm, "Resumed");
}, __("Status"));
}

if(!frm.doc.skip_transfer){
if ((flt(doc.material_transferred_for_manufacturing) < flt(doc.qty))
&& frm.doc.status != 'Stopped') {
Expand All @@ -274,7 +274,7 @@ erpnext.production_order = {
erpnext.production_order.make_se(frm, 'Material Transfer for Manufacture');
});
start_btn.addClass('btn-primary');
}
}
}

if(!frm.doc.skip_transfer){
Expand All @@ -293,8 +293,9 @@ erpnext.production_order = {
} else {
if ((flt(doc.produced_qty) < flt(doc.qty)) && frm.doc.status != 'Stopped') {
frm.has_finish_btn = true;
var finish_btn = frm.add_custom_button(__('Finish'),
cur_frm.cscript['Update Finished Goods']);
var finish_btn = frm.add_custom_button(__('Finish'), function() {
erpnext.production_order.make_se(frm, 'Manufacture');
});
finish_btn.addClass('btn-primary');
}
}
Expand Down
4 changes: 2 additions & 2 deletions erpnext/regional/india/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ def validate_gstin_for_india(doc, method):

if doc.gst_state:
doc.gst_state_number = state_numbers[doc.gst_state]
if doc.gst_state_number != doc.gstin[:2]:
if doc.gstin != "NA" and doc.gst_state_number != doc.gstin[:2]:
frappe.throw(_("First 2 digits of GSTIN should match with State number {0}")
.format(doc.gst_state_number))
.format(doc.gst_state_number))

0 comments on commit 35ecab6

Please sign in to comment.