Skip to main content

Tourists Invoices Return

You use this window to return a sales invoice to a tourist that was already sent to the integration service. When the integration is active the program refuses to add, edit or delete a sales return for a tourist customer from the bill window, and asks you to use this window. The window reads the original invoice, creates a full return bill with the same items, and asks the Planet program to cancel the invoice. To set up the integration see Tourist invoices integration setup.

Opening the window​

Invoices > Working Tools > Tourists Invoices Return....

The command appears when the Gulf tax system is active and the tax country is the UAE, the tourist invoices integration is active in the file, and this computer is set up as a terminal that sends invoices (see Tourist invoices integration setup). The permission in Users Management > Operations is Tourists Invoices Return....

Bill Origin​

FieldDescriptionRequiredValues and rules
FormThe form of the original sales bill.YesNormal sales forms that generate an entry, are not price offers, and on which you have the permission to enter, browse or browse posted bills. The Latin name shows if the program language is not Arabic and the form has one.
NumberThe number of the original bill.YesA number greater than zero.
ButtonWhat it does
Read...Clears the data of the window, searches for the bill by form and number, checks that it can be returned, and shows its data. If this succeeds Generate Return is enabled.

A bill can be returned only if its status is Submitted, its customer is marked as a tourist with the VAT tax code SR, and it has no earlier return. Otherwise the message "Unable to return the invoice, either due to invoice status, the customer is not a tourist, or the invoice is already returned." appears under the title "Bill cannot be refunded".

Return data​

FieldDescriptionRequiredValues and rules
Return Invoice FormThe form of the return that is created.YesNormal sales return forms that generate an entry, are not price offers, and on which you have a permission. The first one is selected.
Payment ModeHow the return is settled.YesCash or On Credit. The program picks the mode of the original bill, and any mode other than cash and credit is read as On Credit.
DateThe date of the return.NoDisabled, and always today's date.
NotesThe note of the return.NoAfter reading, the program fills it with the text "Refund generated from a tourist invoice" followed by the form name and the number of the original bill. You can edit it.

If you change Payment Mode from the mode of the original bill, the Client Account of the return changes: On Credit means the customer's account from the card, and Cash means the default cash account of the return form.

Invoice Info​

The Invoice Info group shows the data of the original invoice for reading only, and it moves to the return:

FieldDescription
ClientThe customer of the invoice.
CurrencyThe currency of the invoice.
DateThe date of the original invoice.
SalesmanThe salesman.
ParityThe exchange rate of the currency.
PayThe payment mode of the original invoice.
DistributorThe distributor.
WarehouseThe warehouse.
Client AccountThe customer's account in the invoice.
Cost CenterThe cost center.
BranchThe branch.
NotesThe note of the original invoice.

Buttons​

ButtonWhat it does
Generate ReturnCreates the return bill and cancels the original invoice in the service. Disabled until you read a bill.
CancelCloses the window. If the warning on cancel is on and you changed something, the program first asks whether to ignore it.

What Generate Return does​

A progress box appears with the texts "Preparing invoice" and "Validating invoice", and these steps run in this order:

  1. The program checks the network connection. If it is not available the message "Connection error, please contact Technical Support" appears under the title "Failed to prompt service".
  2. It reads the state of the invoice. It must be Submitted and have a transaction number, otherwise the message "Bill cannot be refunded" appears.
  3. It checks that this computer is set up for sending, otherwise the message "Te current terminal is not prepared to refund" appears. Then it checks the terminal settings (the basic currency, the terminal code, the activity code, the print template and the exchange folder with Planet). If something is wrong a message titled "Error in settings of tourists invoices integration" appears.
  4. It checks that a Return Invoice Form is selected, otherwise "Invalid return invoice type".
  5. It checks that the date of the return (today) is not before the date of the sales bill and not after today, otherwise "Invalid date of return bill".
  6. It asks the Planet program about the invoice. It writes a request in the exchange folder and waits up to thirty seconds for the answer. If no answer arrives the message "Returning invoice failed." appears with "Please make sure the Planet program is running and check internet connection." If the answer is a refusal, the message is "The invoice not found in Tax-Free Planet server." or "The invoice cannot be returned by Tax-Free Planet company." or the text of the service itself, under the title "Bill cannot be refunded".
  7. It saves all of the following in one transaction that is cancelled in full at the first failure:
    • The return bill with the selected form, with the same items as the original bill, today's date, the return note and the selected payment mode. The program gives it a new number.
    • If the return form posts automatically the bill is posted, and if it generates the entry automatically the entry is generated. The entry is the entry of the return form itself, and this button adds nothing else.
    • If the date of the original bill is before the start of the current tax period of the return, the items of the return get the tax code OA (adjustments), and the program keeps the original code of each item.
    • A relation between the original bill and the return.
    • The status of the original bill becomes Returned.
  8. The program asks Planet to cancel the invoice (the text "Requesting invoice cancellation from website" appears) and waits up to thirty seconds. If the cancellation is not confirmed the program cancels everything it saved in the previous step, and a message appears, titled "Returning invoice failed." or "Bill cannot be refunded", with a text like the one in step 6.
  9. On success the program records in the log of the original bill the action "Convert invoice status to Returned", the message "Operation successfully completed" appears, and the new return bill opens in its window.

After you click Generate Return the window clears the number and the data, even if the operation failed. Read the bill again to try once more.

note

If step 8 fails no return stays in the program. Check the state of the invoice in the Planet program before you try again.

Messages​

MessageWhy it appearsWhat to do
"Please select Origin Bill number"You clicked Read... with no form.Choose the form.
"Bill number missing."The number is empty.Enter the number.
"Invalid bill number"The number is zero or negative.Enter a valid number.
"Can't find a bill with the specified number and type."There is no bill with that number in the form.Check the form and the number.
"Unable to return the invoice, either due to invoice status, the customer is not a tourist, or the invoice is already returned."The invoice is not submitted, the customer is not a tourist, or the invoice has a return.Open the invoice and review its tourist invoice page.
"Te current terminal is not prepared to refund", with the text: The option"Set up terminal to send invoices" must be enabled from " Settings of tourists invoices integration" to be able to return invoices.This computer is not set up for sending.Set up the terminal in the settings.
"Returning invoice failed."No answer from Planet during the wait.Start Planet and check the internet, then read the bill and try again.
"The invoice not found in Tax-Free Planet server."The service does not know the invoice.Check the transaction number of the invoice.
"The invoice cannot be returned by Tax-Free Planet company."The service refuses the return.Contact the company.

This page applies to alameen ERP 10, version 10.1.79.764.