replace state

This commit is contained in:
Barnabé 2021-08-24 10:24:56 +02:00
parent 95b7829927
commit 399cc1deaa

View File

@ -8,7 +8,7 @@ class Admin::BuyListsController < ApplicationController
@p_customer_sheets = PCustomerSheet.all @p_customer_sheets = PCustomerSheet.all
@p_customer_sheets = @p_customer_sheets.where(:state => ["AV BPA", "PAS BPA", "BPA"]) @p_customer_sheets = @p_customer_sheets.where(:state => ["brouillon", "offre", "commande"])
@price_line_blocks = PriceLineBlock.where(:price_lineable_type => "PCustomerSheet", :price_lineable_id => @p_customer_sheets.ids) @price_line_blocks = PriceLineBlock.where(:price_lineable_type => "PCustomerSheet", :price_lineable_id => @p_customer_sheets.ids)