fix: run patch for gst

This commit is contained in:
Himanshu Warekar
2019-04-05 17:01:19 +05:30
parent e012e2207a
commit 4802fc018b
2 changed files with 16 additions and 1 deletions

View File

@@ -508,4 +508,5 @@ erpnext.patches.v10_0.recalculate_gross_margin_for_project
erpnext.patches.v10_0.delete_hub_documents
erpnext.patches.v10_0.update_user_image_in_employee
erpnext.patches.v10_0.repost_gle_for_purchase_receipts_with_rejected_items
erpnext.patches.v10_0.allow_operators_in_supplier_scorecard
erpnext.patches.v10_0.allow_operators_in_supplier_scorecard
erpnext.patches.v10_0.gst_hsn_fixes

View File

@@ -0,0 +1,14 @@
import frappe
from erpnext.regional.india.setup import setup
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
def execute():
hsn_sac_field = dict(fieldname='gst_hsn_code', label='HSN/SAC',
fieldtype='Data', options='item_code.gst_hsn_code', insert_after='description',
allow_on_submit=1, print_hide=1)
custom_fields = {
'Material Request Item': [hsn_sac_field]
}
create_custom_fields(custom_fields)