Skip to content

fix(sales): percentage invoicing – use remaining amount and per-item %#56

Open
ajmalroshan123 wants to merge 1 commit intodevelopfrom
item_wise_percentage
Open

fix(sales): percentage invoicing – use remaining amount and per-item %#56
ajmalroshan123 wants to merge 1 commit intodevelopfrom
item_wise_percentage

Conversation

@ajmalroshan123
Copy link
Contributor

@ajmalroshan123 ajmalroshan123 commented Feb 20, 2026

Feature description

Percentage-based invoicing from Sales Order: create Sales Invoices by entering a percentage (for the whole order or per item). Service items use percentage of amount; stock items use percentage of quantity. Sales Order Item shows Invoiced Amount and Remaining Amount, and the popup shows per-item remaining % and lets you set Invoice % per line.

Solution description

Backend: get_so_items always computes billed/remaining from submitted Sales Invoices and returns per-item remaining_amt_percentage. make_sales_invoice_by_percentage applies Invoice % to line total (capped at remaining amount) in per-item mode, and uses order-level fraction in “Same % for all” mode. Sales Order Item custom fields invoiced_amount and remaining_amount are updated on Sales Invoice submit/cancel.

Frontend: popup has Remaining % column, default Invoice % from per-item remaining, Include and “Same % for all” unchecked by default, and compact options layout.

Output screenshots (optional)

image

Was this feature tested on the browsers?

  • Chrome

@MhmdSinanKT
Copy link
Collaborator

task? @ajmalroshan123

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.

2 participants