Skip to main content

Bulk tax modification tools

The GCC tax system has three tools that change tax data in many cards at once: Modify Materials Tax, Modify Customers Tax and Modify Bills Tax. The first two write the tax code in material and customer cards. The third recalculates the tax of earlier bills and generates their entries again. No tool can be undone, so take a backup first. For the practical steps see Change the tax of many materials at once, Change the tax of many customers at once and Change the taxes of many bills at once.

Opening the windows​

The three commands are on the main ribbon: Systems > the taxes group > Tools. The group is named UAE Taxes when the country chosen when the tax system was activated is the UAE, and KSA Taxes otherwise. The commands appear when your licence includes the GCC tax system and the tax system is activated in the file. Each tool needs its own permission in Users Management > Operations, with the name of the tool: Modify Materials Tax, Modify Customers Tax and Modify Bills Tax. The Tools menu also holds other GCC tax commands, such as tax settings.

When you choose any of the three commands, the program first checks the tax settings. If something is missing, a message titled "An error found in tax settings" shows the cause and the window does not open. The possible causes:

MessageMeaning
Tax code is not setA tax type in use has no tax number. The abbreviation of the type follows.
Please set the default accountsFor VAT or excise tax, the net tax account or the tax accounts are missing.
No tax types activated in the fileNo tax type is in use.
No tax periods foundNo tax period is defined.
Please set accounts for the tax locationsA tax location has no tax account or no return account.
Please set the default tax location in: tax Settings - Company InfoUAE only: the company has no default location.

Fix these in tax settings. The bills tool has one more check, described in Modify Bills Tax.

What the tools share​

  • No undo. No tool keeps the old values or offers an undo. The only way back is to restore a backup.
  • Backup. Before the materials tool or the customers tool writes anything, a small window asks whether to create a backup on the hard disk, as in the backup question window. If you choose No or close it, the tool continues without a backup. If the backup fails, the error text shows. The tool then stops when the option Force backups in management tools in tax system is on, and continues when it is off. The option is on by default. You find it in Program Options under GCC taxes. The bills tool does not show this window.
  • No confirmation question in the materials and customers tools. Writing starts as soon as you click Ok. The bills tool asks before it runs.
  • The window stays open after the run, so you can change a setting and run the tool again.
  • Operations log. If Activate log file is on in Program Options, the program records one line per run of the materials or customers tool, with the name of the tool. It also records a line for each material or customer it touched, with the text "Update Material Tax" or "Update Customer Tax" and the name. The bills tool records a line for each bill it changed, with the text "Update Bill Tax", the form abbreviation and the number. It does so whatever the option says.

Modify Materials Tax​

The tool writes the tax code and rate in the material cards you select, or adds the tax to cards that have none. The window is the same in all countries, with some items that appear only under the conditions the tables give.

Selecting materials​

FieldDescriptionRequiredValues and rules
MaterialOne material card.NoA lookup box (Lookup and search) that accepts normal and composite materials. If you pick a material, the tool also takes the materials that branch from it (segment combinations). Group is disabled while this field is not empty.
GroupA group of materials.NoThe tool takes the materials of the group and of its sub-groups. For a collective group it takes its materials. Material is disabled while this field is not empty.
Materials TermsA saved condition that narrows the selection.NoThe list, its grid and its five buttons work as in Materials terms. The conditions combine with the material or the group: the tool takes the materials that meet both. The tool works on service and stock materials together, and on materials that have segment combinations.

If you leave the three fields empty, the tool takes every material in the file. The program does not ask a question before that.

What the tool does​

OptionWhat it takes from the selected materialsWhat the program writes
Insert and Modify (the default)All selected materials.The work of the next two options together.
Modify OnlyMaterials that have a tax row of the chosen Tax Type in their card.With Modify Tax Code selected: writes the new code and rate in the row. Without it: touches only the rows whose current code is the chosen Tax Code, and changes in them only the profit-margin flag (see below). The code and rate stay.
Insert Only ( cards that do not have this tax type )Materials that have no row of this type.Adds a row with the chosen code and rate. Does not touch an existing row. Modify Tax Code is disabled and cleared.
Modify "Recoverable Tax" option - For touristsMaterials whose VAT code is SR.Writes the Tax refund is eligible to tourist setting in the card. Appears only with the UAE tourist system. See Conditional items.

