66 lines
2 KiB
Markdown
66 lines
2 KiB
Markdown
# Purchase Invoice Subtotal with Taxes
|
|
|
|
## Description
|
|
|
|
This module adds two optional columns to purchase orders and invoices to display the subtotal both with and without taxes, regardless of the tax configuration in Odoo.
|
|
|
|
### Problem
|
|
|
|
By default, Odoo only shows one subtotal column in purchase orders and invoices based on the tax configuration:
|
|
- If taxes are configured as "included in price", it shows the total with taxes
|
|
- If taxes are configured as "excluded from price", it shows the total without taxes
|
|
|
|
However, in some cases, users need to see **both** values at the same time for comparison or reporting purposes.
|
|
|
|
### Solution
|
|
|
|
This module adds two new optional columns:
|
|
- **Subtotal (No Tax)**: Always shows the line subtotal without taxes included
|
|
- **Subtotal (Tax Incl.)**: Always shows the line subtotal with taxes included
|
|
|
|
These columns are available in:
|
|
- Purchase order lines
|
|
- Invoice lines (customer and vendor invoices)
|
|
|
|
Both columns are hidden by default (optional="hide") and can be shown by users as needed using the column visibility controls.
|
|
|
|
## Installation
|
|
|
|
1. Install the module from the Apps menu
|
|
2. No additional configuration is required
|
|
|
|
## Usage
|
|
|
|
After installation:
|
|
1. Go to a purchase order or invoice
|
|
2. In the lines view, click on the column selector (≡ icon)
|
|
3. Enable "Subtotal (No Tax)" and/or "Subtotal (Tax Incl.)" columns
|
|
4. Both values will be displayed regardless of your tax configuration
|
|
|
|
## Technical Details
|
|
|
|
The module creates two computed fields on:
|
|
- `purchase.order.line`: `price_subtotal_no_tax` and `price_subtotal_with_tax`
|
|
- `account.move.line`: `price_subtotal_no_tax` and `price_subtotal_with_tax`
|
|
|
|
These fields are based on the existing `price_subtotal` (without tax) and `price_total` (with tax) fields, ensuring consistency with Odoo's core calculations.
|
|
|
|
## Bug Tracker
|
|
|
|
Bugs are tracked on [GitHub Issues](https://github.com/OCA/account-invoicing/issues).
|
|
|
|
## Credits
|
|
|
|
### Contributors
|
|
|
|
* Criptomart
|
|
|
|
### Maintainers
|
|
|
|
This module is maintained by the OCA.
|
|
|
|
## Compatibility
|
|
|
|
- Odoo 16.0
|
|
- purchase
|
|
- account
|