fix(ewb): remove checksum validation for TRANSIN

(cherry picked from commit ca46bedfcb874ac5e03d44a00b996d31db336d85)
This commit is contained in:
karthikeyan5 2020-05-30 15:00:56 +05:30 committed by mergify-bot
parent bfa93ea76f
commit d9f7b4df8f

View File

@ -615,8 +615,9 @@ def get_transport_details(data, doc):
data.transDocDate = frappe.utils.formatdate(doc.lr_date, 'dd/mm/yyyy') data.transDocDate = frappe.utils.formatdate(doc.lr_date, 'dd/mm/yyyy')
if doc.gst_transporter_id: if doc.gst_transporter_id:
validate_gstin_check_digit(doc.gst_transporter_id, label='GST Transporter ID') if doc.gst_transporter_id[0:2] != "88":
data.transporterId = doc.gst_transporter_id validate_gstin_check_digit(doc.gst_transporter_id, label='GST Transporter ID')
data.transporterId = doc.gst_transporter_id
return data return data