What stays as it is: everything not listed. No price, unit or tax of another type than the chosen Tax Type changes. Materials are not moved between groups, and old bills are not touched.

FieldDescriptionRequiredValues and rules
Modify Tax CodeWrites the code and rate in the existing rows.NoSelected at first. Disabled and cleared with Insert Only.
Tax TypeThe type of tax you write.YesThe tax types in use in tax settings, as abbreviation then name. Changing it refills Tax Code.
Tax CodeThe code that is written.YesThe list follows Tax Type. VAT: SR, ZR, EX and O; O appears only if the option Allow using a tax code from the outside scope of tax in Material card is on. Excise tax: A, B and C.
Tax RateThe rate that is written.With SRShows the rate set in tax settings for this code, and is disabled for EX and ZR. A whole number: if you type a fraction the program drops what follows the decimal point, so 7.5 becomes 7.
Calculate Tax on Profit MarginFlags the materials as taxed on the profit margin.NoAvailable only with SR; otherwise it is cleared. In Saudi Arabia it is cleared and disabled when the window opens, and becomes available again when you change Tax Type or Tax Code to SR. The rule is in the next paragraph.
Materials Cards VerificationOpens the report of unprepared materials.NoShows every material in the file that has no VAT row, whatever you selected. See Materials that are not set in tax system.
OkRuns the tool.Steps in What happens on Ok.
CancelCloses the window.Writes nothing. There is nothing to undo.

Profit-margin flag: it is written in every row the program touches, inserted or modified, by the same rule. If the type is VAT and the code is SR, the flag takes the state of the Calculate Tax on Profit Margin box. In every other case it is switched off. So if you run Modify Only without Modify Tax Code on materials coded SR while the box is cleared, the program switches the flag off for all those materials.

Conditional items​

ItemWhen it appears and how it works
Exemption ReasonAppears when Saudi e-invoicing is activated. The list follows Tax Code: first an entry with no reason, then the reasons of the chosen code (EX, ZR, SR and O), the same reasons as in the material card, in Material card: prices and taxes. The program writes the chosen reason in all selected materials, whether or not a row was inserted for them. If you choose no reason with VAT and code SR, it clears the exemption reason stored in those materials. It works with Insert and Modify, Modify Only and Insert Only.
Edit fields in materials cards, Taxable with external customer and Claim a written declarationAppear in the UAE. Claim a written declaration also needs the written declaration to be on in tax settings. The last two are available only when Edit fields in materials cards is selected. They write the value in the selected materials whose VAT row is SR, whatever Tax Code is chosen in the window. Choosing a code other than SR clears the two boxes. A selected box writes 1, a cleared box writes 0. The value 0 for Taxable with external customer is not written in a material that has an invoice item with a tax code. The value 0 for Claim a written declaration is not written in a material that has an invoice item with a declaration status. The tool skips such a material without a message. The value 1 is always written. These changes are counted in Modified logs count.
Modify "Recoverable Tax" option - For tourists and Tax refund is eligible to touristAppear in the UAE when the tourist system is on in the file. When you choose the option, Tax Type, Tax Code, Tax Rate and Calculate Tax on Profit Margin are disabled and the Tax refund is eligible to tourist box is enabled.
Insert and Modify and Modify OnlyIn the UAE, if your licence does not include the administration tools of the tax system, both are disabled and Insert Only is selected.

What happens on Ok​

  1. If the code is SR and the rate is zero or less, the message "Standard-rated (SR) and tax rates less than or equal to zero are not allowed." shows and the cursor goes to Tax Rate. Nothing else happens.
  2. The backup window shows, as in What the tools share.
  3. The tool does the work in the database. It does not wrap the work in one transaction that is cancelled as a whole on error, so if it fails in the middle some changes may remain. On failure the success message does not show.
  4. The message "Operation successfully completed" shows, with two numbers under it: Inserted logs count and Modified logs count. The first is the number of rows added. The second covers the rows that were modified, and the materials whose exemption reason or UAE fields were written. The count is of tax rows, not materials, so a material with two rows can count twice.

Modify Customers Tax​

The tool writes the tax code and the tax location in customer cards. The customer tax data and its lists are in Customer tax pages. The tool does not apply the card's restrictions: it does not look whether the customer has bills or vouchers, and it does not check the permission Modify tax info in customer card. It changes the code and location even for customers whom the card does not let you edit.

