wip move automatic invoices to plugin

This commit is contained in:
viehlieb 2023-10-11 14:53:47 +02:00
parent 78bf494182
commit 4523d0b26e
35 changed files with 628 additions and 2045 deletions

View file

@ -1,3 +1,4 @@
/ insert_after 'erb:contains(":updated_by")'
%th= heading_helper GroupOrderInvoice, :name
%th
- if FoodsoftAutomaticInvoices.enabled?
%th= heading_helper GroupOrderInvoice, :name
%th

View file

@ -1,9 +1,10 @@
/ insert_after 'erb:contains("show_user(order.updated_by)")'
%td
- if order.closed?
-if FoodsoftConfig[:contact][:tax_number] && order.ordergroups.present?
= render :partial => 'group_order_invoices/links', locals:{order: order}
-else
= I18n.t('activerecord.attributes.group_order_invoice.tax_number_not_set')
- else
= t('orders.index.not_closed')
- if FoodsoftAutomaticInvoices.enabled?
%td
- if order.closed?
-if FoodsoftConfig[:contact][:tax_number] && order.ordergroups.present?
= render :partial => 'group_order_invoices/links', locals:{order: order}
-else
= I18n.t('activerecord.attributes.group_order_invoice.tax_number_not_set')
- else
= t('orders.index.not_closed')

View file

@ -0,0 +1,3 @@
/ replace_contents "section#results"
- if FoodsoftAutomaticInvoices.enabled?
= render :partial => 'finance/balancing/edit_results_by_articles_override'