An invoice records what the vendor claims you owe. Compare its quantity and price with the order and receipt evidence. An order can be partly received and partly invoiced, so the outstanding order quantity and the unbilled received quantity answer different questions.
Post only supported quantities. In this standard-cost model, the invoice clears the received-not-invoiced account and credits Accounts Payable; a difference between purchase price and item standard cost goes to the disclosed variance expense account. Real tenants can use other costing and expected-cost configurations. An external invoice reference helps identify duplicates, but a plausible reference doesn't prove the goods arrived. Payment remains a separate application against the posted invoice.