Commit graph

29 commits

Author SHA1 Message Date
Artur Beljajev
7fcab05e51 Clean up settings after tests 2019-10-09 15:55:27 +03:00
Artur Beljajev
6356ce0e9f Fall back on contact email if billing email is absent
Affects e-invoice and invoice delivery form.

Fixes #1255
2019-07-08 15:28:31 +03:00
Artur Beljajev
26fa15f76c Alias attribute 2019-07-08 15:28:31 +03:00
Artur Beljajev
9bb73b7cdd Validate registrar's billing email (#1253)
Previously it was being validated only if contact email changed (contact
and billing emails have nothing in common).
2019-07-08 13:45:45 +03:00
Artur Beljajev
bf5c1635c5 Add test 2019-07-04 16:56:22 +03:00
Artur Beljajev
86a69c09bf Issue e-invoice along with invoice
Closes #1222
2019-06-26 12:03:07 +03:00
Artur Beljajev
62c38d1f99 Add balance auto reload
Closes #329
2019-06-14 16:30:34 +03:00
Artur Beljajev
1c6c6cddcb Make registrar address zip and state optional
Closes #1206
2019-05-21 18:22:12 +03:00
Artur Beljajev
7723a30d1b Always require invoice VAT rate
Closes #1031
2019-05-17 19:04:33 +03:00
Artur Beljajev
04575295ee Make registrar address required
Closes #1190
2019-05-10 16:40:51 +03:00
Artur Beljajev
efb63399b2 Refactor registrars
- Reorganize views
- Improve database structure
- Use default translations
- Combine tests
2019-05-10 16:40:50 +03:00
Artur Beljajev
a97728c0f3 Refactor and improve invoices
- `runner 'Invoice.cancel_overdue_invoices'` in `schedule.rb` is
changed to `rake 'invoices:cancel_overdue'`.
- `invoices.payment_term` database column is removed and its value is
hardcoded in UI.
- `invoices.paid_at` is removed as unused
- `invoices.due_date` column's type is now `date`.
- `Invoice#invoice_items` renamed to `Invoice#items` and `Invoice`
interface to get a list of items is unified.
- Default date format in UI.
- Default translations are used.
- Tests improved.
- Specs converted to tests and removed along with factories.
- Database structure improved.
2019-03-14 15:39:24 +02:00
Artur Beljajev
5256129849 Improve readability 2018-11-30 16:43:12 +02:00
Artur Beljajev
e0681eff63 Add fixture 2018-11-30 16:42:50 +02:00
Artur Beljajev
5738c17731 Use Estonian reference number format instead of ISO 11649 2018-11-26 16:33:53 +02:00
Artur Beljajev
7ffc62e370 Merge branch 'master' into registry-623
# Conflicts:
#	test/integration/admin/registrars/show_registrar_test.rb
2018-04-12 17:16:58 +03:00
Artur Beljajev
f8eda810f9 Use setup/teardown blocks instead of methods 2018-04-04 01:42:59 +03:00
Artur Beljajev
837f326ef6 Merge branch 'master' into registry-623
# Conflicts:
#	app/controllers/admin/registrars_controller.rb
#	app/models/registrar.rb
#	app/views/admin/registrars/_billing.html.erb
#	app/views/admin/registrars/show.html.erb
#	config/locales/admin/registrars.en.yml
#	config/locales/en.yml
#	db/migrate/20180309053424_add_registrars_unique_constraints.rb
#	db/structure.sql
#	test/fixtures/registrars.yml
#	test/integration/admin/registrars/delete_test.rb
#	test/integration/admin/registrars/new_test.rb
#	test/models/registrar_test.rb
2018-03-29 12:13:59 +03:00
Artur Beljajev
0f6a47d73d Refactor registrars
#765
2018-03-26 07:00:54 +03:00
Artur Beljajev
4f51f6c736 Merge branch 'registry-765' into registry-623
# Conflicts:
#	app/models/registrar.rb
#	config/locales/en.yml
#	spec/models/registrar_spec.rb
#	test/models/registrar_test.rb
2018-03-09 09:30:05 +02:00
Artur Beljajev
a5869e0eca Refactor registrars
#765
2018-03-09 09:23:21 +02:00
Artur Beljajev
07d58d5b9a Convert spec to test
#623
2018-02-28 11:52:20 +02:00
Artur Beljajev
e4b730caf7 Fix invalid fixture
#623
2018-02-28 11:50:52 +02:00
Artur Beljajev
6a01226138 Update VAT
#623
2018-02-28 09:36:02 +02:00
Artur Beljajev
c47ca77ca6 Add registrar VAT rate
#623
2018-02-28 09:25:10 +02:00
Artur Beljajev
013122335d Update fixtures 2018-01-20 22:22:30 +02:00
Artur Beljajev
77b24fdbd1 Add registrar language
#640
2017-11-23 07:09:16 +02:00
Artur Beljajev
93b0037c39 Convert specs to tests 2017-11-22 04:35:06 +02:00
Artur Beljajev
59e1e18d32 Require registrar's accounting customer code
#343
2017-10-27 11:56:54 +03:00