Skip to content

fix: read item-wise tax breakup from _item_wise_tax_details on v16 - #446

Open
av-dev2 wants to merge 205 commits into
Aakvatech-Limited:version-16-hotfixfrom
av-dev2:fix/v16-item-wise-tax-detail
Open

fix: read item-wise tax breakup from _item_wise_tax_details on v16#446
av-dev2 wants to merge 205 commits into
Aakvatech-Limited:version-16-hotfixfrom
av-dev2:fix/v16-item-wise-tax-detail

Conversation

@av-dev2

@av-dev2 av-dev2 commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • ERPNext v16 dropped the item_wise_tax_detail JSON field from Sales Taxes and Charges rows in favour of doc._item_wise_tax_details, which crashed vfd_validation on Sales Invoice submit with AttributeError: 'SalesTaxesandCharges' object has no attribute 'item_wise_tax_detail'.
  • get_itemised_tax_breakup_data/get_itemised_tax now read the new doc._item_wise_tax_details rows (populated during calculate_taxes_and_totals, before before_submit runs), keeping the same {item_code: {tax_description: {tax_rate, tax_amount}}} return shape vfd_validation relies on.
  • Brought .pre-commit-config.yaml, pyproject.toml, and the missing pre-commit workflow/bootstrap script up to the pre-commit-enforcement baseline (anchored excludes, three hook stages, no-commit-to-branch, dropped the duplicate semantic-release workflow). Left the rest of a full-repo audit alone since other open PRs against this branch already cover it.

Test plan

  • Submit a Sales Invoice with VAT taxes on a v16 site and confirm it submits without the AttributeError
  • Confirm vfd_validation's standard/non-standard tax-code checks still throw correctly for misconfigured item tax templates

av-dev2 added 30 commits August 26, 2026 11:46
av-dev2 and others added 30 commits August 26, 2026 11:59
Anchor the exclude regex so it stops swallowing .github, add the
pre-push full-repository-check stage, scope ruff hooks to csf_tz, and
add the no-commit-to-branch guard per the pre-commit-enforcement
skill.
Bootstrap developer hook installs with one command and gate pull
requests with a full-repository pre-commit run, per the
pre-commit-enforcement skill's required file set.
pip install -e .[dev] should pull in pre-commit so the bootstrap
script has something to install if uv/pipx are unavailable.
Both release.yml and tag-and-promote-from-pr-label.yml owned tagging
and releasing at once; semantic-release would tag a release commit
that tag-and-promote never sees, failing that job.
fix: adapt csf_tz to Frappe 16, ERPNext 16 and HRMS 16 APIs
fix: correct defects found while testing on version-16- Aakvatech-Limited#439
fix: repair the desk client scripts and pages for version-16- Aakvatech-Limited#440
fix: repair the csf_tz reports on version-16
chore: apply the Frappe version-16 migration guide items
test: add an integration test suite for version-16- Aakvatech-Limited#443
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant