Receipt or invoice
Describes the current version of the app.
What it is
Section titled “What it is”For every order, Lynk decides whether the buyer asked for an invoice (a business buyer, B2B) or not (retail, B2C, for a receipt). Depending on the decision, it creates the order document in the wholesale or the retail series you set in Channel settings.
Lynk doesn’t issue the receipt or the invoice. It only decides which series and which customer the order document is created with. You or your accountant issue the final document in Softone.
Why it matters
Section titled “Why it matters”If an order that needs an invoice goes through as retail, the buyer doesn’t get the invoice they asked for, and the fix is manual work in Softone. It’s worth checking the rules with a few test orders in Demo.
How it works
Section titled “How it works”Skroutz and Shopflix
Section titled “Skroutz and Shopflix”When the buyer asks for an invoice on the marketplace, the order carries the invoice details (VAT number, company name). If there is a VAT number or a company name, the order goes for an invoice. No setup is needed.
Shopify
Section titled “Shopify”Shopify has no built-in invoice field. Lynk checks, in this order:
- A checkout field (note attribute) that you set in Trigger attribute key, and optionally its value in Trigger value.
- The order tag in Trigger tag. Unless you set another one, it is
needs:invoice. - The fields
invoice_vat_numberorinvoice_company, if they have a value.
If your checkout collects invoice details under other field names, set them under Invoice detail attribute keys (VAT number key, Company name key, ΔΟΥ key, Profession key). All of these are in the B2B Detection card of the Shopify settings for Softone.
The Use company name as B2B indicator option treats every order with a company name in the shipping address as an invoice.
OpenCart
Section titled “OpenCart”On the OpenCart page, under Receipt vs invoice rule, you choose a rule:
| Rule | When it goes for an invoice |
|---|---|
| Auto (infer from order data) | When the order has invoice details |
| Always receipt | Never |
| Always invoice | Always |
| By store ID | When the order comes from a store you listed in Invoice store IDs |
| By customer group | When the customer belongs to a group you listed in Invoice customer group IDs |
See OpenCart.
The VAT number and the customer in Softone
Section titled “The VAT number and the customer in Softone”For an order with an invoice:
- Lynk looks for a Softone customer with the same VAT number. If it finds one, it uses it.
- If it doesn’t, it creates a new customer from the order details. If you’ve set up the GSIS Web Service Credentials card, it first fills in the company name, address and tax office from the AADE registry. See Connecting Softone.
- If the AADE lookup fails, the document is still created with the order details, and you receive an email so you can check the customer.
- If the order has neither a VAT number nor a company name, Lynk uses the generic wholesale customer code, if you’ve set one. Otherwise sending fails and the order shows Push failed in the Order Log.
Later sends of the same order reuse the same customer, so no duplicate customers are created.
Example
Section titled “Example”Two Shopify orders, with retail series 7023 and wholesale series 7021:
| Order A | Order B | |
|---|---|---|
| Amount | €49.60 | €248.00 |
Tag needs:invoice |
No | Yes |
| VAT number on the order | No | Yes |
| Order document series | 7023 (retail) | 7021 (wholesale) |
| Customer in Softone | The retail customer | The company with that VAT number (existing or new) |
| Final document you issue | Receipt | Invoice |