Commit graph

16 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
Vladimir Krylov
db6f78ede4 Story#112050051 - extend ransack to sort invoices by custom scopes 2016-02-08 10:36:22 +02:00
Vladimir Krylov
0ce6b84ddf Story#112050051 - fix invoice sorting in admin 2016-02-04 15:54:58 +02:00
Martin Lensment
9f42784d33 Show specific error on invoice generation in admin #2802 2015-07-31 16:30:38 +03:00
Martin Lensment
95a73327db Add configurable invoice due date #2775 2015-07-27 18:08:13 +03:00
Martin Lensment
1142b1dfc7 Manual invoice binding improvement #2733 2015-07-15 11:30:14 +03:00
Martin Lensment
2e7f5a74c5 Invoice forwarding in admin #2566 2015-07-14 13:43:55 +03:00
Martin Lensment
bfd3e07981 Add ability to download invoice in admin #2566 2015-07-14 13:28:48 +03:00
Martin Lensment
4e07941f0c Add bank statement create test #2733 2015-06-26 17:42:42 +03:00
Martin Lensment
935c547016 Issue invoices via admin #2566 2015-06-26 17:26:47 +03:00
Priit Tark
acab58b71c Update translation keys 2015-04-30 18:34:49 +03:00
Martin Lensment
1f2f483e34 Cancel invoices through admin 2015-04-27 15:56:39 +03:00
Martin Lensment
a26ce110b2 Invoice cancelling 2015-04-27 11:15:09 +03:00
Martin Lensment
1e47f3e41c Add invoice numbers 2015-04-23 17:49:22 +03:00
Martin Lensment
adf321bafa Add invoices views for admin 2015-04-16 15:34:28 +03:00