Selecting customers​

FieldDescriptionRequiredValues and rules
CustomerOne customer card.NoA lookup box. Account is disabled while it is not empty.
AccountAn account that narrows the customers.NoThe tool takes the customers of the account and of its sub-accounts, and of the accounts that make up a collective account. Customer is disabled while it is not empty.
Customers TermsA saved condition on customers.NoThe list, grid and buttons work as Materials Terms in Materials terms, but on customer fields. It combines with the customer or the account.

If you leave the three fields empty, the tool takes all customers and suppliers in the file.

Fields​

FieldDescriptionRequiredValues and rules
Insert and Modify (the default)Adds the tax row to those who have none and modifies the others.Three options, as in the materials tool.
Modify OnlyModifies those who have a row of the chosen Tax Type.
Insert Only ( cards that do not have this tax type )Adds a row to those who have none of this type.Modify Tax Code and Modify Tax Location are disabled and cleared.
Modify " Tourist " option - For tourists integrationWrites the tourist flag.Appears in the UAE with the tourist system only.
Modify Tax CodeChanges the code in the existing rows.NoSelected at first.
Modify Tax LocationChanges the location of the customer.NoSelected at first.
Tax TypeThe tax type.YesThe types in use. Changing it refills Tax Code.
Tax CodeThe code that is written.YesVAT: SR and ZR; in Saudi Arabia also PU, XP, NA and GV (and GOV if Enable Government Sales is on); in the UAE EX, IG and TR. Excise tax: T and ET.
Tax LocationThe location of the customer.YesThe sub-locations defined in tax settings. The list follows Tax Code: SR shows the Local locations (and in the UAE also LNR); ZR shows OG; EX and TR show Local (UAE); GV shows Local (Saudi Arabia); IG shows GCC (UAE); PU, GOV and NA show LNR; XP shows any location other than Local and LNR. Other codes show all locations. If the code has no suitable location the list stays empty and a message shows on Ok.
StateThe customer's country, for exports.NoAvailable only if the classification of the location is OG; otherwise it is emptied.
Reverse ChargeMarks that the tax is on the customer.NoFollows the reverse charge rule: empty and disabled for Local; selected and disabled for the UAE with LNR and for Saudi Arabia with OG and ZR; empty and disabled with PU, XP, NA, GV and GOV.
TouristThe tourist flag.NoAppears in the UAE with the tourist system; available when the tourist option is chosen.
Customers Cards VerificationOpens the report of unprepared customers.NoShows every customer in the file who has no tax location or no VAT row, whatever you selected. See Customers that are not set in tax system.
OkRuns the tool.
CancelCloses the window.Writes nothing.

In the UAE, if your licence does not include the administration tools of the tax system, Insert and Modify and Modify Only are disabled and Insert Only is selected.

What the tool writes​

OptionTax rowsCustomer card
Insert and ModifyWith Modify Tax Code: writes the new code in the rows of the selected customers of this Tax Type. Adds rows with the chosen code to those who have none, with an empty tax number.With Modify Tax Location: writes the location, reverse charge and state in all selected customers. In every case it writes them for those who got a new row.
Modify OnlyAs above for existing rows only, with no new rows.With Modify Tax Location the three are written in all selected customers, even those with no row.
Insert OnlyA row is added for those who have none of this type. An existing row is not changed.The location, reverse charge and state are written only for customers who got a new row, although Modify Tax Location is not available.

Notes:

  • The tax number does not change in existing rows, and it is empty in added rows.
  • State is always written: if the classification of the location is not OG, an empty text is written, and this clears the state stored in the cards of the customers concerned.
  • Reverse Charge is written with the state of the box, so a cleared box turns it off in every customer concerned.
  • The customer's code changes without a check that it suits the customer's current location. If you change only the code, it may disagree with the old location.
  • With the tourist option: the Tourist flag is written in customers whose VAT code is SR. The flag is cleared only for customers who have no bill with an activity status, and it is set only for customers who have no bill at all.

