Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056587
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSminorhave not tried2024-09-30 15:392024-10-14 11:49
ReporterjayalaView Statuspublic 
Assigned ToRajesh_18 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0056587: [DraftOrders] Manual discounts are lost

DescriptionWhen a draft order which contain a manual discount is loaded, the manual discount is lost when the discount engine is executed.
Discounts engine is executeb doing several actions:
- Add new items to the ticket
- Press pay button
Steps To Reproduce1. Add a product to a ticket.
2. Add a manual discount to the line.
3. Save the ticket as Draft Order.
4. Load the saved Draft Order (the discount is keeped).
5a. Click pay button.
5b. Modify the ticket.
6. The discount is lost.
Proposed SolutionWhen a draft order is loaded the information abot discounts is retrieved but not the information about manual discounts.
We need to re-generate manual discounts info.
To do that we can use this code [
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/blob/59b2f8c0168a9e3aa794b4610cce853fd16f8801/web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js#L341 [^]]

This information must be generated here [https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/8a8a0429859bac4c63459f5fbf418cebd7b00ea2/web/org.openbravo.retail.posterminal/app/model/business-object/ticket/LoadTicketUtils.js#L108 [^]]

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0170188)
hgbot (developer)
2024-10-09 13:23

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/155 [^]
(0170345)
hgbot (developer)
2024-10-14 11:49

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 634bfb6f49b59debb5c8b573536a99de8166c915
Author: Rajesh Senthilkumar <r.senthilkumar@external.orisha.com>
Date: 14-10-2024 09:49:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/634bfb6f49b59debb5c8b573536a99de8166c915 [^]

Fixed ISSUE-56587: [DraftOrders] Manual discounts are added to draft ticket

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---
(0170346)
hgbot (developer)
2024-10-14 11:49

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/155 [^]

- Issue History
Date Modified Username Field Change
2024-09-30 15:39 jayala New Issue
2024-09-30 15:39 jayala Assigned To => Retail
2024-09-30 15:39 jayala Triggers an Emergency Pack => No
2024-09-30 15:39 jayala Assigned To Retail => jayala
2024-10-08 08:34 guilleaer Type design defect => defect
2024-10-08 08:34 guilleaer Description Updated View Revisions
2024-10-08 08:34 guilleaer Proposed Solution updated
2024-10-08 08:35 guilleaer Status new => acknowledged
2024-10-08 09:07 guilleaer Assigned To jayala => Retail
2024-10-08 09:22 Rajesh_18 Assigned To Retail => Rajesh_18
2024-10-08 09:22 Rajesh_18 Status acknowledged => scheduled
2024-10-09 13:23 hgbot Note Added: 0170188
2024-10-14 11:49 hgbot Resolution open => fixed
2024-10-14 11:49 hgbot Status scheduled => closed
2024-10-14 11:49 hgbot Fixed in Version => RR25Q1
2024-10-14 11:49 hgbot Note Added: 0170345
2024-10-14 11:49 hgbot Note Added: 0170346


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker