mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 11:09:17 +00:00
fix: patch
This commit is contained in:
@@ -8,6 +8,7 @@ def execute():
|
|||||||
if not company:
|
if not company:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
frappe.reload_doc("regional", "doctype", "e_invoice_settings")
|
||||||
custom_fields = {
|
custom_fields = {
|
||||||
'Sales Invoice': [
|
'Sales Invoice': [
|
||||||
dict(fieldname='irn', label='IRN', fieldtype='Data', read_only=1, insert_after='customer', no_copy=1, print_hide=1,
|
dict(fieldname='irn', label='IRN', fieldtype='Data', read_only=1, insert_after='customer', no_copy=1, print_hide=1,
|
||||||
|
|||||||
@@ -526,7 +526,7 @@ def validate_einvoice(validations, einvoice, errors=[]):
|
|||||||
if value_type == 'string':
|
if value_type == 'string':
|
||||||
einvoice[fieldname] = str(value)
|
einvoice[fieldname] = str(value)
|
||||||
elif value_type == 'number':
|
elif value_type == 'number':
|
||||||
einvoice[fieldname] = flt(value, 2) if fieldname != 'Pin' else int(value)
|
einvoice[fieldname] = flt(value, 2) if fieldname != 'Pin' or fieldname != 'Distance' else int(value)
|
||||||
|
|
||||||
max_length = field_validation.get('maxLength')
|
max_length = field_validation.get('maxLength')
|
||||||
minimum = flt(field_validation.get('minimum'))
|
minimum = flt(field_validation.get('minimum'))
|
||||||
|
|||||||
Reference in New Issue
Block a user