Commit Graph
242 Commits
Author SHA1 Message Date
Sergi Almacellas Abellana a10c56e0b6 Clear move line party if account doesn't allow to have a party
issue4474
review10791002
2015-01-14 18:53:26 +01:00
Cédric Krier 34e193a181 Don't store generator if not used sequentially
The access to the dictionary value will be random as moves is not sorted, so
the generator could be consumed before really used.

issue4461
review14871002
2015-01-09 18:48:43 +01:00
Sergi Almacellas Abellana ff366400b2 Improve error message when deleting an account with related moves
issue4419
review14791002
2014-12-31 17:04:46 +01:00
Cédric Krier 36c1ff8e75 Add missing company domain/field
issue4311
review7691002
2014-12-03 16:13:08 +01:00
Cédric Krier 492ffa9f5a Fix most flake8 errors
review8771002
2014-12-02 12:54:29 +01:00
Robin Baumgartner 63bd7b99f3 Use Null constant from python-sql for comparisons
issue4143
review13701003
2014-11-24 13:58:35 +01:00
Cédric Krier 4599a5990f Allow to set a description to cancel move
issue4304
review6631002
2014-11-10 23:35:54 +01:00
Cédric Krier b1297ddaec Use dualmethod on ModelStorage.save
issue4197
review8671002
2014-11-01 11:53:42 +01:00
Cédric Krier 93d39c00eb Make party_required test works with None value
issue4297
review13681002
2014-10-31 10:52:52 +01:00
Cédric Krier 46e8b22da8 New API for on_change
issue4203
review8581002
2014-10-29 20:39:03 +01:00
Cédric Krier 970ea5342a Missing opening quote in reconciliation_different_parties error message
issue4245
2014-10-23 20:25:03 +02:00
Sergi Almacellas Abellana 9c1cd5eec3 Add missing move keyword to out of period error message
review6551002
issue4214
2014-09-26 16:02:00 +02:00
Cédric Krier 8780460795 Remove debugging information introduced in changeset 8550af7f7c64 2014-09-21 15:49:27 +02:00
Cédric Krier e8adeabed7 Re-enable Line._check_modify_exclude
_check_modify_exclude allow to reconcile posted lines.

issue3894
review11501002
2014-09-21 12:12:26 +02:00
Nicolas Évrard 245fe733dc Do not depend on the order of the lines in the reconciliation validation
issue4163
review8551002
2014-09-19 23:32:48 +02:00
Nicolas Évrard dad8dd2cef Make party mandatory / invisible according to account configuration
issue3731
review14341002
2014-09-19 18:44:53 +02:00
Nicolas Évrard 6a7e620dbe Better check for modification in case of reconciliation
issue3894
review14261002
2014-09-19 18:17:29 +02:00
Cédric Krier 078da3c99a Fix depends of ReconcileShow.lines 2014-09-19 18:04:30 +02:00
Cédric Krier f20f5cdfbb Add wizard to reconcile accounts
Currently, the "Open Reconcile Lines" can become very difficult to use when you
have a lot of different parties and/or a lot of account to reconcile.
Here is a new process which is based on a wizard that loops over all the couple
of account/party that potentially have lines to reconcile. It shows for each
couple a proposal of reconciliation that the user can accept or modify (with
write-off possibilities).
The proposal is found by testing all the combinations of lines up to 10 lines by
default (configurable). As such problem is NP-hard, I think we can afford to use
the brute force for small number and let the user solves higher number or
iterate on running the wizard. Any way, it is possible to implement other
strategy by module extention.

issue4185
review14511002
2014-09-19 16:24:48 +02:00
Nicolas Évrard 6018e82a36 Add rec_name to account.move.line
issue3862
review5251002
2014-09-19 14:24:46 +02:00
Nicolas Évrard 9e0f9816eb Group zero lines by party and account
issue4122
review14451002
2014-09-19 11:49:46 +02:00
Cédric Krier f134196b4b Make get_move_field more flexible
It is better to guess the transformation depending on the value and field type.
This allow to reuse this method for other fields.

