đź§© Issue: Tax Lines in Quotations Reset After Saving in ERPNext v15

:mag: Context

I’m experiencing a persistent issue in ERPNext v15.59.0 where tax lines in quotations reset or change automatically upon saving, despite various configurations aimed at preventing this behavior.

System Details:

  • ERPNext: v15.59.0
  • ERPNext France: v15.0.2
  • Frappe Framework: v15.66.0
  • Payments: v0.0.1
  • PDF on Submit: v15.3.1

:white_check_mark: Current Configuration

  • Item Tax Templates: Each item is assigned a specific Item Tax Template (e.g., 5.5% or 20%).
  • Global Sales Taxes and Charges Template: A template named “TVA Multi-Taux” with tax rates set to 0% for various tax accounts.
  • Account Settings: The option “Automatically add Taxes and Charges from Item Tax Template” is disabled.
  • Tax Categories: No active tax categories.
  • Quotation Settings: No default Sales Taxes and Charges Template is set.Frappe ForumKanakKanak+2Frappe Docs+2Frappe Forum+2

:warning: Observed Behavior

When creating or editing a quotation:

  1. I select the “TVA Multi-Taux” template, which correctly displays tax lines with 0% rates.
  2. Upon saving, the tax lines are automatically replaced with those from the Item Tax Templates, applying specific tax rates (e.g., 10% or 20%) across all items, regardless of their individual configurations.

This behavior persists even though the automatic application of Item Tax Templates is disabled.

:test_tube: Troubleshooting Steps Taken

  • Disabled Automatic Tax Application: Confirmed that “Automatically add Taxes and Charges from Item Tax Template” is unchecked.
  • Manual Deletion of Tax Lines: Attempted to remove tax lines before saving; they reappear after saving.
  • Exclusive Use of Global Tax Template: Tried using only the global tax template without Item Tax Templates; tax lines still reset.
  • Checked for Custom Scripts: Verified that no client or server scripts are interfering with tax lines.
  • Reviewed Item Configurations: Ensured that items don’t have conflicting tax settings.

:jigsaw: Hypothesis

This issue may be related to a known bug in ERPNext v15, where the system overrides global tax templates with Item Tax Templates upon saving, even when automatic application is disabled. Frappe Forum

:question: Questions

  • Has anyone encountered this issue in ERPNext v15?
  • Is there a known workaround or fix to prevent tax lines from resetting upon saving?
  • Could this be a misconfiguration, or is it a confirmed bug in this version?

Any insights or assistance would be greatly appreciated.