mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Add tests to invoice
This commit is contained in:
parent
416842f924
commit
7eff257434
7 changed files with 119 additions and 26 deletions
|
@ -1,9 +1,12 @@
|
|||
Fabricator(:invoice) do
|
||||
invoice_type 'DEB'
|
||||
due_date { Time.zone.now.to_date + 1.day }
|
||||
payment_term { 'Prepayment' }
|
||||
buyer_name 'Registrar 1'
|
||||
currency { 'EUR' }
|
||||
description { 'Invoice no. 1' }
|
||||
description { 'Invoice no. 1' }
|
||||
domain
|
||||
due_date { Time.zone.now.to_date + 1.day }
|
||||
invoice_type 'DEB'
|
||||
seller_iban { '123' }
|
||||
seller_name { 'EIS' }
|
||||
seller_city { 'Tallinn' }
|
||||
seller_street { 'Paldiski mnt. 123' }
|
||||
invoice_items(count: 2)
|
||||
vat_prc 0.2
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue