chore(sales-invoice): clarify tax-article comments (drop stale TEST/mirror notes)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
ea8818d07f
commit
3a87334f3c
|
|
@ -43,7 +43,7 @@ def sync_item_tax_articles(doc, method=None):
|
||||||
]
|
]
|
||||||
doc.custom_item_tax_articles = rows
|
doc.custom_item_tax_articles = rows
|
||||||
|
|
||||||
# 3) mirror first article -> single field + refresh the display label
|
# 3) refresh the per-row "Tax Articles" display label
|
||||||
by_row = {}
|
by_row = {}
|
||||||
for r in rows:
|
for r in rows:
|
||||||
by_row.setdefault(r.parent_row, []).append(r.tax_article)
|
by_row.setdefault(r.parent_row, []).append(r.tax_article)
|
||||||
|
|
|
||||||
|
|
@ -731,7 +731,9 @@ def create_custom_fields():
|
||||||
insert_after='act_type',
|
insert_after='act_type',
|
||||||
depends_on='eval:doc.purchase_type && doc.act_type == "Import"'
|
depends_on='eval:doc.purchase_type && doc.act_type == "Import"'
|
||||||
),
|
),
|
||||||
# --- TEST: backing store for per-item multi tax-article ---
|
# Per-item multiple tax articles: parent-level backing table,
|
||||||
|
# linked to each item row by custom_si_row_key (Frappe has no
|
||||||
|
# nested child tables, so this lives on the parent, not the row).
|
||||||
dict(
|
dict(
|
||||||
fieldname='custom_item_tax_articles_section',
|
fieldname='custom_item_tax_articles_section',
|
||||||
label='Item Tax Articles',
|
label='Item Tax Articles',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue