From a9453ab5225a9c846f79d053c86972f860c0fdad Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 17 Sep 2021 00:22:01 +0200 Subject: [PATCH] Suite (le retour) --- app/views/admin/price_line_blocks/_form.html.haml | 3 ++- app/views/admin/price_lines/_form.html.haml | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/admin/price_line_blocks/_form.html.haml b/app/views/admin/price_line_blocks/_form.html.haml index 8494cba..f01c327 100644 --- a/app/views/admin/price_line_blocks/_form.html.haml +++ b/app/views/admin/price_line_blocks/_form.html.haml @@ -1,5 +1,6 @@ =f.inputs do - + :javascript + var p_product_refs_url = "#{admin_p_product_refs_path(:manager => true)}" -if !@p_customer_sheet or (@p_customer_sheet and @p_customer_sheet.state != "commande") diff --git a/app/views/admin/price_lines/_form.html.haml b/app/views/admin/price_lines/_form.html.haml index 48b670c..fab597d 100644 --- a/app/views/admin/price_lines/_form.html.haml +++ b/app/views/admin/price_lines/_form.html.haml @@ -27,8 +27,6 @@ - :javascript - var p_product_refs_url = "#{admin_p_product_refs_path(:manager => true)}" -form.object.forced_price = true if form.object.ct_u_price_ht