Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035392Retail ModulesWeb POSpublic2017-03-01 10:042017-03-14 18:34
amayavicente 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0035392: [SERQA 2515] Wrong quantity for services defined as grouped product=No and Quantity Rule=As per product
When decrease the quantity of a product with services defined as grouped product=No and Quantity Rule=As per product, the quantity of the service is not updated correctly.

In addition, it is not clear for the user when a service of this type can be deleted or not.
In Backend:
1. In product window, search the service 'Repair boots' and define it as Grouped Product=No, Quantity Rule=As per product.

In Webpos:
1. Create a new ticket and add 2 units of the product 'All mountain ski board Cham'.
2. Add the service 'Repair boots'. Check that two units of the service are added in two different lines as the product is defined as grouped product=No and Quantity Rule=As per product.
3. Select the line with the product 'All mountain ski board Cham' and with the '-' button decrease one unit.

ERROR1: the quantity of the service is still 2 but it should be 1. Same error using the button QUANTITY.

4. Increase the quantity of the product to 2 again.
5. Select one of the line of the service and try to delete it.

ERROR2: the line of the service is not deleted. It has sense that the service cannot be deleted because it is defined as Quantity Rule=As per product but it is not clear for the user. An informative message should be displayed explaining why this line cannot be removed and how to remove it (selecting both lines with multiline).
SER-QA
related to feature request 0035443 closed migueldejuana OBPOS_PreDeleteLine Hook cannot be cancelled 
patch issue 35392 source posterminal.patch (4,782) 2017-03-01 15:52
https://issues.openbravo.com/file_download.php?file_id=10523&type=bug
patch issue 35392 test.patch (6,292) 2017-03-01 15:53
https://issues.openbravo.com/file_download.php?file_id=10524&type=bug
Issue History
2017-03-01 10:04amayavicenteNew Issue
2017-03-01 10:04amayavicenteAssigned To => Retail
2017-03-01 10:04amayavicenteResolution time => 1489532400
2017-03-01 10:04amayavicenteTriggers an Emergency Pack => No
2017-03-01 10:04amayavicenteTag Attached: SER-QA
2017-03-01 12:06ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-03-01 12:06ranjith_qualiantech_comStatusnew => scheduled
2017-03-01 15:52ranjith_qualiantech_comFile Added: issue 35392 source posterminal.patch
2017-03-01 15:53ranjith_qualiantech_comFile Added: issue 35392 test.patch
2017-03-08 12:18hgbotCheckin
2017-03-08 12:18hgbotNote Added: 0094822
2017-03-08 12:18hgbotStatusscheduled => resolved
2017-03-08 12:18hgbotResolutionopen => fixed
2017-03-08 12:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dfbbfbae46a75ca47ad4881cb6ab98e875304ab5 [^]
2017-03-08 12:19hgbotCheckin
2017-03-08 12:19hgbotNote Added: 0094823
2017-03-09 13:33migueldejuanaRelationship addedrelated to 0035443
2017-03-14 18:34marvintmReview Assigned To => marvintm
2017-03-14 18:34marvintmStatusresolved => closed
2017-03-14 18:34marvintmFixed in Version => RR17Q2

Notes
(0094822)
hgbot   
2017-03-08 12:18   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: dfbbfbae46a75ca47ad4881cb6ab98e875304ab5
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Mar 08 16:47:50 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/dfbbfbae46a75ca47ad4881cb6ab98e875304ab5 [^]

Fixes issue 35392 : Service Product should be not deleted if quantity rule is configured

* To delete the service product, If service quantity rule is defined as "As per product", all the services must be selected

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web/org.openbravo.retail.posterminal/js/components/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/editline.js
---
(0094823)
hgbot   
2017-03-08 12:19   
Repository: tools/automation/pi-mobile
Changeset: cd091401489deb467e9eba2e4b4b44c0d6cd519b
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Wed Mar 08 16:48:00 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/cd091401489deb467e9eba2e4b4b44c0d6cd519b [^]

Verifies issue 35392 : Added automated test 'I35392_VerifyServiceWithQuantityRule'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/services/I35392_VerifyServiceWithQuantityRule.java
---