What happens on Ok​

  1. The backup window shows, as in What the tools share. Here it comes before the location check.
  2. If the Tax Location list has no location, the message "No Tax Location has been set to the customer" shows with the title "Error determining tax location", and nothing happens. This check also runs for options that do not write the location.
  3. The tool does the work. It does not wrap it in one transaction that is cancelled as a whole on error. If it fails, the success message does not show.
  4. The message "Operation successfully completed" shows, with Inserted logs count and Modified logs count under it. The first is the number of rows added. The second is the number of rows whose code was written, plus the number of customers whose location was written with Modify Tax Location. Customers whose location was written at insertion are not counted in it.

Modify Bills Tax​

The tool recalculates the tax of bills that still have no tax code in their items, generates their entries again, and, where needed, generates a settlement entry for the differences. A line at the top says: "This window helps you to apply the tax on all the bills that have no tax, and regenerate their entries." The window starts empty. Click Refresh or Filter... to show the bills.

Opening the tool​

Before the window opens, the program checks the whole file. If a condition is not met, a message titled "Error in verifying data" shows:

Unable to access the Modify Bills Tax tool until the following conditions are fulfilled:

  1. Materials cards are prepared in GCC tax system
  2. Customers cards are prepared in GCC tax system
  3. Default customer is set in bill form properties

The three lines show together, whichever condition failed. The conditions:

  • Materials: every material in an item of a sale, purchase or return bill (of a form that generates an entry, of any date) has at least one tax row.
  • Customers: every customer in these bills has at least one tax row.
  • Forms: every sale, purchase or return form that generates an entry, even one with no bills, has its default Customer, on the GCC Tax Options page of the form (bill form tax pages).

Fix them with Modify Materials Tax and Modify Customers Tax. If the check itself cannot run, a message in English only shows: "erro in validate cards tax info".

What the tool shows​

The bills shown are those that meet all of the following:

  • The form is a sale, purchase, sale return or purchase return that generates an entry, or a sales or purchase order form that generates an entry, and the bill has at least one item with no tax code. A bill whose items all have a code does not show, whatever its tax.
  • The date is on or after the Registry Date in tax settings. For a return, the date of the original bill must also be on or after it.
  • It meets the filters of the Filter window: pay method, dates and form.

Neither the grid nor the apply step looks at the posting status, the audit status or a closed tax period. A posted bill, an audited bill and a bill in a closed tax period all show, and they are modified if you mark them Yes. Other tools, such as re-posting bills, check the closed tax period; this tool does not.

Fields and buttons​

FieldDescriptionRequiredValues and rules
Expense AccountThe account of the settlement entry.When a row has the method No difference on customerA lookup box on accounts. If it is empty while a row has this method, Apply shows "Please select an account". The check covers every row with this method, even if its Process is NO.
ApplyRuns the modification.Disabled until the grid shows at least one bill. After success the grid is refreshed; Apply stays available if bills remain in it.
RefreshRecalculates the grid with the current filters.Clears your choices in Process and Processing Method.
Filter...Opens the Filter window.Refreshes the grid if you click OK there.
CloseCloses the window.Writes nothing.

Grid columns​

All amounts show in the currency of the bill, that is, divided by its exchange rate.

ColumnMeaningEditable
ProcessWhether the bill is modified on Apply.Yes: NO (the default) or Yes.
Bill NumberThe form abbreviation, then the bill number, by interface language.No
Bill DateNo
Previous ValueThe current total of the bill: the items total minus the discount, plus the extra, plus the stored tax.No
New ValuePrevious Value with the stored tax replaced by the calculated tax.No
Previous TaxThe tax stored in the bill.No
New TaxThe sum of the tax of the items as calculated now.No
VAT differencePrevious Tax minus New Tax. It shows negative when the tax rises.No
Processing MethodHow the settlement treats the difference.Yes, in every row without a problem. The heading menu sets only the rows marked Yes.
NotesWhy the bill cannot be processed, if it cannot.No

Rows that cannot be processed​

A bill with a problem shows in a distinct background colour, its New Value and New Tax show zero because the program does not calculate them, you cannot change Process in it, and Notes gives the reason. The checks run in this order and the first that applies is shown:

NotesReason
The default customer is not set in the bill formThe bill has no customer and its form has no default customer.
No tax has been set to the bill customerThe customer of the bill (or the default customer) has no VAT row.
No location has been set to the bill customerThe customer has a tax row but no tax location in the card.
No tax has been set to the bill materialsA material in the bill has no VAT row, or its code is Without.

