Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033990Retail ModulesWeb POSpublic2016-09-14 13:522016-10-18 15:33
malsasua 
shivum039 
normalmajoralways
closedfixed 
5
 
RR16Q4 
guilleaer
No
0033990: negative price unit is calcultaed, in sales order window, when discounts are applied and scale products
when a ticket is created with two lines of the same product, with one discount, and the discount amount is higher that the amount of the second line, the price unit calculated in the sales order synced in backoffice is negative
in BO:
. product window: Whistle
    set as scale
. discount and promotions window:
 . new discount: test
   type: Fixed Percentage Discount
   Include products: Only those defined
   discount: 80 %
 . tab products
   Whistle

in terminal
. new receipt
  line 1: whistle
  line 2: whistle
. complete it

in backoffice:
. the sales order has got two lines:
ERROR: the second line: net unit price and gross unit price is negative

(see attachments)
No tags attached.
png discount.png (131,541) 2016-09-14 13:53
https://issues.openbravo.com/file_download.php?file_id=9814&type=bug
png

png terminalNewReceipt.png (177,338) 2016-09-14 13:53
https://issues.openbravo.com/file_download.php?file_id=9815&type=bug
png

png salesorder.png (143,975) 2016-09-14 13:53
https://issues.openbravo.com/file_download.php?file_id=9816&type=bug
png

patch FIX33990.patch (1,718) 2016-09-30 12:43
https://issues.openbravo.com/file_download.php?file_id=9878&type=bug
patch 33990TEST.patch (8,261) 2016-09-30 12:43
https://issues.openbravo.com/file_download.php?file_id=9879&type=bug
Issue History
2016-09-14 13:52malsasuaNew Issue
2016-09-14 13:52malsasuaAssigned To => Retail
2016-09-14 13:52malsasuaResolution time => 1475791200
2016-09-14 13:52malsasuaTriggers an Emergency Pack => No
2016-09-14 13:53malsasuaFile Added: discount.png
2016-09-14 13:53malsasuaFile Added: terminalNewReceipt.png
2016-09-14 13:53malsasuaFile Added: salesorder.png
2016-09-16 13:12shivum039Assigned ToRetail => shivum039
2016-09-16 13:12shivum039Statusnew => scheduled
2016-09-20 21:02IntegritasIssue Monitored: Integritas
2016-09-30 12:43shivum039File Added: FIX33990.patch
2016-09-30 12:43shivum039File Added: 33990TEST.patch
2016-10-17 08:28hgbotCheckin
2016-10-17 08:28hgbotNote Added: 0090601
2016-10-17 08:28hgbotStatusscheduled => resolved
2016-10-17 08:28hgbotResolutionopen => fixed
2016-10-17 08:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7719ea76ddf3ed9b48f70fe6867028a3eb748a56 [^]
2016-10-17 08:29hgbotCheckin
2016-10-17 08:29hgbotNote Added: 0090602
2016-10-18 15:33guilleaerReview Assigned To => guilleaer
2016-10-18 15:33guilleaerStatusresolved => closed
2016-10-18 15:33guilleaerFixed in Version => RR16Q4

Notes
(0090601)
hgbot   
2016-10-17 08:28   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7719ea76ddf3ed9b48f70fe6867028a3eb748a56
Author: Shivanand Madiwalar <shivanand.madiwalar <at> promantia.com>
Date: Thu Oct 06 11:53:27 2016 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7719ea76ddf3ed9b48f70fe6867028a3eb748a56 [^]

Fixes Issue 33990 :-ve line gross price in the sales Order when product attribute grouped and scaled are true.

Treat product as non-grouped when the attributes of product grouped&scaled are checked .

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0090602)
hgbot   
2016-10-17 08:29   
Repository: tools/automation/pi-mobile
Changeset: 501c1f6cdc437fc1f2e7b5cd92c18afe729beb6c
Author: Shivanand Madiwalar <shivanand.madiwalar <at> promantia.com>
Date: Mon Oct 03 14:29:25 2016 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/501c1f6cdc437fc1f2e7b5cd92c18afe729beb6c [^]

verifies To Issue 33990 :-ve line gross price in the sales Order when product attribute grouped and scaled are true.

Treat product as non-grouped when the attributes of product grouped&scaled are checked .

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I33990_scaleplusgrouped_considernongrouped.java
---