Commit graph

89 commits

Author SHA1 Message Date
dinsmol
788af6cc5f fixed codeclimate errors 2021-09-09 21:34:56 +03:00
dinsmol
e0c47cdb35 fixed codeclimate errors 2021-09-09 14:05:29 +03:00
dinsmol
e7e3278267 fixed codeclimate errors 2021-09-09 13:06:51 +03:00
dinsmol
f4e0084895 fixed codeclimate errors (partically) 2021-09-09 09:19:09 +03:00
dinsmol
5cb4085660 added filtering 2021-08-25 22:23:58 +03:00
Alex Sherman
fb810e5ccb Always send e-invoice if already paid 2021-05-31 13:25:52 +05:00
Alex Sherman
43b3033991 Fix namespaces for Zeitwerk class loader 2021-03-05 19:09:24 +05:00
Karl Erik Õunapuu
88b1b30be7
Fix EInvoiceGenerator initializer method 2020-09-15 16:12:03 +03:00
Karl Erik Õunapuu
b3fd31f679
Send invoice to Registrar's billing email after topup 2020-09-10 12:29:06 +03:00
Karl Erik Õunapuu
d62e55e6a1
Change Invoice::Item price scale to 3 places 2020-09-10 12:06:37 +03:00
Karl Erik Õunapuu
3decec8b02
Test valid invoice sums when created by bank transaction 2020-09-09 17:30:19 +03:00
Karl Erik Õunapuu
17188ec635
Send unpayable e-invoice when invoice has already been paid via wire transfer 2020-09-08 13:14:14 +03:00
Karl Erik Õunapuu
8cc24b828f
Submit VAT-exclusive sum to prepayment invoice
Prepayment invoices are subject to VAT, which is calculated from before-taxes sum
2020-09-08 11:53:37 +03:00
Karl Erik Õunapuu
5991ea6be7
Reduce complexity of autobindable?() conditional 2020-09-07 17:41:28 +03:00
Karl Erik Õunapuu
be960457e6
Process payments: Create new invoice by transaction to allow direct top ups 2020-09-07 16:58:27 +03:00
Timo Võhmar
8451aa7758
Merge pull request #1547 from internetee/509-directo-to-gem
Directo: Reference BL from gem
2020-03-25 11:08:48 +02:00
Karl Erik Õunapuu
3f92640ad2 Move registrar directo logic to concern, touch up translations 2020-03-02 17:38:03 +02:00
Karl Erik Õunapuu
6c328438e6 Reduce condition sizes for Directo job 2020-03-02 10:40:54 +02:00
Karl Erik Õunapuu
5d999f96c5 Merge remote-tracking branch 'origin/master' into 1422-record-payment-method-and-failed-payments 2020-02-27 12:40:41 +02:00
Karl Erik Õunapuu
5816ae1663 Fix Rubocop styling issues 2020-02-27 11:32:29 +02:00
Karl Erik Õunapuu
86889b6432 Merge remote-tracking branch 'origin/master' into 509-directo-to-gem 2020-02-27 11:05:42 +02:00
Karl Erik Õunapuu
d5662f42b8 Fully implemented prepayment Directo invoice forwarding, WIP on proformas 2020-02-18 17:03:31 +02:00
Alex Sherman
187ce318a2 Destroy e-invoice sending job if invoice sent, cancelled or paid 2020-02-17 19:34:59 +05:00
Karl Erik Õunapuu
53fbd2f50c Implement partial payment logging for EveryPay / Bank links 2020-01-30 17:24:07 +02:00
Artur Beljajev
fa52001be6 Upgrade to Rails 5.0
Closes #377
2019-11-15 15:26:33 +02:00
Artur Beljajev
18e6f511aa Add db constraint 2019-08-26 17:40:53 +03:00
Artur Beljajev
5a68035818 Remove unused db column 2019-08-11 22:50:34 +03:00
Artur Beljajev
62c38d1f99 Add balance auto reload
Closes #329
2019-06-14 16:30:34 +03:00
Artur Beljajev
7723a30d1b Always require invoice VAT rate
Closes #1031
2019-05-17 19:04:33 +03:00
Artur Beljajev
30ea880211 Change invoices.issue_date database column to NOT NULL
Closes #1008
2019-04-13 18:00:25 +03:00
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
169c67839e Add "VATCode" and "TotalVAT" fields to Directo
#623
2018-03-14 14:48:20 +02:00
Artur Beljajev
1107dc67b8 Simplify method
#623
2018-03-14 14:30:20 +02:00
Artur Beljajev
e1b0f3044e Fix invoice
#623
2018-03-14 12:19:44 +02:00
Artur Beljajev
9a4380fd96 Fix invoice total calculation
#623
2018-03-13 14:32:38 +02:00
Artur Beljajev
b68fe6e312 Rename attributes
#623
2018-03-13 11:32:15 +02:00
Artur Beljajev
a73a8a0b89 Fix VAT rate
#623
2018-03-13 09:02:08 +02:00
Artur Beljajev
7d72d9cb34 Fix vat rate
#623
2018-03-11 19:33:21 +02:00
Artur Beljajev
c129598d2b Improve VAT rate validation
#623
2018-03-10 16:51:11 +02:00
Artur Beljajev
7acd41595c Merge branch 'registry-772' into registry-623
# Conflicts:
#	app/models/invoice.rb
#	db/structure.sql
2018-03-10 16:48:47 +02:00
Artur Beljajev
efaac16cee Remove unused attribute
#772
2018-03-10 16:33:35 +02:00
Artur Beljajev
6a01226138 Update VAT
#623
2018-02-28 09:36:02 +02:00
Artur Beljajev
7dee10c683 Rename invoices.var_prc to vat_rate
#623
2018-02-28 08:46:36 +02:00
Georg Kahest
145af2ac0f use invoice.order for directo/banklink 2016-08-31 15:55:04 +03:00
Georg Kahest
52cf53343c fix invoice description 2016-08-31 14:40:41 +03:00
Vladimir Krylov
db6f78ede4 Story#112050051 - extend ransack to sort invoices by custom scopes 2016-02-08 10:36:22 +02:00
Vladimir Krylov
72bd54dc7c Story#105852786 - Directo invoices are calculated based on invoices 2016-01-19 12:39:42 +02:00
Stas
0c36b3045a 111055076-callback_added 2016-01-05 16:22:06 +02:00
Stas
074d59031c 110946256-logic_fix 2016-01-04 12:33:46 +02:00