Openbravo Issue Tracking System - POS2
View Issue Details
0054278POS2POSpublic2024-01-09 16:452024-06-17 08:49
Daria_Sh 
Rajesh_18 
normalminorhave not tried
closedfixed 
5
 
 
guillermogil
No
0054278: '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%
In POS2, when creating a single-use Gift Card, selling it, and using it to pay an order with a total less than the Gift Card's initial balance, the 'Total' in the 'Orders' list is displayed as 'NaN.00 €', and the status is shown as 'Unpaid'.

The same happens when paying an order with a 100% discount.

Go to Backoffice (User:Openbravo/Password:openbravo)-> Product window
Create a new Product with the following values:
-Organization: Vall Blanca Store
-Search Key: GC/01
-Name: Gift Card
-UOM: Unit
-Tax Category: IVA Normale
-Product Category: Backpacks & Travel
-Purchase: ✔
-Sale: ✔
-Stocked: unselected
-Product Type: Item
-Active: ✔
-Returnable: ✔

POS Properties section:
-Grouped Product: unselected
-Show Characteristics Description: ✔
-Gift card Type: Gift Card
-Gift Card sale excluded of invoicing: unselected
-Gift Card redemption type: As negative line
-Taxable Gift Card: ✔
-Gift card initial amount: 50.00
-Expires After (days): blank
Allow Anonymous Sale: ✔
    
Navigate to the 'Price' tab
Add new record in the form with the following values:
-Price List Version: The White Valley Group Sale Price List Version
-Unit Price: 50.00
-List Price: 50.00

Go to the 'Assortment' window
Open the 'White Valley Group Product List'-> Go to the 'Product' tab
Add new record in the form with the following values:
-Active: ✔
-Product: Gift Card
-Product Category: Backpacks & Travel
-Bestseller: No
1.Go to POS2 (VBS-3): user:vallblanca/password:openbravo
2.Specify the 'Gift Card' product to the Search line → Push 'Search' button
3.Specify '1' to the mandatory 'Identifier' field → Push 'Finish' button
4.Push 'Pay' button → Select 'Cash' payment method → 'Click 'Done'
5.Add 'Compass' product to the Order → Push 'Pay' → Select 'Gift Card' payment method
6.Specify '1' into the 'Card ID' field → Push 'Search' button
7.Push the displayed Gift Card (the Gift Card is added as a negative line to the Order)
8.Push 'Pay' button → Select 'Cash' payment method → Push 'Done'
9.Go to 'Orders' → Pay attention to the 'Total' value

Actual result:'NaN.00 €' is shown as Total of the Order in the 'Orders' list, if pay the Order using Gift Card
Expected result: '0.00' Order Total amount is shown in the Orders list
No tags attached.
duplicate of defect 0049787 closed Rajesh_18 [22Q3] Paid ticket with 100% discount on products appears as unpaid in Order's list 
has duplicate defect 0055774 closed sreehari Unexpected 'NaN.00' total amount for zero amount sales in the orders menu 
png Screenshot_33.png (91,685) 2024-01-09 16:45
https://issues.openbravo.com/file_download.php?file_id=19306&type=bug
png
Issue History
2024-01-09 16:45Daria_ShNew Issue
2024-01-09 16:45Daria_ShAssigned To => Retail
2024-01-09 16:45Daria_ShFile Added: Screenshot_33.png
2024-01-09 16:45Daria_ShTriggers an Emergency Pack => No
2024-01-09 16:47Daria_ShSummary'NaN.00 €' is shown instead of Order Total in the 'Orders' list, if pay the Order using Gift Card => 'NaN.00 €' is shown instead of '0.00' as Total in the 'Orders' list, if pay the Order using Gift Card
2024-01-09 16:47Daria_ShSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27308#r27308
2024-01-11 11:18Rajesh_18Assigned ToRetail => Rajesh_18
2024-01-17 08:37Rajesh_18Relationship addedduplicate of 0049787
2024-04-17 16:08asier_perezSummary'NaN.00 €' is shown instead of '0.00' as Total in the 'Orders' list, if pay the Order using Gift Card => '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%
2024-04-17 16:08asier_perezDescription Updatedbug_revision_view_page.php?rev_id=27830#r27830
2024-06-17 07:27sreehariRelationship addedhas duplicate 0055774
2024-06-17 08:49guillermogilReview Assigned To => guillermogil
2024-06-17 08:49guillermogilNote Added: 0165999
2024-06-17 08:49guillermogilStatusnew => closed
2024-06-17 08:49guillermogilResolutionopen => duplicate
2024-06-17 08:49Rajesh_18Statusclosed => scheduled
2024-06-17 08:49Rajesh_18Statusscheduled => resolved
2024-06-17 08:49Rajesh_18Resolutionduplicate => fixed
2024-06-17 08:49Rajesh_18Statusresolved => closed

Notes
(0165999)
guillermogil   
2024-06-17 08:49   
Fixed in https://issues.openbravo.com/view.php?id=49787 [^]