Commit graph

9 commits

Author SHA1 Message Date
Karl Erik Õunapuu
90b5baa29d
Test reference_no parsing from transaction description 2020-09-10 17:30:39 +03:00
Alex Sherman
beb467484c Fix bank transaction tests, add test for non-valid refnumber in description 2020-09-08 16:20:55 +05:00
Alex Sherman
5c59119c2c Add non_cancelled scope to autobind invoices
See https://github.com/internetee/registry/issues/1496#issuecomment-579870465
2020-01-29 22:52:11 +05:00
Alex Sherman
19cd5ecd95 Add autobind fix if invoice with this sum is already present 2020-01-29 20:43:09 +05:00
Alex Sherman
effedcf585 Add autocheck by reference number in field or in description
(parsed by regexp, first 7-digit number)

See #1415
2019-12-19 16:13:46 +05:00
Artur Beljajev
62c38d1f99 Add balance auto reload
Closes #329
2019-06-14 16:30:34 +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
93a069648e Convert specs to tests 2018-11-26 16:33:57 +02:00
Artur Beljajev
a43a1ac3e3 Match bank transaction against invoice reference number instead of
registrar's
2018-11-26 16:33:57 +02:00