Generate invoice "against" or "for" a sale order?

I am little confused about the words 'against' and 'for'. Please help me to select the correct statement from the two below:

  1. Generate invoice against a sale order.

  2. Generate invoice for a sale order.


Either one is technically correct. One definition of 'against' is 'compared or contrasted with'.

"Company X owes us money and has several open orders. Generate an invoice against a sale order. We will collect piecemeal."

There are several other definitions of 'against' that depending upon the context of the sentence would make sense too.

All that said, 'for' (along with the missing articles) is a more common phrasing in American English.

https://www.merriam-webster.com/dictionary/against


Personally (with 40 yrs accountancy experience) I would probably "raise an invoice against...". But then one doesn't usually do it against the order. If one is dealing with the sale of goods, the invoice wouldn't be raised until they were shipped, which could be anything from a short time to a very long time after receiving the order. However I see nothing wrong with raising an invoice either "for" a shipment, or "against" a shipment.

There is also nothing wrong with saying "generate" - it is just that I normally say "raise". In some offices (usually American), they "cut" invoices.

Every company will have its own system of doing this. But nowadays computerised documents of this kind are all linked in some way.