src-db/database/model/functions/M_GET_OFFER_PRICE.xml
changeset 5373 9ada1ee67481
parent 1605 8a0fe0193bef
child 6701 690d2af86089
equal deleted inserted replaced
5372:19ab8dddb601 5373:9ada1ee67481
    42       COALESCE(DISCOUNT, 0)
    42       COALESCE(DISCOUNT, 0)
    43     INTO  v_Fixed,
    43     INTO  v_Fixed,
    44       v_AddAmt,
    44       v_AddAmt,
    45       v_Discount
    45       v_Discount
    46     FROM M_OFFER
    46     FROM M_OFFER
    47     WHERE M_OFFER_ID = p_Offer_ID;
    47     WHERE M_OFFER_ID = p_Offer_ID
       
    48     AND ISACTIVE = 'Y';
    48     IF v_Fixed IS NOT NULL THEN
    49     IF v_Fixed IS NOT NULL THEN
    49       v_Price := v_Fixed;
    50       v_Price := v_Fixed;
    50     ELSE
    51     ELSE
    51       v_Price :=(p_PriceStd - v_AddAmt) *(1 - v_Discount/100) ;
    52       v_Price :=(p_PriceStd - v_AddAmt) *(1 - v_Discount/100) ;
    52     END IF;
    53     END IF;