wip but maye finish plugin
This commit is contained in:
parent
4523d0b26e
commit
92b72fe786
18 changed files with 111 additions and 296 deletions
|
|
@ -0,0 +1,6 @@
|
|||
/ insert_after 'erb:contains(":contact_person")'
|
||||
- if FoodsoftAutomaticInvoices.enabled?
|
||||
%p
|
||||
= f.label :customer_number
|
||||
%br/
|
||||
= f.text_field :customer_number
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
/ insert_before 'erb:contains("order.stockit?")'
|
||||
- if FoodsoftAutomaticInvoices.enabled?
|
||||
- if FoodsoftConfig[:group_order_invoices]&.[](:separate_deposits)
|
||||
%th= t '.deposit'
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
/ insert_after 'erb:contains("number_to_currency(gross_price)")'
|
||||
- if FoodsoftAutomaticInvoices.enabled?
|
||||
- if FoodsoftConfig[:group_order_invoices]&.[](:separate_deposits)
|
||||
%td= number_to_currency(order_article.price.deposit)
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
/ insert_after 'erb:contains(".description2")'
|
||||
- if FoodsoftAutomaticInvoices.enabled?
|
||||
- if FoodsoftConfig[:group_order_invoices]&.[](:separate_deposits)
|
||||
= t '.description3', net_deposit: number_to_currency(@order.sum(:net_deposit)), deposit: number_to_currency(@order.sum(:deposit))
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
/ insert_after 'erb:contains(" group.contact_address")'
|
||||
- if FoodsoftAutomaticInvoices.enabled?
|
||||
%dt= heading_helper(Ordergroup, :customer_number) + ':'
|
||||
%dd=h group.customer_number
|
||||
Loading…
Add table
Add a link
Reference in a new issue