Hello everyone,
Iβm currently working on implementing an invoicing logic in Dolibarr based on Moroccan tax rules for services (Honoraires). I need to apply the following:
A 10% RAS (withholding tax) deducted from the HT (before tax)
A 75% retention of the VAT (TVA 20%) by the client
The final amount the client pays should be 95 MAD for a base HT of 100 MAD +
20% VAT
β Invoice Details β
Base Price (HT): 100.00 MAD
VAT 20%: 20.00 MAD
Total (TTC): 120.00 MAD
β Deductions β
β RAS 10% (on HT): β10.00 MAD
β 75% VAT Retention: β15.00 MAD
β Final Amount Due β
Net Amount to Pay: 95.00 MAD
I would like to ask:
- How is HT, total HT, and TTC calculated internally in Dolibarr?
- Whatβs the best way to implement this logic automatically in the system?
- Is it possible to add these deductions in the invoice or the PDF model?
- Any suggestion to handle this properly through custom PDF templates or modules?
@ ksar
Thank you for any support!