Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033724Retail ModulesWeb POSpublic2016-08-16 13:282016-09-04 22:44
daniOpenbravo 
mtaal 
highmajoralways
closedinvalid 
30Professional Appliance
 
 
OBPS
No
0033724: [STORE SERVER] Errors in discounts applied to services
When applying a discount to services with service price rule that contains ranges instead of percentage, amount of that service and discount applied are not correct.
1. Log in backend.

2. Go to Service Price Rule window and create one record:
** Name: ranges.
** Rule type: Ranges.
** After Discounts=N.
***Tab Ranges:
** Amount up to: 100.
** Rule Type: Percentage.
** Percentage: 25.
** After Discounts=Y.

3. Go to product window and create a new service:
** Product Type: Service.
** Linked to product=Y.
** Is price Rule Based=Y.
** Proposal Type: Mandatory proposal.
** Included Products: All excluding defined.

***Tab Price: select price list version and price 1.
***Tab Price Rule Version: select the one created before (ranges).
***Tab Products: empty.

4. Include the product in the assortment.
5. Go to Discounts and promotions window and create a new record:
** Organization: *
** Discount/Promotion type: Manual Percentage.
** Active=Y.
** Starting Date: Today.

6. Log in Web POS.
7. Select any product and add the service created on step 3.
8. Go to the menu dropdown and select the option "Receipt Discounts".
9. Click on 20 (for example); Discount; apply to all lines and Apply.
10. Check that the discount has been applied correctly to both service and product.
11. Delete the discount from both product and service.
12. Add another service.
13. Repeat step 9.
14. Check that the discount has correctly been applied to the product and second service, but it is not correctly applied to the service that we have created on step 3: the quantity is not correct and the line of the discount does not appear behind the service (neither discount name nor discount quantity).

**The problem is reproduced in multiserver and having more than one service line in the ticket.
​SER QA
Issue History
2016-08-16 13:28daniOpenbravoNew Issue
2016-08-16 13:28daniOpenbravoAssigned To => mtaal
2016-08-16 13:28daniOpenbravoOBNetwork customer => Yes
2016-08-16 13:28daniOpenbravoResolution time => 1471903200
2016-08-16 13:28daniOpenbravoTriggers an Emergency Pack => No
2016-08-16 13:29daniOpenbravoTag Attached: ​SER QA
2016-08-16 13:29daniOpenbravoIssue Monitored: daniOpenbravo
2016-08-20 12:33mtaalNote Added: 0089263
2016-08-20 12:33mtaalStatusnew => feedback
2016-09-04 22:44mtaalNote Added: 0089723
2016-09-04 22:44mtaalStatusfeedback => closed
2016-09-04 22:44mtaalResolutionopen => invalid

Notes
(0089263)
mtaal   
2016-08-20 12:33   
Hi,
I tried to reproduce this but I couldn't. I tried in a single and a multi-server BUT QA environment.

I noticed that when setting or removing a discount many calls are done from the client to the server. They seem duplicates. I will report this to the BUT team.

My own thought is that this can hardly be a store server issue. It seems deeper in the functional code. So imv it seems a functional issue.

Let me know your thoughts.

gr. Martin
(0089723)
mtaal   
2016-09-04 22:44   
No reaction and validated as not being a store server issue, therefore closing the issue