Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041670Retail ModulesDiscounts and Promotionspublic2019-08-21 12:312019-09-12 09:37
santi_lozano 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q4 
marvintm
No
0041670: Pack not appearing in product search with multiple price list
After creating a multiple price list and a pack of products (from discounts and promotions), the pack appears in product search (Web POS) for the default client but not in product search for the client with the new price list. Although the pack (discount) is being applied when choosing the products of the pack one by one (for that customer)
>>>Enter in livebuilds
*go to http://livebuilds.openbravo.com/ [^] then in Retail with Modules enter in “pgsql_pi Backend” for the back office (Openbravo/openbravo) and “Webpos” for the Web POS (vallblanca/openbravo)
>>>Create Multiple Price List
*in the back office, window Price List, create a new one. Name = Tarifa 4, Currency = EUR, Sales Price List= selected, Active = Selected, Prices includes Tax = selected, the rest in blank.
*Tarifa 4 selected, go to Price List Version tab, create a new one. Name = Tarifa 4 Version, Valid From Date = 01-01-[current year], Price List Schema = The White Valley Group Price List Schema, Base Version (Default) = The White Valley Group Sale Price List Version.
*With Tarifa 4 Version selected, click on button Create Price List, then OK. Go to Product Price tab, change price for Ale Beer to 0.5 and 0.5 (just to see that we can have different prices in that new price list).
*Open window Business Partner, select Carl Studson. In Customer tab, change Price List to Tarifa 4.
>>>Pack problems
*In window Discounts and Promotions, search for “pack” in Discount/Promotion Type column. SCO Test Pack appears (part of test data), select it and see its related products in Products tab.
*In case that SCO Test Pack doesn’t appear, create a new record. Organization= Vall Blanca Store, Discount/Promotion Type = Pack, Name = SCO Test Pack, Starting Date = 01-01-2017, Ending Date = 01-01-2020, Priority = 1, Included Product = Only those defined, for the rest of fields beginning with Included in Filter Options Section put All excluding defined, Discount/Promotion Price = 20.00, Currency = EUR. Go to products tab, create two new ones. First: Product =Headlamp ultralight, Quantity = 2. Second: Product: Avalanche transceiver, Quantity = 1.
*Enter in the Web POS. Default customer is VBS customer. Search for product SCO Test Pack, it appears, select it and add it to the ticket. It is working. Delete it from the ticket.
*Select customer (by clicking customer name VBS Customer) Carl Studson (search for it in the popup). Search for “pack” in products search like before, check that SCO Test Pack doesn’t appear for that customer (it isn’t in its price list). But search for “Avalanche transceiver” and add one to the ticket, add also two “Headlamp ultralight” to the ticket. Check that the discount is being applied (Image 1).
No tags attached.
png Image 1.png (230,642) 2019-08-21 12:31
https://issues.openbravo.com/file_download.php?file_id=13248&type=bug
png

png Image 2.png (150,023) 2019-08-21 12:32
https://issues.openbravo.com/file_download.php?file_id=13249&type=bug
png
Issue History
2019-08-21 12:31santi_lozanoNew Issue
2019-08-21 12:31santi_lozanoAssigned To => Retail
2019-08-21 12:31santi_lozanoFile Added: Image 1.png
2019-08-21 12:31santi_lozanoResolution time => 1568152800
2019-08-21 12:31santi_lozanoTriggers an Emergency Pack => No
2019-08-21 12:32santi_lozanoFile Added: Image 2.png
2019-08-21 12:32santi_lozanoNote Added: 0114109
2019-08-21 12:40eugeniIssue Monitored: eugeni
2019-08-27 10:55ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-08-27 10:55ranjith_qualiantech_comStatusnew => scheduled
2019-08-29 08:00hgbotCheckin
2019-08-29 08:00hgbotNote Added: 0114310
2019-08-29 08:01hgbotCheckin
2019-08-29 08:01hgbotNote Added: 0114311
2019-08-29 08:01hgbotStatusscheduled => resolved
2019-08-29 08:01hgbotResolutionopen => fixed
2019-08-29 08:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ec6578f7635c019340e4d0680cf2a75de33ba57a [^]
2019-09-12 09:37marvintmReview Assigned To => marvintm
2019-09-12 09:37marvintmStatusresolved => closed
2019-09-12 09:37marvintmFixed in Version => RR19Q4

Notes
(0114109)
santi_lozano   
2019-08-21 12:32   
Note that the client that reported the problem could find in the search of POS the pack as a product but when clicking on it to add it to the ticket a message appeared (Image 2).
Moreover he is using a version 19Q1.1 and if possible a patch (.diff) for that version would be helpful
(0114310)
hgbot   
2019-08-29 08:00   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b4c64172ed316354b54157627b83d85c950792cc
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Aug 29 11:30:30 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b4c64172ed316354b54157627b83d85c950792cc [^]

Related to issue 41670 : Pack should be appeared in Product Search even Multipricelist is enabled

* PriceList should not be validated when adding pack to the receipt.
  It should be validated when adding products from the pack

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0114311)
hgbot   
2019-08-29 08:01   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: ec6578f7635c019340e4d0680cf2a75de33ba57a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Aug 29 11:30:24 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/ec6578f7635c019340e4d0680cf2a75de33ba57a [^]

Fixed issue 41670 : Pack should be appeared in Product Search even Multipricelist is enabled

* Modified Product query to list Pack in the Product Search if default PriceList is different from Customer Pricelist

---
M web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproductcharacteristic.js
---