src-db/database/model/functions/M_CREATE_RESERVE_FROM_SOL.xml
changeset 18721 852757ccfb86
parent 18663 157c92ecd0e2
child 18726 19c8ae40a743
equal deleted inserted replaced
18720:63ba9898bc39 18721:852757ccfb86
    50 
    50 
    51   IF (v_issotrx = 'N') THEN
    51   IF (v_issotrx = 'N') THEN
    52     RAISE_APPLICATION_ERROR(-20000,'@cannotReservePurchaseOrder@');
    52     RAISE_APPLICATION_ERROR(-20000,'@cannotReservePurchaseOrder@');
    53   END IF;
    53   END IF;
    54   IF (v_qtyordered < 0) THEN
    54   IF (v_qtyordered < 0) THEN
    55     RAISE_APPLICATION_ERROR(-20000,'@cannotReservePurchaseOrder@');
    55     RAISE_APPLICATION_ERROR(-20000,'@cannotReserveNegativeOrders@');
    56   END IF;
    56   END IF;
    57   IF (v_qtyordered - v_qtydelivered <= 0) THEN
    57   IF (v_qtyordered - v_qtydelivered <= 0) THEN
    58     RAISE_APPLICATION_ERROR(-20000,'@cannotReserveDeliveredSalesOrderLine@');
    58     RAISE_APPLICATION_ERROR(-20000,'@cannotReserveDeliveredSalesOrderLine@');
    59   END IF;
    59   END IF;
    60 
    60