Skip to main content

Delete an account

You delete an account that you no longer need from the right-click menu of the chart of accounts, or with the Delete button in the account card. The program does not delete an account that is used anywhere. This page explains every case that blocks the deletion and what to do.

Before you begin​

  • You need the Account Card permission at the delete level in Users Management, and your permission level must be equal to or higher than the security level of the account.
  • If you lack the permission, nothing happens when you choose Delete Account from the chart, and no message appears. In the account card, the message "You don't have the appropriate authority to perform this operation" appears.
  • The deletion is permanent and cannot be undone. Take a backup of the file if you are not sure.
  • If the account is used and you do not want to delete it, hide it from pick lists by turning on Hide in Search Window in its card. Or move its movement to another account; see Transfer the movement of one account to another.

Steps​

  1. Open the Chart of Accounts: Accounts > Settings > Chart of Accounts.

  2. Right-click the account and choose Delete Account.

    If the account has sub accounts, delete them first. The program does not delete an account that has sub accounts.

  3. The message "Are you sure you want to delete?" appears, with a warning that the record will be deleted permanently and cannot be retrieved. Click Delete. To go back, click Cancel.

  4. If a message blocks the deletion, read it and then see the tables in the "If something goes wrong" section below.

You can also open the account card by double-clicking the account and then click Delete. The card checks the sub profit center cards before the confirmation, and deletes the documents attached to the account when the deletion succeeds.

Result​

The account disappears from the Chart of Accounts. The program also deletes:

  • The default accounts set for it for bill types.
  • The list of accounts inside it, if it is aggregative or distributive. The accounts that were in it stay as they are.

The program records the deletion in the operations log. No other account balance changes, because the deleted account had no movement.

If something goes wrong​

The deletion goes through three stages: checks before the confirmation, then the confirmation message, then the database checks. So you may click Delete and then see a message that blocks the deletion. Nothing is deleted in that case.

Checks before the confirmation​

CaseMessageWhat to do
The account is the profit account in the financial statements options.Can't delete! The account is used within the options of the financial statementsChange the profit account in the Financial Statements Settings, then delete.
You lack the delete permission, or the security level of the account is higher than your permission.No message when you delete from the chart. From the card: "You don't have the appropriate authority to perform this operation".Ask the users manager for the permission.
The account is used in a sub profit center card. This check is from the card only, and works with the profit centers feature.The account can't be deleted because It's used in a sub profit center's cardChange the accounts in the sub profit center card. After the message the Delete button stays disabled until you show the account again.
The account was created in another replication database. This check is from the card only.Cannot perform an operation that has a source code not belong to the current database.Delete the account in the database that created it.

Used account​

If the account is used, the message "Can't delete the account! It's used" appears with one or more lines under it. The lines do not always point exactly to the use: one use may show several lines, and some of them name places where the account is not used. Start from the table below, and first look for entries of the account in the Ledger.

Where the account is usedThe line that appearsWhat to do
It has sub accounts.Used as main accountDelete its sub accounts, or move them to another main account.
It is the final account of other accounts.Used as final accountChange the Final Account of those accounts.
A fixed asset card: the asset, depreciation, accumulated depreciation, expenses, revaluation, or capital profit or loss account.Can't select same file more than onceChange the account in the asset card.
Bill types: the default account of the bill, cash, discount, addition, tax, cost, stock or gifts.A line with no specific textChange the account in the bill type.
Bills: the customer, materials or down payment account, or the discount and addition lines.Unsed in Bills. For discount and addition lines "Used in Commercial Papers" appears with it. For the down payment "Used in Entries" and "The account is used as down payment to an account" appearYou cannot delete an account that is in a bill.
Commercial papers.Used in Commercial Papers, with "The account is used in "Special Offers"" and "This account is used in portfolio accounts table and cannot be deleted"You cannot delete an account that is in a commercial paper.
Entry forms: the default account of the form.Used in entries formsChange the account in the entry form.
Default accounts in the cards of materials, groups and customers.Used in Materials AccountsRemove the account from the Default Accounts window in those cards.
Manufacturing templates and operations: the input, output and temporary accounts and the extra cost accounts.Used in ManufacturingChange the account in the template. You cannot delete an account that is in a manufacturing operation.
Commercial paper types: the pay, receive, collection, endorsement, discount, commission, charges and exchange differences accounts.Used in Commercial Papers Types, and other lines about materials, manufacturing, special offers and portfolio accounts may appear with itChange the account in the commercial paper type.
Warehouses.Used in WarehousesChange the account in the warehouse card.
An item in an aggregative or distributive account.Used in ( Assembly / Distributive) accountRemove the account from the aggregative or distributive account.
Entries: an account or a contra account, and receipt and payment vouchers.Used in Entries, usually with "The account is used as down payment to an account"You cannot delete an account that has movement.
A customer account.Customer AccountDelete the customer card first.
Job orders, or manufacturing spoilage accounts.The account is used in Job OrderChange the account in the job order.
Production lines: the expenses account.The account is linked with Production LineChange the account in the production line.
Special offers.The account is used in "Special Offers"Change the account in the offer.
The tax accounts of a bill type.The account is used in the tax accounts for an invoice type, and other lines about materials, manufacturing, special offers and portfolio accounts may appear with itChange the account in the bill type.
Changed distribution rates in a commercial paper or a general bill discount table.Rates distribution window of a distributive account is used by (Commercial Paper / Discount table General Invoice)You cannot delete the account while the changed rates are stored.
An older special offer card: the customers account.The account is used as down payment to an accountChange the account in the offer card.
A restaurant vendor card.The account is linked with Driver CardChange the account in the vendor card.
POS offers.Account is used in POS special offerChange the account in the offer.
POS payment accounts, or Gulf tax settings.A line with no specific text, and "Used as main account" or "Used as final account" may appearChange the account in the settings.

Messages with special rules​

These cases have their own message, and the use lines do not appear with them.

CaseMessageWhat to do
The options of the orders system for the pocket device.Account can't be deleted because it is used in Options of the orders system related to the Pocket PCChange the option in the orders settings.
A sub profit center card, when you delete from the chart.The account can't be deleted because It's used in a sub profit center's cardChange the profit center card.
POS or restaurant settings: delivery companies, or the cash, adjustment, earnest and drawer accounts.Cannot delete! the account is used in POS or Restaurants settingsChange the settings.
A distribution unit card.Cannot delete! the account is used in Distribution CardChange the unit card.
A distribution rep card.Cannot delete! the account is used in Distribution Rep CardChange the rep card.
Commission rules on the invoice final total.Cannot delete, the account is used in commission rules on the invoice final total.Change the commission rule.
A distribution discounts card.Cannot delete the account, it is related to Distribution Discounts cardChange the discounts card.
The messages and notifications system.Cannot delete the card! it is used in messages systemChange the notification account.
A bank card.Cannot delete an account card used in bank cardChange the bank card.
POS web accounts.The account is used in the web point of saleChange the POS web accounts.
A POS driver card, or the driver delivery commission.Cannot delete an account card used in POS driver cardChange the driver card.
A POS employee card.Cannot delete an account card used in POS employee cardChange the employee card.
POS orders (down payment), currency cash boxes, return coupon, or smart device options.Cannot delete an account card used in POS cardChange the matching POS setting.

The last three POS cases are checked before all the others. If more than one of them applies to the account, only the message of the first one that applies appears. Fix it and try again, because another message may appear.

This page applies to alameen ERP 10, version 10.1.79.764.