Openbravo Issue Tracking System - POS2
View Issue Details
0049787POS2POSpublic2022-07-12 13:492024-06-17 08:31
andre_montenegro 
Rajesh_18 
urgentmajoralways
closedfixed 
5
 
24Q3 
No
0049787: [22Q3] Paid ticket with 100% discount on products appears as unpaid in Order's list
Here we can find 2 issues on orders with 100% discount product:

- Paying ticket: when clicking "Pay" button, no message notifies about the ticket total is zero.

- After pay the ticket: In order list, the ticket appears as unpaid.

- In the ERP Goods Shipment window no entry have been created for the order
Precondition: (Applying 100% Discount for a product)

- Log in ERP as Group -Admin-The White Valley Group
- Go to Discounts and Promotions window
- Click Ctrl + D to create new record
- Navigate to Header tab
- Discount type: Fixed Percentage Discount
   - Name: Fixed 100%
   - Printed Name: Fixed Discount (100%)
   - Starting date: 01-01-2013
   - Included Products: Only those defined
   - Discount: 100
- Navigate to Products tab
   - Product: Alpine skiing backpack 27 L
- Save the record


Steps to reproduce:

- Login POS
- Select “Backpacks & Travel” category
- Add product "Alpine skiing backpack 27 L"
- Verify that gross amount is 0
- Click "Pay" button
- Notice that no message informs about ticket total is zero
- Click "Done"
- Go to "Order" context (5th button on lateral bar)
- Notice the order that has been just paid, it appears as "Unpaid"
- Paying ticket: when clicking "Pay" button, a message should notify about the ticket total is zero (similar to old POS)

- After pay the ticket: In order list, the ticket must appears as paid even if the price has been 0.
No tags attached.
depends on backport 005577924Q2.1 closed Rajesh_18 [22Q3] Paid ticket with 100% discount on products appears as unpaid in Order's list 
has duplicate defect 0054278 closed Rajesh_18 'NaN.00 €' is shown instead of '0.00' as Total in the 'Orders' list, if pay the Order using Gift Card or a Discount of 100% 
has duplicate defect 0051607 closed SABARINATH P [23Q1] Incorrect behaviour after paying a product with 100% discount 
png Unpaid_Ticket_0.png (62,394) 2022-07-12 13:49
https://issues.openbravo.com/file_download.php?file_id=17299&type=bug
png

png No_Message_displayed.png (120,975) 2022-07-12 13:52
https://issues.openbravo.com/file_download.php?file_id=17300&type=bug
png
Issue History
2022-07-12 13:49andre_montenegroNew Issue
2022-07-12 13:49andre_montenegroAssigned To => Retail
2022-07-12 13:49andre_montenegroFile Added: Unpaid_Ticket_0.png
2022-07-12 13:49andre_montenegroRegression level => QA functional test
2022-07-12 13:49andre_montenegroTriggers an Emergency Pack => No
2022-07-12 13:52andre_montenegroFile Added: No_Message_displayed.png
2022-07-15 13:49andre_montenegroRegression levelQA functional test =>
2022-07-15 13:49andre_montenegroTarget Version22Q3 =>
2023-08-24 15:36Rajesh_18Assigned ToRetail => Rajesh_18
2023-08-25 10:47Rajesh_18Statusnew => scheduled
2023-08-29 06:40hgbotNote Added: 0154072
2024-01-17 08:37Rajesh_18Relationship addedhas duplicate 0054278
2024-04-05 12:16Daria_ShRelationship addedhas duplicate 0051607
2024-04-05 12:29Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=27770#r27770
2024-06-17 07:39Rajesh_18Statusscheduled => acknowledged
2024-06-17 07:39Rajesh_18Statusacknowledged => scheduled
2024-06-17 08:31hgbotResolutionopen => fixed
2024-06-17 08:31hgbotStatusscheduled => closed
2024-06-17 08:31hgbotFixed in Version => 24Q3
2024-06-17 08:31hgbotNote Added: 0165989
2024-06-17 08:31hgbotNote Added: 0165990

Notes
(0154072)
hgbot   
2023-08-29 06:40   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2047 [^]
(0165989)
hgbot   
2024-06-17 08:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: b00f130997e028c5f22227fdc12adc35be7bc9d5
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 17-06-2024 06:31:03
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/b00f130997e028c5f22227fdc12adc35be7bc9d5 [^]

Fixes ISSUE-49787: Ticket with 100% discount on products appears as paid in Order's list

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentList/PaymentsGrid.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketTypeStatusHandling.js
M web-jspack/org.openbravo.pos2/src/components/TicketList/TicketListAmountCellRender.jsx
---
(0165990)
hgbot   
2024-06-17 08:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/2047 [^]