Hi,
I have 2 accounts bank one with VAT and other without VAT , and I want to know which file can I edit in order to add conditional when invoice paid
For exemple :
If (selected-bank-with-vat){
//default dolibarr bank
Add amount ttc with VAT in bank-with-vat
}
else{
add amout ht without VAT in bank-without-vat
}
I suppose your question is:
When invoice results in VAT to pay by customer, than force VAT-BANK account printed in invoice - and vice versa.
Am I right?
“Let me to explain again”
I have two bank accounts, the first one normal it receives payment ttc with VAT when the invoice is regulated and the second receives just payment of the invoice HT without vat. so I want to bank reconciliation HT without VAT on the second account
I think there is other idea how i can do that:
- get total amount in bank with vat : how can i do that?
- get total amount in bank without vat = get total amount in bank with vat/1.2
- Display total amount of bank in dashboard like that :
Total amount Bank HT : 00000,00 $
Total amount Bank TTC 11111,11$
I fix it thank you