It should be able to use receipt number from POS as invoice number during statement posting in D365 for identified customer.

Reason: Some EU countries have additional regulations for invoice printout in stores, for example VAT control report. If a company customer comes to the store, he needs to:
1) Receive an invoice as a fiscal document instead of simplified POS receipt (under some conditions, for example amount > 10.000CZK and customer registered for VAT)
2) The number on the document must match the number of invoice in system, because it is part of VAT reporting and the government must be able to cross-check the invoices (what customer A reports as an issued invoice to customer B must be found by customer B as received invoice from customer A).

Ideal solution would include additional setups, like limit from which the invoice is mandatory and if it applies to company customers only or to all customers.