Rationale behind positive sign constraint in analytic move lines


I’ve noticed that it is possible to have regular account move lines with negative values but this is not the case on analytic move lines and this may give some insconsistent behaviour between both. The constraint is set at the database level.

I’m sure that there’s a good explanation for this behaviour but I can not guess it (or find it anywhere). Any clues on this?


The constraint exists in the revision 0, so it seems it was forgotten when the constraint was removed on account move line: modules/account: 47fc0ca456a4

Ok. I guess the restriction will be removed in the future and that it is safe to just check that debit * credit = 0.0


To be sure, you should propose the change.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.