Commit graph

22 commits

Author SHA1 Message Date
Artur Beljajev
27ea790b28 Refactor invoice PDF generation, download and delivery
- Remove `Que::Mailer` (#895)
- Extract controllers
- Extract translations
- Convert HAML to ERB
- Add mailer preview
- Improve UI
- Remove unused routes
- Add tests
2019-04-11 13:04:42 +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
a651ac8cab Fix Rubocop warnings 2018-07-15 19:50:15 +03:00
Artur Beljajev
9684c8e59f Refactor Devise integration
- Use scoped users
- Use the named route helpers instead of hardcoded paths
2018-06-20 12:21:22 +03:00
Artur Beljajev
b68fe6e312 Rename attributes
#623
2018-03-13 11:32:15 +02:00
Artur Beljajev
92d8008c15 Introduce BaseController for registrar area 2017-04-06 19:05:14 +03:00
Martin Lensment
812daff1e5 Make date until inclusive in invoice search, registrar #2666 2015-07-29 11:59:35 +03:00
Martin Lensment
4e03a65e8d Invoice search blank fix #2665 2015-06-19 16:09:38 +03:00
Martin Lensment
b5167213d9 Add comma support to invoice search in registrar #2665 2015-06-18 17:01:58 +03:00
Priit Tark
d9ca931c97 Silence invoice pdf tests 2015-04-30 18:34:49 +03:00
Martin Lensment
23098add74 Invoice filtering in registrar 2015-04-28 12:14:20 +03:00
Martin Lensment
a26ce110b2 Invoice cancelling 2015-04-27 11:15:09 +03:00
Martin Lensment
12e32af524 Refactor email sending, tests 2015-04-23 10:59:45 +03:00
Martin Lensment
49be49ea63 Add invoice mailer 2015-04-22 12:56:14 +03:00
Martin Lensment
2bc55e423c Pdf naming 2015-04-22 10:07:59 +03:00
Martin Lensment
727d1226ad Basic pdf generating 2015-04-21 11:16:43 +03:00
Martin Lensment
32073ca862 Add account activity to registrar 2015-04-16 13:21:43 +03:00
Martin Lensment
416842f924 Add translations, fix bank links 2015-04-14 13:55:32 +03:00
Martin Lensment
d33d249e2d Add index view for invoices 2015-04-14 13:55:32 +03:00
Martin Lensment
56853817aa Basic invoice show 2015-04-14 13:55:32 +03:00
Martin Lensment
f532d231fa Fix rubocop 2015-03-23 16:53:42 +02:00
Martin Lensment
744f29c674 Refactor sessions 2015-03-20 16:39:32 +02:00