wip plugin

This commit is contained in:
viehlieb 2023-02-17 13:16:03 +01:00
parent 78da4feafe
commit f9229034de
13 changed files with 100 additions and 0 deletions

View file

@ -0,0 +1,6 @@
/ replace 'erb:contains("send_result_to_supplier")'
- if FoodsoftBnnUpload.enabled?
- raise
= link_to t('.send_to_supplier'), send_result_to_supplier_modal_order_path(@order), remote: true,
class: "btn#{' btn-primary' unless @order.last_sent_mail}",
data: {confirm: @order.last_sent_mail && t('.confirm_send_to_supplier', when: format_time(@order.last_sent_mail)) }