In accountjournalentry, the coefficients are used to calculate the amount associated with each line and determine its sense (Debit/Credit).
In this way, the coefficients with a negative sense imply that the calculated amount must be credited. Conversely, the coefficients with no sense mean that the calculated amount must be debited.
The amount to be allocated corresponds to the amount entered in the parameter entry window, from the account journal lines. This amount can be positive or negative and it represents the Debit or Credit total of the journal (necessarily equal to the journal creation).
The sum of the positive coefficients on the one hand (debit) and the negative coefficients on the other hand (credit) is not necessarily identical, since the structure can be used to initialize an unmatched journal (that must be matched to be able to be posted).
The largest sum of coefficients with the same sense represents the coefficent basis weighting the amount calculation. Therefore:
Amount=(Amount to be allocated)x(Absolute value of the coefficient)/(Largest sum of coefficients)
E.g.: structure containing 3 account lines with the respective coefficients 2, 1 and -0.5.
The structure is applied to a journal with an Amount to be allocated equal to € 3.000.
Creation of 3 lines with the respective amounts of €2.000 (debit), €1.000 (debit) and €500 (credit)
(i.e. 3.000*2/3 and 3.000*1/3 and 3.000*0,5/3
with 3=sum of the debit coefficients that is higher than 0.5=sum of the credit coefficients)