mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
Merge branch 'version-12-hotfix' into mr_stopped_validation_v12
This commit is contained in:
@@ -919,7 +919,8 @@
|
|||||||
"minLength": 1,
|
"minLength": 1,
|
||||||
"maxLength": 15,
|
"maxLength": 15,
|
||||||
"pattern": "^([0-9A-Z/-]){1,15}$",
|
"pattern": "^([0-9A-Z/-]){1,15}$",
|
||||||
"description": "Tranport Document Number"
|
"description": "Tranport Document Number",
|
||||||
|
"validationMsg": "Transport Receipt No is invalid"
|
||||||
},
|
},
|
||||||
"TransDocDt": {
|
"TransDocDt": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|||||||
@@ -328,8 +328,11 @@ def make_einvoice(invoice):
|
|||||||
buyer_details = get_overseas_address_details(invoice.customer_address)
|
buyer_details = get_overseas_address_details(invoice.customer_address)
|
||||||
else:
|
else:
|
||||||
buyer_details = get_party_details(invoice.customer_address)
|
buyer_details = get_party_details(invoice.customer_address)
|
||||||
place_of_supply = get_place_of_supply(invoice, invoice.doctype) or invoice.billing_address_gstin
|
place_of_supply = get_place_of_supply(invoice, invoice.doctype)
|
||||||
place_of_supply = place_of_supply[:2]
|
if place_of_supply:
|
||||||
|
place_of_supply = place_of_supply.split('-')[0]
|
||||||
|
else:
|
||||||
|
place_of_supply = sanitize_for_json(invoice.billing_address_gstin)[:2]
|
||||||
buyer_details.update(dict(place_of_supply=place_of_supply))
|
buyer_details.update(dict(place_of_supply=place_of_supply))
|
||||||
|
|
||||||
shipping_details = payment_details = prev_doc_details = eway_bill_details = frappe._dict({})
|
shipping_details = payment_details = prev_doc_details = eway_bill_details = frappe._dict({})
|
||||||
|
|||||||
Reference in New Issue
Block a user