app/controllers/spree/admin/purchase_orders_controller.rb
#Below code is too invoke view that will ask for which products to add to PO
Below code is too invoke view that will ask for which products to add to PO
Below code is too invoke view that will ask for which products to add to PO
def add_individual_products
    @tpois = Spree::TempPo.where(po_id: params[:purchase_order_id])
    @purchase_order = Spree::PurchaseOrder.find(params[:purchase_order_id])  
  end
def add_individual_products @tpois = Spree :: TempPo . where ( po_id : params [ :purchase_order_id ] ) @purchase_order = Spree :: PurchaseOrder . find ( params [ :purchase_order_id ] ) end
Below code is too invoke view that will ask for which products to add to PO
Below code is too invoke view that will ask for which products to add to PO