Openbravo Issue Tracking System - POS2
View Issue Details
0052746POS2POSpublic2023-06-14 17:562024-03-27 14:04
nicolasuriz 
Triage Platform Base 
urgentmajoralways
closedfixed 
5
 
 
No
0052746: A manual discount defined with approval, adding it in different lines asks always as many times as lines
I have a video available to share if needed. All the configuration and problem description it is in the uploaded file below.

1) If we have 1 line requesting the approval. Should be 1 approval
2) 2 lines requesting the approval. 3 approvals requested. Should be 2 approvals
3) 3 lines requesting the approval. 6 approvals requested. Should be 3 approvals

Test case :

Add 1st product with this discount
Approval is asked : OK

Add 2nd product with this discount :
Approval is asked twice (because 2 lines need approval: KO : only one is expected

Add 3rd product with this discount :
Approval is asked 3 times (because 3 lines need approval: KO : only one is expected
Configuration added in the file uploaded.

Test case :

1. Create a sales order and add one product orderline (Table for example) with this discount configured and apply the configured discount for this orderline.
2. Approval is asked : OK

3. Add a different product orderline (Chair for example) and apply the same discount for this orderline.
4. Approval is asked twice --> KO : only one is expected

5. Add a different product orderline (Lamp for example) and apply the same discount for this orderline.
6. Approval is asked 3 times --> KO : only one is expected


The approvals already approved must not be demanded again if a new line with the same approval is asked, it should ask only for the lines not already approved.
No tags attached.
pptx Approval_bug Configuration and steps.pptx (1,092,444) 2023-06-14 17:56
https://issues.openbravo.com/file_download.php?file_id=18647&type=bug
Issue History
2023-06-14 17:56nicolasurizNew Issue
2023-06-14 17:56nicolasurizAssigned To => Retail
2023-06-14 17:56nicolasurizFile Added: Approval_bug Configuration and steps.pptx
2023-06-14 17:56nicolasurizTriggers an Emergency Pack => No
2023-06-19 13:46marvintmSeveritycritical => major
2023-07-20 12:26ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-07-21 07:39ranjith_qualiantech_comStatusnew => scheduled
2023-07-25 07:15hgbotNote Added: 0152854
2023-08-25 14:38hgbotNote Added: 0153985
2023-08-25 14:39marvintmAssigned Toranjith_qualiantech_com => Triage Platform Base
2023-08-28 09:54AugustoMauchNote Added: 0154004
2023-08-28 09:54AugustoMauchAssigned ToTriage Platform Base => nicolasuriz
2023-08-28 09:54AugustoMauchStatusscheduled => feedback
2023-08-28 11:23AugustoMauchTypedefect => design defect
2023-08-30 09:47nicolasurizSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26722#r26722
2023-08-30 09:50nicolasurizNote Added: 0154171
2023-09-05 14:48nicolasurizAssigned Tonicolasuriz => Triage Platform Base
2023-09-05 15:04AugustoMauchStatusfeedback => new
2024-03-27 14:04Daria_ShNote Added: 0162718
2024-03-27 14:04Daria_ShStatusnew => closed
2024-03-27 14:04Daria_ShResolutionopen => fixed

Notes
(0152854)
hgbot   
2023-07-25 07:15   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1977 [^]
(0153985)
hgbot   
2023-08-25 14:38   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1977 [^]
(0154004)
AugustoMauch   
2023-08-28 09:54   
Hello Nicolas,

Sorry but the steps to reproduce are not clear at all, specially the part below "Test case". Could you rephrase them, please?
(0154171)
nicolasuriz   
2023-08-30 09:50   
Hi Augusto,

I have changed a bit the steps to reproduce, check if it is clear enough now or I have to modify it again please.
(0162718)
Daria_Sh   
2024-03-27 14:04   
Tested in livebuilds environment and confirmed in the GIFI customer environment that issue is no longer reproducible