fix: Patch error and tests
This commit is contained in:
parent
79d250845e
commit
a06a70d1a4
@ -5,6 +5,7 @@ import frappe
|
|||||||
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
from frappe.custom.doctype.custom_field.custom_field import create_custom_fields
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc('accounts', 'doctype', 'advance_taxes_and_charges')
|
||||||
frappe.reload_doc('accounts', 'doctype', 'payment_entry')
|
frappe.reload_doc('accounts', 'doctype', 'payment_entry')
|
||||||
|
|
||||||
custom_fields = {
|
custom_fields = {
|
||||||
|
@ -772,7 +772,7 @@ def update_place_of_supply(doc, method):
|
|||||||
if country != 'India':
|
if country != 'India':
|
||||||
return
|
return
|
||||||
|
|
||||||
address = frappe.db.get_value("Address", doc.customer_address, ["gst_state", "gst_state_number"], as_dict=1)
|
address = frappe.db.get_value("Address", doc.get('customer_address'), ["gst_state", "gst_state_number"], as_dict=1)
|
||||||
if address and address.gst_state and address.gst_state_number:
|
if address and address.gst_state and address.gst_state_number:
|
||||||
doc.place_of_supply = cstr(address.gst_state_number) + "-" + cstr(address.gst_state)
|
doc.place_of_supply = cstr(address.gst_state_number) + "-" + cstr(address.gst_state)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user