Help for this page

Select Code to Download


  1. or download this
            $stock_current{$inventory_item->{'inventory_item_id'}} = $inve
    +ntory_item->{'starting_quant'};
            $stock_minimum{$inventory_item->{'inventory_item_id'}} = $inve
    +ntory_item->{'starting_quant'};
    
  2. or download this
            $stock_current{$stock_change_data_ref->{'inventory_item_id'}} 
    ++= $stock_change_data_ref->{'Qty_Change'};
            if ($stock_current{$stock_change_data_ref->{'inventory_item_id
    +'}} < $stock_minimum{$stock_change_data_ref->{'inventory_item_id'}}){
                $stock_minimum{$stock_change_data_ref->{'inventory_item_id
    +'}} = $stock_current{$stock_change_data_ref->{'inventory_item_id'}};
            }
    
  3. or download this
        foreach(@inventory_items_array){
            $_->{'rem_avail_quant'} = $stock_minimum{$_->{'inventory_item_
    +id'}};
            $_->{'available'} = $_->{'rem_avail_quant'} . '/' . $_->{'inv_
    +quant'};