Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026051Retail ModulesDiscounts and Promotionspublic2014-03-20 17:442014-05-16 11:32
VictorVillar 
malsasua 
urgentmajoralways
closedfixed 
5
RMP31.2 
RR14Q3RR14Q3 
marvintm
No
0026051: Not possible to book a purchase order under some circumstancies using 'Buy X pay Y of same product' promotion
Not possible to book a purchase order under some circumstancies using 'Buy X pay Y of same product' promotion
As group Admin role,
Go to Discounts and Promotions,
 create a new one: Buy X pay Y of same product
 Apply Next Discount/Promotion: No
 All excluding defined for all the filters except "Included Products" which is: Only those defined
 Starting date: 01-02-2014
 Ending DAte: 31-03-2015
 X units: 3
 Y units: blank (wrong configuration)
   Go to Products tab:
      Add Agua sin gas Product.
 
Go to Product window:
  put the Unit price= 5 for Tarifa Bebidas Alegres

Go to Purchase Order window,
  Crate a new one for Bebidas Alegres
    Lines tab:
        Agua sin Gas 1L, ordered qty = 100

Book it. An error appears: null value in column "priceactual" violates not-null constraint
The problem is that the X/Y Units were not filled by the user for the Promotion: "Buy X pay Y of same product"
No tags attached.
Issue History
2014-03-20 17:44VictorVillarNew Issue
2014-03-20 17:44VictorVillarAssigned To => marvintm
2014-03-20 17:44VictorVillarResolution time => 1397944800
2014-03-20 17:44VictorVillarTriggers an Emergency Pack => No
2014-03-20 17:44VictorVillarIssue Monitored: networkb
2014-03-20 17:54VictorVillarSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=5597#r5597
2014-03-20 17:54VictorVillarProposed Solution updated
2014-03-21 10:38malsasuaAssigned Tomarvintm => malsasua
2014-03-31 16:24jonalegriaesarteTarget VersionRR14Q2 => RR14Q3
2014-04-23 10:49malsasuaStatusnew => scheduled
2014-04-23 10:49malsasuafix_in_branch => pi
2014-04-23 10:50malsasuaNote Added: 0066551
2014-04-23 10:50malsasuaStatusscheduled => resolved
2014-04-23 10:50malsasuaFixed in Version => RR14Q3
2014-04-23 10:50malsasuaResolutionopen => fixed
2014-05-16 11:32marvintmReview Assigned To => marvintm
2014-05-16 11:32marvintmStatusresolved => closed

Notes
(0066551)
malsasua   
2014-04-23 10:50   
fixed by commit https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/1f8d64bb735a [^]