Field help (GDACOE) 

Specify here the weighting coefficient assigned to this structure line.

The coefficient calculation and application method varies depending whether or not the structure is called from the journal entry or the BP invoice entry.

In BPinvoiceentry, the coefficients are used to calculate the amount associated with each line as follows:
Amount=(Amount to be allocated)x(Coefficient)/(Sum of the coefficients)
With Amount to be allocated=Tax excl. amount entered in the invoice header.
The coefficient can be null. In that case, the amounts on the lines are not calculated.
It can be a negative coefficient. In that case, it is taken into account like any other coefficient.
E.g.: structure containing 3 account lines with the respective coefficients 2, 1 and -0.5.
The structure is applied to a BP invoice of € 3.000, tax excl.
Creation of 3 lines with the respective amounts of €2.400, €1.200 and €-600
(i.e. 3.000*2/2.5, 3.000*1/2.5 and 3.000*(-0.5)/2.5)

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)