How does Invoice Detail and Margin works in iDempiere
The Invoice Detail and Margin report provides detailed information about individual sales and purchase invoice lines in iDempiere. It displays invoice, customer, product, pricing, discount, and margin information for each invoice line, helping users analyze invoice transactions and product profitability.
The report is mainly used by Sales, Finance, and Management teams to review invoice details, monitor discounts and margins, and analyze product sales performance.
Business Rules
- The report retrieves invoice line information from the RV_C_InvoiceLine report view.
- Each record represents a single sales or purchase invoice line.
- The report supports both Sales and Purchase invoice transactions.
- Users can filter the report by Business Partner Group, Business Partner, Product Category, Product, Date Invoiced, and Sales Transaction.
- If a filter is selected, only matching invoice records are displayed.
- Multiple parameters can be used together to narrow the report results.
- The report displays invoice details, product information, quantities, prices, discounts, and margin details.
- Discount percentage, margin percentage, margin amount, and invoice amounts are calculated by the report view.
- The report is for analysis only and does not modify invoice data.
- Based on the available implementation, the report retrieves data directly from the RV_C_InvoiceLine report view without using a custom Java process.
Report Parameters
Invoice Detail & Margin– Parameter Window
The Invoice Detail and Margin parameter window allows users to filter invoice line records before generating the report. Users can select Business Partner Group, Business Partner, Product Category, Product, Date Invoiced, and Sales Transaction to retrieve invoice detailsa.

| Parameter | Purpose | Filtering Behavior | Sample Data |
| Business Partner Group | Selects a customer or vendor group. | Displays invoice lines for business partners in the selected group. | Retail Customer |
| Business Partner | Selects a customer or vendor. | Displays invoice lines for the selected business partner. | Alpha Retail Solutions |
| Product Category | Selects a product category. | Displays invoice lines for products in the selected category. | Smartphones |
| Product | Selects a product. | Displays invoice lines for the selected product. | User Preferred Product |
| Date Invoiced | Selects the invoice date. | Displays invoice lines for the selected date or date range. | 01-Jul-2026 |
Report Output
- The Invoice Detail and Margin report displays detailed information for each invoice line that matches the selected report parameters. Each row represents a single invoice line.
The report includes invoice details, business partner information, product details, pricing, quantity, discount, margin, product attributes, document information, and sales representative details.
It helps users review invoice transactions, analyze pricing and discounts, evaluate product margins, and monitor sales performance.


