This question has been flagged
1 Reply
14026 Views

I’m confused by the behavior of the “Invoice Status” of the Sales Orders.

After invoicing, the sales orders usually get the invoice status “Nothing to Invoice”.  But sometimes they receive status “Fully Invoiced”. I cannot figure out the reason why this happens. There has to be a logical explanation however...

Business context is a service process with products defined as “services” and invoicing policy according to “Delivered quantities”. Track service is "Manually set quantities on order” except for one product/service with Track service as "Create a task and track hours"


Avatar
Discard
Best Answer

Compute the invoice status of a SO line. Possible statuses:

- Nothing to invoiceif the SO is not in status 'sale' or 'done', it's consider that there is nothing to invoice. This is also a default value if the conditions of other status is met.

- To Invoice: It's refer to the quantity to invoice of the line. Refer to method `_get_to_invoice_qty ()` for more information on how this is calculated.

- Upselling Opportunity :This is possible only for a product invoiced if delivered more than expected. The could arise if, for example, a project took more time than expected. This is only in the 'sale' state, so that when SO is set to done, the upselling opportunity is removed from the list.

- Fully Invoiced : The quantity invoiced is larger or equal to the quantity ordered.

Avatar
Discard