Payment term fixed amount should be in the same sign
When using a payment term with a fixed amount in a customer invoice the maturities are computed wrongly because the fixed line is entered on creadit instead of in debit.
This is because the payment_term does not copy the sign of the amount, when computing a fixed maturity, so if the amount entered is negative it always return a positive value for fixed lines.