feat(custom-fields): purchase e-taxes comment + serial fields
Add etaxes_invoice_series/number (read-only) and etaxes_invoice_comment_2 on Purchase Invoice and Purchase Order, plus a general-purpose remarks field on Purchase Order (comment 1) placed at the same spot as the standard PI remarks. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c687346585
commit
96e1a7ae20
|
|
@ -488,6 +488,45 @@ def create_custom_fields():
|
||||||
options='\n310\n311\n314\n316',
|
options='\n310\n311\n314\n316',
|
||||||
insert_after='ygb',
|
insert_after='ygb',
|
||||||
depends_on='eval:doc.purchase_type || doc.agricultural_goods'
|
depends_on='eval:doc.purchase_type || doc.agricultural_goods'
|
||||||
|
),
|
||||||
|
|
||||||
|
# Purchase Order has no standard `remarks`, so comment 1 gets a
|
||||||
|
# dedicated general-purpose field placed at the SAME spot as the
|
||||||
|
# standard Purchase Invoice `remarks` (right before connections_tab).
|
||||||
|
dict(
|
||||||
|
fieldname='remarks',
|
||||||
|
label='Remarks',
|
||||||
|
fieldtype='Small Text',
|
||||||
|
insert_after='is_old_subcontracting_flow'
|
||||||
|
),
|
||||||
|
|
||||||
|
# === E-TAXES INVOICE INFO (imported from e-taxes) ===
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_info_section',
|
||||||
|
label='E-Taxes Invoice Info',
|
||||||
|
fieldtype='Section Break',
|
||||||
|
insert_after='line_code',
|
||||||
|
collapsible=1
|
||||||
|
),
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_series',
|
||||||
|
label='Seriyə',
|
||||||
|
fieldtype='Data',
|
||||||
|
insert_after='etaxes_invoice_info_section',
|
||||||
|
read_only=1
|
||||||
|
),
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_number',
|
||||||
|
label='Nömrə',
|
||||||
|
fieldtype='Data',
|
||||||
|
insert_after='etaxes_invoice_series',
|
||||||
|
read_only=1
|
||||||
|
),
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_comment_2',
|
||||||
|
label='Additional Comment',
|
||||||
|
fieldtype='Small Text',
|
||||||
|
insert_after='etaxes_invoice_number'
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
"Purchase Invoice": [
|
"Purchase Invoice": [
|
||||||
|
|
@ -547,6 +586,37 @@ def create_custom_fields():
|
||||||
depends_on='eval:doc.purchase_type || doc.agricultural_goods'
|
depends_on='eval:doc.purchase_type || doc.agricultural_goods'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
# === E-TAXES INVOICE INFO (imported from e-taxes) ===
|
||||||
|
# Series/number are parsed from the e-taxes serialNumber on import.
|
||||||
|
# Comment 1 lands in the standard `remarks` field; comment 2 here.
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_info_section',
|
||||||
|
label='E-Taxes Invoice Info',
|
||||||
|
fieldtype='Section Break',
|
||||||
|
insert_after='line_code',
|
||||||
|
collapsible=1
|
||||||
|
),
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_series',
|
||||||
|
label='Seriyə',
|
||||||
|
fieldtype='Data',
|
||||||
|
insert_after='etaxes_invoice_info_section',
|
||||||
|
read_only=1
|
||||||
|
),
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_number',
|
||||||
|
label='Nömrə',
|
||||||
|
fieldtype='Data',
|
||||||
|
insert_after='etaxes_invoice_series',
|
||||||
|
read_only=1
|
||||||
|
),
|
||||||
|
dict(
|
||||||
|
fieldname='etaxes_invoice_comment_2',
|
||||||
|
label='Additional Comment',
|
||||||
|
fieldtype='Small Text',
|
||||||
|
insert_after='etaxes_invoice_number'
|
||||||
|
),
|
||||||
|
|
||||||
# === E-TAXES PURCHASE ACT SECTION ===
|
# === E-TAXES PURCHASE ACT SECTION ===
|
||||||
dict(
|
dict(
|
||||||
fieldname='etaxes_agricultural_section',
|
fieldname='etaxes_agricultural_section',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue