Commit Graph
17 Commits
Author SHA1 Message Date
Cédric Krier 06270e6a7a Use decimal 0 without digits as default value
If the digits of the field is 0, than using '0.0' trigger the validation error
introduced by 2be02f249a1d.

Closes #13197
2024-04-30 19:15:44 +02:00
Sergi Almacellas Abellana f1fac7036e Reset amount to pay with Decimal
Otherwise amount to pay can not copy sign from line.

Closes #13023
2024-02-12 23:45:14 +01:00
Cédric Krier 7981f19cc8 Support second currency on statement line
Closes #12673
2023-10-30 17:37:54 +01:00
Cédric Krier 94a51aaa64 Invert sign of amount in second currency to reconcile statement line with invoice
When using the company currency, the amount used is credit - debit which is in
the opposite sign of amount in second currency.

Closes #12688
2023-10-30 17:44:35 +01:00
Cédric Krier 88dc4b90dd Prevent to delete lines and origins of statements not cancelled or in draft
Closes #12678
2023-10-28 14:31:35 +02:00
Cédric Krier 35cff3c11c Update statement lines amount from invoice when changing origins
2b9a72775e4c made the change for on_change_lines but forgot to also update
on_change_origins.

Closes #12672
2023-10-26 17:58:18 +02:00
Cédric Krier c34add03ad Do not copy account statement descriptions to moves nor lines
Since 73fda56fc994 the description of the origin is used as fallback.

Closes #12615
2023-10-05 12:55:43 +02:00
Cédric Krier 69c88b6a8a Do not apply unaccent when searching on number fields
Closes #12435
2023-08-03 15:54:33 +02:00
Cédric Krier ad0b2411c8 Order number fields first by length
This is more natural for incremental field.
2023-08-03 15:53:18 +02:00
Adrià Tarroja Caubet 960c220329 Remove migrations previous to 5.0
Closes #11324
2023-01-19 11:25:25 +01:00
Cédric Krier 51b7fe72f8 Support invoice payment with currency exchange
Closes #11500
2023-02-16 18:59:06 +01:00
Cédric Krier b9c4b8230d Return instance in on_change_with methods 2023-03-26 09:49:00 +02:00
Cédric Krier 4e26c991c7 Do not remove related_to from statement line when changing the amount
Closes #12176
2023-04-01 14:17:25 +02:00
Cédric Krier 1b6644a9a5 Split line also when amount to pay of invoice is zero
Closes #7707
2023-02-21 13:53:43 +01:00
Cédric Krier d62a64e186 Allow statement line with amount of zero 2023-02-21 12:37:07 +01:00
Cédric Krier 45bbfa8fb5 Add cache to account period find and return instance
Closes #7705
2023-02-10 23:36:18 +01:00
Cédric Krier b24fbc0046 Prepare migration to monorepo 2022-12-16 20:08:38 +01:00