-
- Downloads
[FIX] pos: reconciliation and performance issues (#24610)
Before this commit, the complete list of orders of the pos session was processed through the reconciliation mechanism to check if an automatic reconciliation was possible (introduced in a controversial 'bug fix' at fe70f071, itself a backport of a master commit at a2319b43). The goal of this auto-reconciliation was to avoid potentially silent and numerous customer statements that could be reconciled automatically. This is mostly useless in a lot of cases, since a lot of users do not set any partner_id value on the pos order - there is nothing useful to reconcile. Going through the whole list of orders is time-wasting (especially since the reconciliation method does not scale well). Combine this with users who do not close their POS session often enough and closing a session can suddenly take up to several hours to process instead of several seconds with practically no obvious gain. After this commit, only orders which have a partner set on them will be auto-reconciled. opw-1818838 and opw-1817172
Please register or sign in to comment