Commit graph

5 commits

Author SHA1 Message Date
Karl Erik Õunapuu
b6469f3dfe Move payment method fetching logic to Model, rewrite tests for EveryPay component 2020-02-03 20:05:05 +02: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
7cc479c3fe Update fixtures
#623
2018-03-12 11:35:34 +02:00
Artur Beljajev
3a85147887 Revert fixtures from #509 2017-11-13 05:30:13 +02:00
Artur Beljajev
f36226ae1e Update fixtures 2017-11-12 00:55:50 +02:00