Invoicing Legal entities (PJ)

Modified on Mon, 11 May at 10:40 AM

Invoicing Legal entities (PJ)


This option currently applies only for the Romanian legal entity nomenclature






To generate legal entity invoices automatically, the company VAT number must be collected when the order is placed. To do this, the Company name field must be enabled in checkout.




How to activate the VAT number in Shopify? 





2. Rename the “Company name” field in Shopify 


Go to Shopify - Online store - Click on ... - Edit default theme content - Company label





As a result on the checkout page there will be displayed the text you just renamed







xConnector settings



1. Go to xConnector - Preferences - Content helpers - activate Search for company details


This option enables the company details lookup based on the VAT number entered by the customer.



2. Go to xConnector - Preferences - Shipping & Invoicing - Address  invoice = Billing address

This option is available only for invoices generated via the BULK option or through full automation.



3. Go to xConnector -  Preferences -  Shipping & Invoicing -  Don't create invoice if company not found



If the application cannot find the company, no invoice will be created.You can check the orders without an issued invoice using the filter on the left side: Flag → Has no invoice



4. Go to xConnector - Preferences -  Shipping & Invoicing -  Show address selector


For individually generated invoices, you can choose whether to use the billing address or the shipping address directly from the invoice generation screen.




How to generate the invoice for legal entities?



A. Generate a shipping label and an invoice at the same time or BULK

B. Generate just the invoice

C. Generate BULK or fully automated invoice



A. Generate a shipping label and an invoice at the same 


  1. Click on the Shipping label generation option 
  2. Click Next to the Recipient tab
  3. Click on the magnifying glass icon so xConnector will retrieve the company's informations needed to issue the invoice

  4. Click Next and generate the documents

=> The shipping label is generated based on the shipping details.

=> The invoice is generated based on the company details.




B. Generate just the invoice

1. Click on the Invoice generation option 


2. Click Next to the Recipient tab


3. Click on the magnifying glass icon so xConnector will retrieve the company's informations needed to issue the invoice



4. Click Next and generate the document


=> The invoice is generated based on the company details.


C. Generate BULK or fully automated invoice


1. Select your orders 
2. Click on the Create documents or Create invoices

 




For invoices generated via the BULK option or full automation, you do not need to click the magnifying glass, as the data is retrieved automatically.
Follow the settings for BULK or fully automated invoice here



How to identify orders that require an invoice for a legal entity?



Whenever the Company field is filled in on the checkout page, this information is also saved in xConnector. This allows you to filter and identify all orders where this field was completed.

In xConnector, go to:

Orders → Filters → Flag → Company invoice


This filter will display only the orders where the Company field is filled in, meaning the orders that require an invoice for a legal entity.






Orders that have the “Company” field filled in can be also easily identified by the yellow document-shaped icon displayed on the order line.












3. Import into SPV - for Bucharest’s addresses, the Sector is mandatory. 



When importing into SPV, ANAF requires the sector for addresses in Bucharest, applicable to both individuals and legal entities. 

However, most customers place orders without specifying the sector. To address this issue, we have implemented a solution whereby xConnector automatically retrieves the sector from the postal code.

  • If the postal code is provided when placing the order, xConnector validates the address and extracts the sector from the postal code.
  • If the postal code is not provided at the time of order placement, using the address validation module, xConnector automatically fills in the postal code based on the entered address, and then extracts the sector from the postal code.

You can enable the Address Validation and Auto-Fill Zip Code module here:

  • xConnector > Profile > Preferences > Address validation > Validate address *
  • xConnector > Profile > Preferences > Address validation > Fill in missing zip code **


* This feature is included in the Basic and Advanced Subscription.

** This feature is included in the Advanced Subscription.



Updating Customer Addresses in the Billing Platform's Customer Directory



Why is this option necessary?


This option is essential when importing invoices into SPV for addresses in Bucharest, where the Sector is mandatory to include.


Why Update the Customer’s Address?


The customer's new address, which includes the Sector, must be updated in the customer directory of the billing platform. This update:

  • Ensures that the new address (including the Sector) is reflected on the invoices.

  • Replaces the existing address, which might not include the Sector.

  • Requires activating the Save Customer Data option to allow the billing platform's API to automatically retrieve the updated address (including the Sector).




How It Works

  • xConnector automatically retrieves the Sector based on the Postal Code for addresses in Bucharest and sends it to the billing platform to generate the invoice.

  • The Sector is not displayed in the interface but is sent directly via the API.

  • However, if the customer is already listed in the customer directory, the billing platform will use the existing address on the invoice instead of the updated address sent during invoice generation (which includes the Sector).

To ensure the customer’s new address (with the Sector) is correctly included on the invoice, you must update the customer data in the customer directory of the billing platform.

Updating the address ensures that:

  • The billing platform uses the new address instead of the existing one, which might lack the Sector.

  • The Save Customer Data option is activated so the platform's API can retrieve the updated address and not the outdated one stored in the database.





How to Enable the Save Customer Data Option?


xConnector > Profile > Connected services > Invoice service > Invoice preferences > Save customer 



  1. Open xConnector.

    • ProfileConnected Services → Select the connected invoice service.

  2. Go to Invoice Preferences.

  3. Enable the option:

    • Save customerSave customer to database [ON].

  4. Click Save to confirm the changes.

By activating this option, all updated customer data will be saved correctly in the database, and invoices will be issued with the updated address as required.




Example


Invoice issued on 10.01.2024 for:

  • Ion Popescu, Calea Victoriei 150, Bucharest, Bucharest

    In the billing platform's customer directory, the saved address is:

  • Ion Popescu, Calea Victoriei 150, Bucharest, Bucharest



Invoice issued on 10.01.2025 for:

  • Ion Popescu, Calea Victoriei 150, Bucharest, Sector 1
    In the billing platform's customer directory, the saved address will be:


-> If the Save Customer Data option is activated:

  • Ion Popescu, Calea Victoriei 150, Bucharest, Sector 1

-> If the Save Customer Data option is not activated:

  • Ion Popescu, Calea Victoriei 150, Bucharest, Bucharest



Invoice Reverting (Storno)



For situations where invoices have already been imported into SPV but, in the meantime, customers have returned the products, or if modifications to already imported invoices are necessary, the solution is to revert the invoices.



We would like to remind you that, through xConnector, it is possible to automatically cancel invoices when an order is canceled in Shopify. 


xConnector > Profile > Preferences > Automation > Revert invoice on cancel order


Thus, if a parcel is returned, the corresponding invoice can be automatically reverted without any additional manual intervention. 


See here the settings:

https://xconnector.freshdesk.com/support/solutions/articles/103000282361-rejected-parcels-cancel-the-order-and-the-invoice












This feature is available to Advanced plan





Contact


➡️ Need help with xConnector? We are just a message away:


Chat: click the blue chat icon (bottom-right)
E-mail: support@xconnector.app
Phone: +4 0373 747 991



➡️ Stay connected with xConnector:


Facebook group: https://www.facebook.com/groups/shopify.romania.xconnector
Facebook page: https://www.facebook.com/xConnectorApp
TikTok: https://www.tiktok.com/@xconnector.app
YouTube: https://www.youtube.com/@xconnector_app


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article