A bill with no customer whose form has a default customer is treated as that customer, and on apply the customer is written in the bill (see What apply writes).

Menus and keys​

  • Right-click the row header (the cell at the side of the grid): only the command Show Invoice appears, without the usual grid commands, and it opens the bill in its window.
  • Right-click the heading of the Process column: a menu with NO and Yes sets all the rows that can be processed.
  • Right-click the heading of the Processing Method column: a menu with No difference on customer and Difference on Customer. It sets the rows marked Yes and clears the method of the other rows.
  • Choosing Yes in a row gives it the method No difference on customer if it has none. Choosing NO does not clear a method chosen before.
  • F4 in a cell of the Process or Processing Method column copies the value from the row above. Rows cannot be deleted, cut or pasted.

The two methods​

MethodWhat happens
Difference on CustomerThe bill and its entry are modified only. The total of the new entry includes the new tax, so the balance of the customer changes by the difference.
No difference on customer (the default when you choose Yes)The same, and a settlement entry is added, described in settlement entry.

Apply​

When you click Apply:

  1. If the grid has a row with the method No difference on customer and Expense Account is empty, "Please select an account" shows and the action stops.
  2. If no row is marked Yes and free of problems, a warning titled "Apply invoices on tax system" shows: "No bills found to apply, you can select invoices to be processed by choosing Yes in the check box, also can apply all bills by selecting Yes from field header".
  3. The program asks, with the same title: "The invoices with Yes in check box will be applied", then "Invoices Total: …", "Invoices to be applied: …" and "Do you want to continue?", with the buttons Yes and No. "Invoices Total" is the number of rows in the grid, including those with problems. "Invoices to be applied" is the number of rows marked Yes.
  4. On Yes a progress window shows "Prepare Invoices" and then "Apply invoices on tax system", and the work runs in one transaction. If it fails, everything is cancelled, the bills stay as they were and the success message does not show.
  5. On success the operation is logged, "Operation successfully completed" shows, and the grid is refreshed with the same filters, so bills whose items now all have a code disappear. Apply stays available if bills remain in the grid.

Approved bills​

If Saudi e-invoicing is activated, the tool removes from the apply, without a message, the bills whose state is Approved. They are still counted in "Invoices to be applied". If all marked rows are approved, nothing changes and "Operation successfully completed" still shows. The tool does not skip bills in other states, such as Draft or those approved by the authority. For a bill in the Draft state the figures in the bill are updated and the program does not generate its entry again. The tool does not check the sending state outside Saudi e-invoicing.

What apply writes​

For every bill marked Yes and free of problems:

  • Items: the tax, its rate and the tax code of every item are written again, with the excise tax and the reverse charge. This covers items that already have a code, not only items without a code.
  • Bill: the new items total before discount and extra, and the new tax.
  • Customer: if the bill had no customer, the default customer of the form is written in it, and the name of the original customer is added to its notes in brackets, if there was one.
  • Tax location of the bill: the default location of the form is written if the bill is a sale or sale return and the location of its customer is Local. In every other case the location of the bill is cleared. This applies to purchases as well.
  • Entry: the entry of the bill (for bills that have one) is generated again with the new figures. A posted bill stays posted.
  • Log: a line in the operations log for every bill.
  • After the work, the program posts again all the posted bills of the file and recalculates the balances of all accounts and customers. This may take time in a large file.

How the code is calculated: for each item the program calculates a new code from the code of the material, the code of the customer and its location and subscription at the date of the bill, and the code of the bill form. The rate comes from the tax row of the material. The tax is calculated on the value of the item after the bill discount and extra are shared over the items in proportion to their values. The two exceptions are in the Filter window: Handle items with tax not equal 0 as Standard Rated and Handle items with 0% tax.

In a sale or sale return, items of materials taxed on the profit margin are left out of the recalculation: their lines do not change and they do not enter New Tax, so the total and the tax of the bill are rebuilt from the other items only.

The settlement entry​

If the applied bills include rows with the method No difference on customer, and the sum of (Previous Value minus New Value) for them is not zero, the program creates one posted entry dated today, with the description "متولد عن أداة تعديل ضرائب الفواتير نتيجة الفروقات" (in Arabic in every language). It holds:

  • A line on the Expense Account: debit with the sum if it is positive, credit with its absolute value if it is negative.
  • A line for each customer (the customer's account): credit with the sum of (previous minus new) of the customer's bills if it is positive, debit with its absolute value if it is negative.

Example (a purchase bill with no tax, Previous Value 1000.00 and Previous Tax 0.00, rate 15): New Tax is 150.00, New Value is 1150.00 and VAT difference is -150.00. With No difference on customer the sum is -150.00. The entry gets a credit line of 150.00 on the Expense Account and a debit line of 150.00 on the supplier account. The entry of the bill is itself a credit to the supplier of 1150.00, so the supplier's net is 1000.00. The lines follow the same rule for every kind of bill.

Outcomes​

SituationWhat happens
You did not click Refresh or Filter...The grid is empty and Apply is disabled.
You clicked OK in the Filter windowThe grid is refreshed with the new filters and your choices are cleared.
You clicked CloseThe window closes. Bills already applied do not come back.

Filter window​

It narrows the bills that the grid of Modify Bills Tax shows. Open it with Filter.... The filters stay in the main window while it is open and are not saved after you close it. They return to their defaults each time you open the main window.

FieldDescriptionRequiredValues and rules
Pay MethodNarrows the bills by pay method.NoOn Credit, Cash and All (the default). A bill whose pay method is neither of the first two shows only under All.
Date RangeEnables the two date fields.NoCleared at first. Without it dates are not limited.
FromStart of the period.With Date RangeToday's date at first. Bills of this day are included.
ToEnd of the period.With Date RangeThe end of the financial period of the file at first. Bills of this day are included.
All invoices formsTakes every form.NoSelected at first. When selected, the Sources list is disabled and forms are not limited.
SourcesThe forms whose bills show.When All invoices forms is clearedThe normal bill forms that generate an entry, except the stock input and output forms. All are selected at first. If you select none, no bill shows.
Show bills that have differenceBills whose tax will change.NoSelected at first.
Show bills that have no differenceBills whose tax will not change.NoSelected at first. You cannot clear both: the last one stays selected.
Handle items with tax not equal 0 as Standard RatedTreats every item that has tax as SR.NoCleared at first. Writes the standard rate set in tax settings for SR, whatever the code of the material and the customer.
Handle items with 0% taxTreats items whose tax is zero and whose material is SR.NoCleared at first. Enables the next two options. It has lower priority than the previous option.
Handle items with 0% tax as Zero RatedWrites the code ZR and a zero rate in these items.NoThe default when the previous option is selected.
Handle items with 0% tax as ExemptWrites the code EX and a zero rate in these items.No
OKKeeps the filters and closes the window.Refreshes the main grid.
CloseCloses the window.Does not change the current filters.

Rules:

  • Difference means Previous Tax minus New Tax, rounded to four decimals. A row with a problem has a new tax of zero, so it counts as "has difference" if its old tax is not zero and as "has no difference" if it is zero. Clearing one of the two options can therefore hide it.
  • The last two options work only if the option before them is selected.
  • The filter window shows no validation messages: an empty Sources list and a start date after the end date are not refused, and give an empty grid.
  • OK keeps everything you entered, even if it is not valid.

Messages​

MessageWhen it showsWhat to do
An error found in tax settings (with the cause)You choose a tool and the settings are incomplete.Complete the tax settings.
Standard-rated (SR) and tax rates less than or equal to zero are not allowed.Ok in the materials tool with code SR and a rate of zero or less.Type a positive rate.
Error determining tax location: No Tax Location has been set to the customerOk in the customers tool with no location in the list.Choose a Tax Code that has a location, or define a location in tax settings.
Operation successfully completed, with the inserted and modified countsA run of the materials or customers tool ended.Check a card.
Error in verifying dataYou open the bills tool and the file is incomplete.Opening the tool.
Please select an accountApply with a row of the method No difference on customer and an empty Expense Account.Choose the account or change the method.
Apply invoices on tax system: No bills found to apply…Apply with no row marked Yes and free of problems.Mark the rows.
The invoices with Yes in check box will be applied… Do you want to continue?Apply.Yes to continue.
Operation successfully completedApply ended.Check the bills.

This page applies to alameen ERP 10, version 10.1.79.764.