Commit graph

64 commits

Author SHA1 Message Date
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
Stas
52d1f79df0 110245542-callback_for_vat_percent 2015-12-18 17:39:41 +02:00
Vladimir Krylov
fa7cf13bf4 Invoice forward saves email 2015-12-01 01:17:28 +02:00
Stas
2dddace1b8 Merge branch 'staging' of github.com:internetee/registry into staging
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2015-11-17 16:51:46 +02:00
Priit Tark
07f89f8ce5 Added additional rounding #2783 2015-08-13 15:45:38 +03:00
Priit Tark
6ca53f946a Validate contact and invoice emails when they change #2745 2015-08-06 13:21:15 +03:00
Martin Lensment
9f42784d33 Show specific error on invoice generation in admin #2802 2015-07-31 16:30:38 +03:00
Priit Tark
86e01597a8 Updated cron log #2792 2015-07-28 22:08:23 +03:00
Martin Lensment
194a551203 Improve unbinded invoice scope #2539 2015-07-14 16:15:25 +03:00
Martin Lensment
8f51d8a867 Fix cron logging #2539 2015-07-14 14:21:56 +03:00
Martin Lensment
935c547016 Issue invoices via admin #2566 2015-06-26 17:26:47 +03:00
Martin Lensment
a6cc53a0bf Invoice numbers should be ints #2690 2015-06-26 12:50:32 +03:00
Martin Lensment
7a26b77606 Automatic invoice cancelling #2539 2015-06-26 11:36:41 +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
c7e02373fa Log cronjob 2015-04-27 15:41:17 +03:00
Martin Lensment
6070c31ed6 Overdue invoice cancelling 2015-04-27 15:14:58 +03:00
Martin Lensment
b6fd215d29 Fix test 2015-04-27 12:08:35 +03:00
Martin Lensment
41c2e2d5e4 Check if invoice is already cancelled before cancelling 2015-04-27 11:23:55 +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
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
5e3fcecbd3 Fix tests 2015-04-21 15:14:27 +03:00
Martin Lensment
727d1226ad Basic pdf generating 2015-04-21 11:16:43 +03:00