Openbravo Issue Tracking System - Retail Modules
View Issue Details
0023145Retail ModulesDiscounts and Promotionspublic2013-02-21 19:272013-03-14 16:57
adrianromero 
migueldejuana 
normalmajorhave not tried
closedno change required 
5
RMP19.2 
RMP21 
adrianromero
No
0023145: Function OBDISC_XY_GIFT Does not compile in Oracle
The error that shows in the SQL Manager when trying to recompile this function is:

Error(95,31): PL/SQL: ORA-00904: "IL"."QTYORDERED": identificador no vĂ¡lido

And the sentence that returns the error is:

                 select floor(il.qtyordered / coalesce(op.em_obdisc_qty + op.em_obdisc_gifqty, 1))
             into v_gift_chunks
             from c_invoiceline il, m_offer_product op
            where il.c_invoice_id = v_docId
                and op.m_product_id = il.m_product_id
                                and op.m_offer_id = p_rule_id
                and op.em_obdisc_is_gift = 'Y';

In description
No tags attached.
related to defect 0023113 closed guilleaer PL OBDISC_XY_GIFT is referencing a column that does not exist 
Issue History
2013-02-21 19:27adrianromeroNew Issue
2013-02-21 19:27adrianromeroAssigned To => marvintm
2013-03-13 17:09migueldejuanaAssigned Tomarvintm => migueldejuana
2013-03-13 17:16migueldejuanaRelationship addedrelated to 0023113
2013-03-14 16:57migueldejuanaReview Assigned To => adrianromero
2013-03-14 16:57migueldejuanaNote Added: 0057261
2013-03-14 16:57migueldejuanaStatusnew => closed
2013-03-14 16:57migueldejuanaResolutionopen => no change required
2013-03-14 16:57migueldejuanaFixed in Version => RMP21

Notes
(0057261)
migueldejuana   
2013-03-14 16:57   
I tested the functionality which launch this function and it works well. Perhaps, it has been resolved with the fix of the related issue.