Update utils.py

This commit is contained in:
Manas Solanki 2018-01-15 12:22:28 +05:30 committed by GitHub
parent 0a2d83d40c
commit e5e5d8271f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,9 +67,9 @@ def set_place_of_supply(doc, method):
address_name = doc.shipping_address_name or doc.customer_address
if address_name:
address = frappe.db.get_value("Address", address_name, ["gst_state", "gst_state_number"], as_dict=1)
doc.place_of_supply = cstr(address.gst_state_number) + "-" + address.gst_state
doc.place_of_supply = cstr(address.gst_state_number) + "-" + cstr(address.gst_state)
# don't remove this function it is used in tests
def test_method():
'''test function'''
return 'overridden'
return 'overridden'