Openbravo Issue Tracking System - POS2
View Issue Details
0049818POS2POSpublic2022-07-15 13:382022-07-19 16:13
gorka_gil 
Retail 
normalminorN/A
newopen 
5
 
 
No
0049818: fill isInvoiced column of c_order
there are many ways to check that an order was invoiced, in general looks the most standard to check the order lines and see if any has any invoice qty greater than 0.

but for queries that loads the orders to show in the pos do this calculation can be expensive.

Exists already a column isInvoiced in c_order, why not use it? And set it when the ticket is added to any invoice. Including the ones created by the cashup.

When this is implemented these code can be improved:
- in PaidReceiptsFilterProperties.java the set of invoiceCreated can use directly this isInvoiced column.
- in IssueInvoice.js (state action one) it can be removed the check verifyNoInvoiceCreated. (Since no needed to load the ticket to check that this field is correct)
-
No tags attached.
related to feature request 0049781 closed gorka_gil Add option from orders view to issue invoice 
Issue History
2022-07-15 13:38gorka_gilNew Issue
2022-07-15 13:38gorka_gilAssigned To => Retail
2022-07-15 13:38gorka_gilTriggers an Emergency Pack => No
2022-07-15 13:39gorka_gilRelationship addedrelated to 0049781
2022-07-19 16:13ivancaceresIssue Monitored: ivancaceres

There are no notes attached to this issue.