Class MWarehousePrice

    • Constructor Detail

      • MWarehousePrice

        public MWarehousePrice​(Properties ctx,
                               ResultSet rs,
                               String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
        trxName - transaction
    • Method Detail

      • find

        public static MWarehousePrice[] find​(Properties ctx,
                                             int M_PriceList_Version_ID,
                                             int M_Warehouse_ID,
                                             String Value,
                                             String Name,
                                             String UPC,
                                             String SKU,
                                             String trxName)
        Find Products in Warehouse with Price
        Parameters:
        ctx - context
        M_PriceList_Version_ID - mandatory price list
        M_Warehouse_ID - mandatory warehouse
        Value - optional value
        Name - optional name
        UPC - optional full match upc
        SKU - optional full match ski
        trxName - transaction
        Returns:
        array of product prices and warehouse availability
      • find

        public static MWarehousePrice[] find​(MBPartner bPartner,
                                             boolean IsSOTrx,
                                             Timestamp valid,
                                             int M_Warehouse_ID,
                                             String Value,
                                             String Name,
                                             String UPC,
                                             String SKU,
                                             String trxName)
        Find Products in Warehouse with Price for customer
        Parameters:
        bPartner - business partner
        IsSOTrx - if true SO
        valid - the date the price must be valid
        M_Warehouse_ID - mandatory warehouse
        Value - optional value
        Name - optional name
        UPC - optional upc
        SKU - optional ski
        trxName - transaction
        Returns:
        array of product prices and warehouse availability or null
      • get

        public static MWarehousePrice get​(MProduct product,
                                          int M_PriceList_Version_ID,
                                          int M_Warehouse_ID,
                                          String trxName)
        Get MWarehouse Price
        Parameters:
        product - product
        M_PriceList_Version_ID - plv
        M_Warehouse_ID - wh
        trxName - transaction
        Returns:
        warehouse price
      • isAvailable

        public boolean isAvailable()
        Is Product Available
        Returns:
        true if available qty > 0