make explicit deposit in invoices work
This commit is contained in:
parent
85bdf28f91
commit
6f7c057a47
14 changed files with 242 additions and 84 deletions
|
|
@ -41,13 +41,14 @@ feature GroupOrderInvoice, js: true do
|
|||
oa.update_results!
|
||||
FoodsoftConfig[:contact][:tax_number] = 12_345_678
|
||||
order.update!(state: 'closed')
|
||||
go.reload
|
||||
order.reload
|
||||
visit finance_order_index_path
|
||||
expect(page).to have_selector(:link_or_button, I18n.t('activerecord.attributes.group_order_invoice.links.generate'))
|
||||
click_link_or_button I18n.t('activerecord.attributes.group_order_invoice.links.generate')
|
||||
expect(GroupOrderInvoice.all.count).to eq(1)
|
||||
end
|
||||
|
||||
|
||||
it 'generates multiple Group Order Invoice for order when order is closed if tax_number is set' do
|
||||
goa.update_quantities 2, 0
|
||||
oa.update_results!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue