Hello,
I could see that you can add a new country under the invoice settings of the document definition by selecting the closest country and duplicating it and then in the list of countries, select the new country.
But this list of countries that show up after duplicating a country doesn't contain the name of the country I would like to add (Dominican Republic - Country code 'DO').
I edited the list of allowed values for the country code field to include the new country code, but when I add a record to the data set with the new country code, I get the error, "The 'DO' country code is not supported in Country Settings.
What can I do in this case?
Is exporting the settings, editing the xml and importing it back the only option?
Thanks!
Comments
3 comments
Hello,
You may add the country into the allowed list by redacting InvoiceSettings.xml file, that is stored in the <invoice project root folder>/Templates/<invoice document definition>_Attachments/InvoiceSettings.xml file. Just in case, before redacting please back up the original file.
Please duplicate one of <Country>...</Country> nodes, better the one that will have attributes
IsPredefined="true" IsEnabled="true"
Change the attributes' values Alpha2 and Name as follows:
Alpha2="DO" Name="Dominican Republic"
Then go to the Document Definition Editor and look if the Dominican Republic is shown in the list.
Then go to all fields' properties that check the country code (should be Vendor-Country and BU-Country) and add the "DO" value to the list of allowed values. please see the attached screenshot.
Let us know it the proposed approach helped.
How can this be done when the project was uploaded to a server? Where it is located?
You cannot get access to the InvoiceSettings.xml file as long as the project is uploaded to server.
To edit this file, you should export project from server (Project-> Export Project). Then you should make changes described above in the exported local copy of the project, and then update project on server (Project-> Update Project).
Please do not forget to make backup copies before editing project files.
Please sign in to leave a comment.