Bill purchase tax is not posted to GL and tax line renders undefined
I can reproduce a Bill/purchase tax posting issue in self-hosted BigCapital.
### Scenario
1. Create a tax rate, e.g. BTW-21 / 21%.
2. Configure a purchase item with cost account = Office expenses and purchase tax = BTW-21.
3. Create a Bill/purchase invoice, tax exclusive, one line for EUR 100 net with that item/tax.
### Actual behavior
- Input screen calculates EUR 21 VAT correctly.
- Bill details tax line renders as `undefined [[object Object]%]`.
- Journal/GL posts only:
- Dr Office expenses 100.00
- Cr Accounts Payable 100.00
So VAT is not posted and Accounts Payable is not grossed up to 121.00.
### Expected behavior
- Dr Office expenses 100.00
- Dr input VAT / Tax Payable 21.00
- Cr Accounts Payable 121.00
The Bill tax line should also render the tax name/rate correctly.
### Source observation
Checked current upstream and latest release `v0.25.20`.
In `packages/server/src/modules/Bills/commands/BillsGL.ts`:
- `getBillTaxEntry(...)` exists.
- `getBillTaxEntries` is commented out.
- `getBillGLEntries()` does not include tax entries.
In `packages/server/src/modules/Bills/queries/Bill.transformer.ts`:
- Bill `taxes` are included, but the tax transformer is commented out.
- The web Bill footer expects flattened `name` / `tax_rate` fields, which may explain `undefined
1 条评论