Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbauskar committed Jul 7, 2017
2 parents 3f3ac56 + 5cf3868 commit 74d07c6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 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.2'
__version__ = '8.3.3'

def get_default_company(user=None):
'''Get default company for user'''
Expand Down
12 changes: 12 additions & 0 deletions erpnext/patches/v8_1/allow_invoice_copy_to_edit_after_submit.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import frappe

def execute():
inv_copy_options = "ORIGINAL FOR RECIPIENT\nDUPLICATE FOR TRANSPORTER\nDUPLICATE FOR SUPPLIER\nTRIPLICATE FOR SUPPLIER"

frappe.db.sql("""update `tabCustom Field` set allow_on_submit=1, options=%s
where fieldname='invoice_copy' and dt = 'Sales Invoice'
""", inv_copy_options)

frappe.db.sql("""update `tabCustom Field` set read_only=1
where fieldname='gst_state_number' and dt = 'Address'
""")
4 changes: 2 additions & 2 deletions erpnext/regional/india/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def make_custom_fields():
dict(fieldname='gst_state', label='GST State', fieldtype='Select',
options='\n'.join(states), insert_after='gstin'),
dict(fieldname='gst_state_number', label='GST State Number',
fieldtype='Int', insert_after='gst_state'),
fieldtype='Int', insert_after='gst_state', read_only=1),
],
'Purchase Invoice': [
dict(fieldname='supplier_gstin', label='Supplier GSTIN',
Expand All @@ -103,7 +103,7 @@ def make_custom_fields():
options='company_address.gstin', print_hide=1),
dict(fieldname='invoice_copy', label='Invoice Copy',
fieldtype='Select', insert_after='project', print_hide=1, allow_on_submit=1,
options='ORIGINAL FOR RECIPIENT\nDUPLICATE FOR TRANSPORTER\nTRIPLICATE FOR SUPPLIER')
options='ORIGINAL FOR RECIPIENT\nDUPLICATE FOR TRANSPORTER\nDUPLICATE FOR SUPPLIER\nTRIPLICATE FOR SUPPLIER')
],
'Item': [
dict(fieldname='gst_hsn_code', label='HSN/SAC',
Expand Down

0 comments on commit 74d07c6

Please sign in to comment.