|
One part of the problem was solved, but the other part is still not working and I will explain why:
Demonstration video in Spanish: https://www.youtube.com/watch?v=peR-g6kSt6w [^]
If I have a line with a product that has a discount applied which expires today and I change the date of my computer the next day (something that can happen if I am working around 23:50hs and I switch to 00hs which would mean a change of day), even if I refresh data, the discount is not recalculated and continues leaving the expired discount applied to the line (TESTOB1 in the video).
But if I delete the line and add the same product, the valid discount is applied (TESTOB2 in the video). |
|
|
The reason this behavior happens is because the order received the order date of the 22nd, and even if the date of the system changed to the 23rd, the order date is preserved, and therefore the discounts that are applied are the ones for the 22nd.
In the POS, we have the convention that the order date is set when the products start being added to the ticket. Once it is set, it is used to calculate the discounts. This is the convention that was decided, and the previous change implemented a fix to preserve this behavior, even in case the ticket came from the previous day (in case it did not have any products).
We believe that functionally this criteria makes sense. In most cases, this criteria will favor the customer, but we believe this is fair, as if the sale started on the 23rd, even if the cashier is late, he adds the products slowly and the 24th is reached, in most cases most probably we will want to preserve the discounts that were defined in the 23rd.
We also understand that some customers might disagree with this policy, and would want the discounts for the 24rd to apply in this case. However, we need to decide what should be the general criteria, and we believe the one we are using is the easiest to understand, and the one that makes more sense in general.
And if somebody wants a different behavior, they can just remove the ticket and create it again, and then the discounts for a new day will start applying. |
|