Skip to main content

Refund Tourists Invoices

This wizard records the refund invoice that Tax Free Planet presents to you. The invoice lists the tourist invoices and the tax amount of each. The wizard reads the list from a JSON file, saves the refund invoice and its invoices in the file, generates an entry for its amount if you ask for it, and changes the status of the matching tourist invoices in the program. For the working steps see Refund tourists invoices.

Opening the wizard​

Systems > UAE Taxes > Tools > Refund Tourists Invoices....

The command appears when the Gulf tax system is active and the tax country is the UAE, and the tourist invoices integration is active in the file. This computer does not have to be a sending terminal. The permission in Users Management > Operations is Refund Tourists Invoices....

The window title is Refund Tourists Invoices, and each page has its own heading. The navigation buttons on every page:

ButtonWhat it does
NextChecks the page and goes to the next one. Disabled on the last page.
BackReturns to the previous page without a check, and the values of the pages are kept. Disabled on the first page.
CancelAsks "Are you sure you want to cancel the refund process", and Yes closes the wizard without saving anything.
StartOn the last page only. Starts the refund.

The pages in order: Setting Invoices File, then Refund Invoice Info, then Refund Entry Info, then Create Refund Process.

Setting Invoices File​

The page heading is Setting Invoices File, and its text is "Select invoices file (format is json)".

ItemDescriptionRequiredValues and rules
File PathThe JSON file with the refund invoices.YesRead only. The browse button next to it fills it. The button opens a file window for files with the json extension.
Excel to JSON ConvertorA button that opens in the browser a free website that converts an Excel file to JSON.NoA help only. You do not have to use this service and you can use any other program.

Under the button there are guidance lines: "There are different free tools to convert the Excel file to JSON format.", "Move invoices table in the invoice presented by Tax Free Planet to Excel file.", "You can use the tool to convert the Excel file of invoices table to JSON format." and "Hint: You can use any website, program or service other than this tool. it is only to help."

File format: a list of records. Each record has four fields with these English names:

Field in the fileMeaningHow the program reads it
Tax Free Tag IDThe transaction number (tag) as the company sent it.Must not be empty.
Issue dateThe issue date of the invoice.Read as a date.
Receipt Number(s)The invoice number in the service. It is the invoice ID shown on the tourist invoice page of the bill (32 characters).Must not be empty.
VAT amountThe recoverable tax amount.Rounded to two decimals and must be greater than zero.

The program silently skips a record that has no tag, no invoice number, or an amount of zero or less. An example of a file:

[
{ "Tax Free Tag ID": "TF-0001", "Issue date": "5-1-2026", "Receipt Number(s)": "3F2504E04F8911D39A0C0305E82C3301", "VAT amount": "500.00" },
{ "Tax Free Tag ID": "TF-0002", "Issue date": "7-1-2026", "Receipt Number(s)": "7C9E6679742540DE944BE07FC1F90AE7", "VAT amount": "450.25" }
]

When you click Next the program checks the file:

MessageWhy it appearsWhat to do
"Please set a file with json format, and make sure the file exists." under the title "Invalid selected file"The path is empty or the file does not exist.Choose the file.
"The selected file contains no meaningful info, please validate it." under the same titleThe file could not be read, it is not valid JSON, or no valid record is left.Review the content of the file and the names of its fields.

Refund Invoice Info​

The page heading is Refund Invoice Info, and its text is "Set the refund invoice info provided by Tax Free Planet and included in Excel file."

FieldDescriptionRequiredValues and rules
Refund Invoice NumberThe number of the refund invoice as in the Excel file that the company gives you, under the name TAX INVOICE.YesUp to 255 characters. Not repeated in an earlier refund invoice.
FromThe start of the period the invoice covers.YesA date field.
ToThe end of the period.YesNot before From.
Process DateThe issue date of the refund invoice.YesNot before From and not before To.
Maturity DateThe due date of the payment.YesNot before From, To or Process Date.
NotesA note.NoUp to 255 characters. It becomes the note of the entry if you generate it.
Refund AmountThe total of VAT amount of all the records of the file.CalculatedRead only.
Invoices CountThe number of records read from the file.CalculatedRead only.

First dates: the first time the page appears the program suggests the dates according to today's day of the month. Examples by today's date:

Day of the monthFromToProcess DateMaturity Date
1 to 13, such as 10-12-202615-11-202630-11-202630-11-202615-12-2026
14 to 26, such as 20-12-20261-12-202615-12-202615-12-202631-12-2026
27 and later, such as 28-12-202615-12-202631-12-202631-12-202615-1-2027

If you come back to the page with Back you see the values you entered.

When you click Next the program checks in this order and stops at the first error:

MessageWhy it appearsWhat to do
"Please enter the refund invoice number which set in Excel file under the name of "TAX INVOICE"" under the title "Invalid Refund Invoice number"The number is empty.Enter it from the Excel file.
"the Refund invoice number is repeated in previous invoice." under the same titleThe number is recorded in an earlier refund invoice.Make sure the invoice was not refunded before.
"The period end date of refund invoice must be greater than or equal to period start date." under the title "Invalid period end date"To is before From.Correct the two dates.
"Due Date must be greater than or equal to the period end date of refund invoice or transaction date." under the title "Invalid due date"The maturity date is before one of the three dates.Correct it.
"The process date must be greater than or equal to the invoice period end date." under the title "Invalid process date"The process date is before the start or the end of the period.Correct it.

Then the program compares the period with the latest saved refund invoice, the one with the latest end date. If there is one it asks a Yes/No question under the title "Refund invoice info error". The text is one of two messages, then the number of that invoice in brackets, then "Do you want to continue?". Yes continues and No keeps you on the page:

  • "There is an Refund invoice contains tourists bills with invalid periods of time." if the end date of the earlier invoice is after From.
  • "There is a time gap between last refund invoice and the current one." if its end date is on From or before it. This includes the case where your period starts the day after its end.

The question does not appear when there is no earlier refund invoice.

Refund Entry Info​

The page heading is Refund Entry Info, and its text is "Set entry information of refund invoice presented by Tax Free Planet."

FieldDescriptionRequiredValues and rules
Do not generate entry ( will be generated manually)Turns off the automatic entry.NoNot ticked the first time, so the entry is generated. If you tick it the next three fields are disabled and are not kept.
Entry FormThe entry form used to create the entry.Yes, to generateThe first item <Without> is not accepted. Only entry forms that use VAT, have a default account, and show the debit, customer, tax origin number and tax origin date columns are listed.
AccountThe account that is debited with the amount.Yes, to generateAccounts that have the use tax option only.
CustomerThe customer attached to the debit line.Yes, to generateCustomers whose VAT tax code is TR (tourism) only.

When you click Next and the box is not ticked, the program checks in this order:

MessageWhy it appearsWhat to do
"Must enable "Activate Multi-Customer Account System" option from Save options, also 'Entries Registry Date" in Taxation System should be activated." under the title "Unable to generate entry"The multi-customer accounts option in the save options is off, or there is no Entries Registry Date in Tax Settings. One message for both causes.Turn on what is missing, or tick the box that skips the entry.
"Must select Entry Type to be used to generate the entry of refund invoice." under the title "Invalid entry type"No form was chosen.Choose the form.
"Must select an account has "Use tax" option checked." under the title "Invalid account"No account was chosen.Choose an account.
"Must select a customer of TR (Tourist) type." under the title "Invalid customer"No customer was chosen.Choose a customer.

Create Refund Process​

The page heading is Create Refund Process, and its text is "Create refund process of tourists invoices". The page lists what will happen:

  1. "Store the refund invoice information of tourists invoices".
  2. "Generate the entry in case it is requested in the selected type."
  3. "Convert the invoices included in refund invoice to Refunded status."
  4. "Convert the invoices with Sent status and exceeded 90 days prior to period start date to "Excluded from Refund" status."
  5. "Process the invoices from previous year if exists."

The buttons are Start, Back and Cancel.

