Add two bills with Nature and Supplier that calculate PCC at issue and IRRF at posting.
1 Bill
SE2-> VALUE := 5,000.00
SE2-> IRRF := 75.00
Do not generate PCC because the minimum value was not reached. (MV_VL10925)
2 Bill
SE2-> VALUE := 4,535.00
SE2-> IRRF := 75.00
SE2->E2_PIS := 65.00
SE2->E2_CSLL := 100.00
SE2->E2_COFINS := 300.00
Settle bills of type Invoice. Bill values are added reaching the sum total of BRL 9,535.00 because PCC bills were generated at issue, their values being deducted. Generating a new bill, and bills 1 and 2 are posted.
Post the new bill generated.
3 Bill
SE2->E2_VALOR := 9,535.00
SE2-> IRRF := 143.02
Value Paid := 9,391.98
Note: The IRRF value is calculated based on the value of generated bill 9,535.00.