How to set default Bank account when create a invoice

Hi

When i create a invoice from an customer order , i want " Bank account " select the cash account by default .

The address will like below :
/compta/facture/card.php?action=create&token=0cb67db440440c131498e7ceb6bf0c67&origin=commande&originid=14078&socid=3281

For cash account , the id is 1 .

How do i set it as default on " Default values/filters/sorting " ?

Thanks for your help .

Hi,
perhaps i missunderstood your question, but as far as i see, you are almost there.

URL

compta/facture/card.php

Field

cond_reglement_id
fk_account

and for the value try your id`s

greetings
Jason.

Hi

I think it doesn’t work for Bank account ( id = fk_account) in dolibarr 19.0.4 .

Hi,
it works for me, with id1 i have EC-Card, can you explain why it is not working for you, what do you get with your configuration?

Hi

Below is my configuration .

And if you create a invoice directly , then bank account will show id1 .
But if you create a invoice from an order , then it doesn’t work .
It will show blank .

If it’s blank then it’s because the order has a blank field for bank account. Invoice just copies whatever is in the order.

the bank account is taken from the proposal but if the field there is empty. You can set a default in the invoice modul.