Rational
Sometimes you need to delegate the purchase of goods, but the invoice need to be in the company name.
It can also be useful if the customer delegate someone (the customer accountant for example), to keep track who need to pay the invoice on behalf of the customer. this feature is from the discussion Invoice delegation
Proposal
Change the account_invoice
module and add a delegated_party
field.
The delegated_party
field, if populated when you post the invoice, will create an additional Move with two payable/receivable lines:
- The old line with a negative amount associated to the original party (and reconciled with the move associated with the invoice)
- A new payable/receivable line associated to the
delegated_party