Developed improvement in the Sales Representative Commission Calculation routine (FINA440) so that the value is proportional at the time of posting, considering the values of taxes, discount, fine, and installment interest. The configurations of the sales representative file and parameters define the values that make up the commission calculation.
Example of a bill generated by invoicing.
Parameters
...
Wiki Markup |
---|
*Important:*
When *N (No)* is entered, it is discounted from the base value. |
...
When pressing the *\[F12\]* key of the postings receivable routine, select *Yes* for the *Discount/Decreas. Commission?* |
...
Bill
...
value:
...
BRL
...
10,840.
...
20
ICMS IRF
...
PIS
...
COFINS
...
CSL
...
IPI
...
ICMS ST
Total tax value:
...
1,890.00
...
+
...
157.50
...
+
...
70.46
...
+
...
325.21
...
+
...
105.00
...
+
...
500.00
...
+
...
340.20
...
=
...
BRL
...
1,498.37
...
Discount:
...
BRL
...
100.00
...
Value
...
of
...
taxes
...
on
...
posting
...
after
...
the
...
discount.
IRF
...
PIS
...
COFINS
...
CSL
...
Value
...
of
...
the
...
Taxes
...
on posting:
...
BRL
...
157.50
...
+
...
BRL
...
67.10
...
+
...
BRL
...
309.75
...
+
...
BRL
...
100.00
...
=
...
BRL
...
634.
...
35
Value received
...
without
...
taxes:
...
BRL
...
10,105.
...
85
Total Received
...
Value
...
=
...
(Value
...
Received
...
+
...
Discount +
...
Taxes)
Total
...
Bill
...
Value
...
=
...
Sum
...
of
...
all
...
installments.
Commission
...
base
...
=
...
(Total
...
Bill
...
Value
...
-
...
Discount
...
-
...
Tax
...
that
...
was
...
discounted
...
from
...
the
...
base
...
according
...
to
...
the
...
Sales
...
Representative
...
File
...
and
...
Parameters)
...
...
Formula
Calculation of Proportionalized Commission Base = Total Received Value / Actual Bill Value * Commission Base
Calculation of the Proportionalized Commission Base =
Total Amount Received (BRL 10,105.85
...
+
...
BRL
...
100.00
...
+
...
BRL
...
634.35
...
=
...
BRL
...
10,840.20)
...
/
...
Total
...
Bill
...
Value
...
(BRL
...
10,840.20)
...
*
...
Commission
...
Base
...
(
...
BRL
...
10,840.20
...
-
...
BRL
...
100.00
...
-
...
BRL
...
840.20
...
=
...
BRL
...
9,900.00)
...
=
...
BRL
...
9,900.00
...
Taxes
...
discounted
...
from
...
the
...
base
...
+
...
Discounts
...
+
...
Commission
...
Base
...
Rebuild
...
base
...
for
...
analyzing
...
the
...
calculated
...
value
...
=
...
BRL
...
840.20
...
+
...
BRL
...
100.00
...
+ BRL
...
9,900.00 =
...
BRL
...
10,840.20
...
...
Notes:
...
The
...
ICMS
...
reduction
...
value
...
will
...
be
...
discounted
...
from
...
the
...
sales
...
representative
...
commission
...
base
...
if
...
it
...
is
...
within
...
the following rule: ICMS Calculation Base Reduction - MG - MP11 – 115292.