Commit graph

52 commits

Author SHA1 Message Date
Karl Erik Õunapuu
d5662f42b8 Fully implemented prepayment Directo invoice forwarding, WIP on proformas 2020-02-18 17:03:31 +02:00
Alex Sherman
0cdc3451fd Add InvoiceDate field to Directo model
See #1416
2020-01-31 16:51:50 +05:00
Artur Beljajev
fa52001be6 Upgrade to Rails 5.0
Closes #377
2019-11-15 15:26:33 +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
1091fe7109 Change date format 2018-06-20 14:44:34 +03:00
Artur Beljajev
ccf1ea198c Do not send TotalVAT and VATCode params to Directo
Partly reverts 169c67839e
2018-06-15 08:42:32 +03:00
Maciej Szlosarczyk
49f894f852
Add extra logging to Directo request and responses 2018-05-14 11:03:42 +03:00
Artur Beljajev
169c67839e Add "VATCode" and "TotalVAT" fields to Directo
#623
2018-03-14 14:48:20 +02:00
Artur Beljajev
094c06bee7 Fix directo
#623
2018-03-14 12:58:49 +02:00
Artur Beljajev
b68fe6e312 Rename attributes
#623
2018-03-13 11:32:15 +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
7dee10c683 Rename invoices.var_prc to vat_rate
#623
2018-02-28 08:46:36 +02:00
Artur Beljajev
ff9372baea Rename registrar "directo_handle" to "accounting_customer_code"
#343
2017-10-25 18:33:11 +03:00
Artur Beljajev
e9b84212ea Fix Directo localization
#475
2017-06-16 14:20:11 +03:00
Artur Beljajev
b8a457277d Revert "Fix Directo localization"
This reverts commit 03af6d1fca.
2017-06-16 14:17:30 +03:00
Artur Beljajev
03af6d1fca Fix Directo localization
#475
2017-06-16 12:12:02 +03:00
Artur Beljajev
b1bf725e27 Fix directo
#475
2017-06-12 03:11:31 +03:00
Artur Beljajev
fd1f475925 Fix Directo monthly invoice generation
#475
2017-05-08 01:11:20 +03:00
Georg Kahest
145af2ac0f use invoice.order for directo/banklink 2016-08-31 15:55:04 +03:00
Vladimir Krylov
ebc8938b06 story#116954455 - fix directo min param 2016-04-06 12:07:36 +03:00
Vladimir Krylov
fa682e1780 story#116954455 - directo monthly invoices use billing date, not real 2016-04-05 16:53:18 +03:00
Vladimir Krylov
56f9cb325d story#116954455 - save Directo request 2016-04-05 16:15:59 +03:00
Vladimir Krylov
375e649009 story#116954455 - set parameter debug for Directo monthly invoices 2016-04-05 16:12:33 +03:00
Vladimir Krylov
c957bce553 Story#105855968 - change registrar parameter from exclude_in_monthly_directo to test_registrar be used more widely 2016-03-16 17:48:35 +02:00
Vladimir Krylov
a950e9e4a7 Story#105855968 - Directo payment term on directo monthly nvoice is also taken from directo_receipt_payment_term 2016-03-16 15:52:51 +02:00
Vladimir Krylov
57bf11517c Story#115405945 - better debug message on directo 2016-03-15 17:00:34 +02:00
Vladimir Krylov
6459e89705 Story#105855968 - counter is outside of namespace 2016-03-15 16:59:46 +02:00
Vladimir Krylov
519046064d Story#105855968 - Exclude registrars in directo monthly invoices 2016-03-11 11:23:11 +02:00
Vladimir Krylov
ef55560d0e Story#105855968 - send invoices to directo 2016-03-04 16:15:30 +02:00
Vladimir Krylov
b76fb8c9ff Merge remote-tracking branch 'origin/master' into story/105855968-directo 2016-03-04 14:34:40 +02:00
Vladimir Krylov
20c15e41b0 Story#105855968 - set directo min and max default settings 2016-03-04 14:17:04 +02:00
Vladimir Krylov
e954c212c7 Story#105855968 - Prepare xml for Directo 2016-03-03 15:52:42 +02:00
Vladimir Krylov
e21643bd72 Story#112043941 - calculate total in right place 2016-03-01 15:45:55 +02:00
Vladimir Krylov
55ffd229f9 Story#112043941 - show in cron STDOUT log that Directo task has been finished 2016-02-25 16:25:43 +02:00
Vladimir Krylov
e45915b9da Story#105855968 - 1st scratch how to send monthly invoices 2016-02-25 13:34:52 +02:00
Vladimir Krylov
e963484277 Story#105852786 - we should use when cancelled_at is nil 2016-02-15 12:33:01 +02:00
Vladimir Krylov
6a63feb5dd Story#112043941 - adding more logs to find out when invoices are not sent 2016-02-02 13:37:08 +02:00
Timo Võhmar
72478dbb43 Restored bank transaction sum check for Directo integration 2016-01-28 15:05:53 +02:00
Vladimir Krylov
762aff6bc0 Story#112043941 - Add syslog to directo 2016-01-25 11:19:23 +02:00
Vladimir Krylov
f86453fa0b Story#105852786 - skip cancelled invoices to be sent to directo 2016-01-20 13:49:44 +02:00
Vladimir Krylov
e99dbe9a18 Story#105852786 - each time invoice is being sent to Directo, record is saved to DB 2016-01-20 13:30:34 +02:00
Vladimir Krylov
d3295e349c Story#105852786 - Do not check for now bank transactions sum 2016-01-19 17:00:00 +02:00
Vladimir Krylov
66bdc5146b Story#105852786 - Do not send invoice to directo if sum is not matching with bank transaction 2016-01-19 15:36:50 +02:00
Vladimir Krylov
c3db50b5cd Story#105852786 - Invoice' bank transaction should have sum in order to mean that invoice payment finished 2016-01-19 15:27:17 +02:00
Vladimir Krylov
63fcbd9515 Story#105852786 - Invoice' bank transaction should have sum in order to mean that invoice payment finished 2016-01-19 15:17:33 +02:00
Vladimir Krylov
67fb02d7c4 Story#105852786 - Directo skip if bank_transaction is not set 2016-01-19 14:50:08 +02:00
Vladimir Krylov
72bd54dc7c Story#105852786 - Directo invoices are calculated based on invoices 2016-01-19 12:39:42 +02:00
Vladimir Krylov
bc640c63fe Story#105852786 - cleaner code 2016-01-19 09:38:46 +02:00
Vladimir Krylov
51c54f77c7 Story#105852786 - Directo transaction sum is taken from invoice 2016-01-18 21:29:16 +02:00