What Start does​

  1. It asks "Are you sure you want to start the refund of tourists invoices process". No stops the process. While it runs the three buttons are disabled.
  2. It checks the previous year files that are registered as data sources for the period before From. If one of them was not updated to the current program version, a question appears under the title "previous file error": "It seems that the previous file has not been upgraded to the current file version" with the file name and the database name, "Updating invoices status in previous year will be ignored if continue." and "Do you want to continue?". Yes continues without the previous files and No stops.
  3. The other steps run in one transaction with a progress box, and all of them are cancelled if one step fails:
    1. It saves the refund invoice: its serial number (the last number + 1), the dates, the refund invoice number, the note, the refund amount and the entry data.
    2. It saves its invoices: one line for each record of the file (the tag, the amount, the invoice number and the issue date). The number saved must equal the number of records in the file.
    3. It generates the entry unless you chose not to. The details follow this list.
    4. It updates the invoice statuses. The details follow this list.
  4. If a step fails, an error appears under the title "Generate Refund Invoice for Tourists Bills": "Error saving refund invoice info", "Error saving refund invoice details", "Error generating Refund Invoice entry" or "Error updating invoices status". All changes are cancelled and the buttons work again.
  5. On success a message titled "Operation successfully completed" lists what was done, the wizard closes, and the event "Generate Refund Invoice for Tourists Bills - invoice number" is recorded.

The generated entry: the program creates a voucher with the selected entry form. Its number is the highest number among the vouchers of this form in the branch of the matching bills, plus 1. The branch is the branch of the first matching bill, or no branch if there is none. The date of the voucher is the day you click Start, not Process Date. Its currency is the basic currency with rate 1. Its note is what you typed in Notes. If it is empty the note is the text "Tax Free Planet Invoice Tax" (in Arabic "سند قيد متولد عن فاتورة تسديد فواتير سائحين" when the program language is Arabic) followed by the refund invoice number. It is posted if the entry form posts automatically, and not posted otherwise. Its two lines:

LineAccountDebitCreditDetails
1The account chosen in AccountRefund Amount0The customer chosen in Customer. The tax line type is the tourism code TR. The tax origin date is From and the tax origin number is the refund invoice number.
2The default account of the entry form0Refund AmountNo customer.

Example: a file has three invoices with tax of 500.00, 450.25 and 300.25. Refund Amount = 500.00 + 450.25 + 300.25 = 1,250.50 and Invoices Count is 3. The entry debits the chosen account 1,250.50 with the chosen customer, and credits the default account of the form 1,250.50.

Updating the invoice statuses: the program matches the records of the file with the bills of the file:

  • Every bill whose tag saved at sending equals Tax Free Tag ID, or whose ID equals Receipt Number(s), becomes Refunded. Matching by tag skips a bill whose status is Returned or Refunded, but matching by bill ID changes every status other than Refunded, including Returned, and saves the tag in the bill. They are counted in the line "Refunded Invoices".
  • Every bill whose status is Submitted and whose date is older than the end of the period (To) by more than the number of days allowed for the refund becomes Excluded from Refund. The number comes from the file settings, and is 90 if none is saved. Example: To is 31-12-2026 and the days are 90, so the submitted bills dated before 2-10-2026 are excluded. They are counted in the line "Excluded-from-Refund Invoices". Note that the text of the page says "prior to period start date", but the calculation starts from the end of the period.
  • If previous year files are registered as data sources, their bills are processed the same way and their numbers appear in the lines "Refunded Invoices from Previous Year" and "Excluded-from-Refund Invoices from previous year". Only the lines with a number above zero are shown.

The program does not compare the amounts of the file with the recoverable amounts saved in the bills of the file, and it does not list the records of the file for which it found no bill.

Messages​

The messages of each page are in its section above. These are the messages of the run:

MessageWhy it appearsWhat to do
"Error saving refund invoice info"The refund invoice could not be saved.Try again. Nothing was saved.
"Error saving refund invoice details"Its invoices could not be saved, or their number differs from the records of the file.Try again. Nothing was saved.
"Error generating Refund Invoice entry"The entry could not be generated.Review the entry form and the account, and try again. Nothing was saved.
"Error updating invoices status"The statuses could not be updated.Try again. Nothing was saved.

This page applies to alameen ERP 10, version 10.1.79.764.