issue4170
review6511002
2014-09-13 15:26:13 +02:00
Sergi Almacellas Abellana 013b43328a Use grouped_slice helper.
issue3516
review10301002
2014-07-17 18:56:39 +02:00
Cédric Krier 41ced35a80 Remove with_on_change from default_get
issue3923
2014-06-08 00:34:16 +02:00
Cédric Krier 2832754f46 Use instance class in Move.cancel instead of global class 2014-05-12 11:39:32 +02:00
Cédric Krier 0ef36b0ec8 Add cancel to Account Move
issue3875
review10261002
2014-05-09 23:32:17 +02:00
Cédric Krier bcbd15f682 Remove unused UnreconcileLinesStart Model
review8301002
2014-05-06 23:00:35 +02:00
Albert Cervera i Areny 68599b4314 Fix calculation of lines to be auto-reconciled on move post.
issue3759
review4331002
2014-03-17 07:55:45 +01:00
Cédric Krier 44f32c2deb Make amount_second_currency required if second_currency is filled
issue3712
review3781004
2014-03-07 19:29:33 +01:00
Cédric Krier c688210e9d Fix typo in Move.query_get: fiscalyear is on period, not move
issue3669
2014-02-11 18:02:27 +01:00
Nicolas Évrard 3cd53f1b84 Add move_description to move line
review2591002
issue3580
2014-02-03 18:12:16 +01:00
Jordi Esteve e6be1ca3f6 Use OR clause in all search_rec_name
issue3613
review2901003
2014-01-31 14:06:56 +01:00
Cédric Krier c5022e0bf5 Add with_on_change switch to default_get
issue3602
review2781002
2014-01-26 21:57:41 +01:00
Cédric Krier a73abc860f Use fields.depends decorator
issue3487
review2301002
2014-01-26 14:28:46 +01:00
Cédric Krier 495f2cb539 Improve write-off
- Use account of write-off journal as default
- Add write-off journal type

issue3538
review2101002
2013-12-20 13:59:46 +01:00
Cédric Krier e42c7d5508 Use a sequence of records, values in write
issue3499
review1641003
2013-12-19 14:44:33 +01:00
Cédric Krier 399b0ffce4 Add description on write-off move
issue3511
review1821002
2013-11-28 23:26:15 +01:00
Sergi Almacellas Abellana d6bfc36879 Fix move queries when filter by posted move
issue3493
review1661003
2013-11-14 13:34:36 +01:00
Cédric Krier c0a859ab2e Fix flake8 2013-10-05 12:16:23 +02:00
Cédric Krier 3f965b8f7b Improve general ledger
- Use sort from database
- Use groupby instead of dict

issue1399
issue1085
review987003
2013-09-17 10:49:25 +02:00
Cédric Krier 7d2e9e3e02 Add balance non-deferral wizard
review627002
2013-09-16 11:33:24 +02:00
Cédric Krier 51bd459220 Migration to python-sql
review1001002
2013-09-06 22:33:47 +02:00
Cédric Krier 0653a117d4 Display write-off amount in reconciliation
review1026002
2013-08-21 18:19:26 +02:00
Nicolas Évrard 6ecdf49a14 Reconcile all lines where debit == credit == 0
review927002
issue3208
2013-08-16 11:44:08 +02:00
Cédric Krier 7d2eb331e0 Order lines for reconciliation
By ordering lines on credit for receivable and debit for payable, we show the
lines to proceed first.

review952002
2013-07-22 14:51:43 +02:00
Cédric Krier fae7afbba6 Add missing migration to remove active field on move line
review975003
2013-07-22 13:15:45 +02:00
Cédric Krier 68cd73c75c Autoreconcile posted move with just one line of zero
issue3208
review867002
2013-06-06 20:32:12 +02:00
Albert Cervera i Areny d129b4298f Remove centralised from account.journal
review853002
issue3071
2013-05-21 19:09:37 +02:00
Marco Huymajer db88ee3e1d Add a "check_modify_exclude mechanism" to move lines
issue2768
review505004
2013-03-25 09:44:07 +01:00
Cédric Krier 6247563f1a Fix access to tax related fields
issue3164
review813002
2013-04-20 17:03:33 +02:00