Project: 	
  | View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
| ID | ||||||||
| 0043464 | ||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
| defect | [Retail Modules] Discounts and Promotions | major | always | 2020-03-10 11:33 | 2020-04-15 14:33 | |||
| Reporter | Leyre | View Status | public | |||||
| Assigned To | prakashmurugesan88 | |||||||
| Priority | high | Resolution | fixed | Fixed in Version | ||||
| Status | closed | Fix in branch | Fixed in SCM revision | 0c2e71fbb016 | ||||
| Projection | none | ETA | none | Target Version | ||||
| OS | Any | Database | Any | Java version | ||||
| OS Version | Database version | Ant version | ||||||
| Product Version | SCM revision | |||||||
| Merge Request Status | ||||||||
| Review Assigned To | migueldejuana | |||||||
| OBNetwork customer | Gold | |||||||
| Support ticket | 14953 | |||||||
| Regression level | ||||||||
| Regression date | ||||||||
| Regression introduced in release | ||||||||
| Regression introduced by commit | ||||||||
| Triggers an Emergency Pack | No | |||||||
| Summary | 0043464: "Line Total" is not calculated correctly when the discounts are added to a product with quantity with decimals. | |||||||
| Description | "Line Total" is not calculated correctly when the discounts are added to a product with quantity with decimals. | |||||||
| Steps To Reproduce | Backend: 1. Set the Preference "Web POS Use advanced discounts engine" = N 2. "Product" window -> for example "Alpine Poles" -> is Scale = true 3. In the "Channel Touchpoint" window: 3.1 Scale url = http://localhost:8090/scale [^] [^] 3.2 Hardware url = http://localhost:8090/printer [^] [^] 4. As system administrator, define the Unit of Measure of a product Standard Precision = 3, for example = EA (Unit of measure of "Alpine Poles" => Standard Precision = 3) 5. Define two discounts: Discount 1: Fixed Percentage Discount, discount % = 30, priority = 1 Discount 2: Fixed Percentage Discount, discount % = 100, priority = 10 Scale in POS Hardware Manager: 1. Current weight = for example 0.234 Web POS: 1. Add the product Alpine Poles (quantity 0.432 in the HWM - Scale) Verify this three errors: 1. The web pos shows two lines. 2. The quantity is 0.23 instead of 0.234. 3. The total receipt (even discount 2 is 100%) is 0.01. | |||||||
| Tags | No tags attached. | |||||||
| Attached Files |  Screenshot from 2020-03-23 16-04-38.png [^] (253,320 bytes) 2020-03-23 16:09  I43464_DiscountsOnProductQtyInDecimals.patch [^] (1,037 bytes) 2020-04-04 10:47 [Show Content] | |||||||
|  Relationships		[ Relation Graph ] 
		[ Dependency Graph ] | ||||||||
| 
 | ||||||||
|  Notes | |
| (0118920) prakashmurugesan88 (viewer) 2020-04-02 13:05 | Similar issue when the discount is applied manually. https://drive.google.com/file/d/1H_o-WB-j7NTKC9ztJ_CbpZ-tojXLndzm/view?usp=sharing [^] | 
| (0119078) hgbot (developer) 2020-04-08 07:28 | Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 0c2e71fbb016d7695f29948f35c4011b8895c447 Author: Prakash M <prakash <at> qualiantech.com> Date: Wed Apr 08 10:57:04 2020 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c2e71fbb016d7695f29948f35c4011b8895c447 [^] Fixed BUG 43464: Fixed duplicate line generation on applying discount to a line with quantity in decimals(3 Precision) --- M web/org.openbravo.retail.posterminal/js/model/order.js --- | 
| (0119186) migueldejuana (viewer) 2020-04-15 14:33 | Tested and reviewed | 
|  Issue History | |||
| Date Modified | Username | Field | Change | 
| 2020-03-10 11:33 | Leyre | New Issue | |
| 2020-03-10 11:33 | Leyre | Assigned To | => Retail | 
| 2020-03-10 11:33 | Leyre | File Added: bug_scale.png | |
| 2020-03-10 11:33 | Leyre | OBNetwork customer | => Gold | 
| 2020-03-10 11:33 | Leyre | Support ticket | => 14953 | 
| 2020-03-10 11:33 | Leyre | Resolution time | => 1585605600 | 
| 2020-03-10 11:33 | Leyre | Triggers an Emergency Pack | => No | 
| 2020-03-10 11:33 | Leyre | Relationship added | related to 0043374 | 
| 2020-03-18 13:52 | rqueralta | Assigned To | Retail => rqueralta | 
| 2020-03-18 13:52 | rqueralta | Status | new => scheduled | 
| 2020-03-20 16:18 | guilleaer | Assigned To | rqueralta => Leyre | 
| 2020-03-20 16:18 | guilleaer | Status | scheduled => feedback | 
| 2020-03-23 16:09 | Leyre | Steps to Reproduce Updated | View Revisions | 
| 2020-03-23 16:09 | Leyre | File Deleted: bug_scale.png | |
| 2020-03-23 16:09 | Leyre | File Added: Screenshot from 2020-03-23 16-04-38.png | |
| 2020-03-23 16:10 | Leyre | Resolution time | 1585605600 => 1586124000 | 
| 2020-03-23 16:10 | Leyre | Assigned To | Leyre => Retail | 
| 2020-03-23 16:10 | Leyre | Status | feedback => new | 
| 2020-03-23 17:12 | Leyre | Steps to Reproduce Updated | View Revisions | 
| 2020-03-27 03:39 | rqueralta | Assigned To | Retail => rqueralta | 
| 2020-03-31 18:08 | rqueralta | File Added: 43464.diff | |
| 2020-04-02 10:11 | guilleaer | Assigned To | rqueralta => Retail | 
| 2020-04-02 10:11 | guilleaer | Status | new => scheduled | 
| 2020-04-02 10:23 | prakashmurugesan88 | Assigned To | Retail => prakashmurugesan88 | 
| 2020-04-02 13:05 | prakashmurugesan88 | Note Added: 0118920 | |
| 2020-04-04 10:47 | prakashmurugesan88 | File Added: I43464_DiscountsOnProductQtyInDecimals.patch | |
| 2020-04-06 08:57 | guilleaer | File Deleted: 43464.diff | |
| 2020-04-08 07:28 | hgbot | Checkin | |
| 2020-04-08 07:28 | hgbot | Note Added: 0119078 | |
| 2020-04-08 07:28 | hgbot | Status | scheduled => resolved | 
| 2020-04-08 07:28 | hgbot | Resolution | open => fixed | 
| 2020-04-08 07:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c2e71fbb016d7695f29948f35c4011b8895c447 [^] | 
| 2020-04-15 14:33 | migueldejuana | Review Assigned To | => migueldejuana | 
| 2020-04-15 14:33 | migueldejuana | Note Added: 0119186 | |
| 2020-04-15 14:33 | migueldejuana | Status | resolved => closed | 
| Copyright © 2000 - 2009 MantisBT Group |