Skip to main content

Return from Bill

The Return from Bill window creates a return bill linked to a saved original bill, so you cannot return a material that was not sold or not purchased, or more than its available quantity. It is a bill window of a return form: it has the fields and grids of a bill, plus the search options for the original bill and a column for the available quantity. For the steps, see Return goods from a bill.

Opening the window​

  • From the ribbon: Invoices > Working Tools > Return from Bill. The window opens empty and Return Options is Return from Current Year. You need the Return from Bill permission (on the Operations page of Users Management), and your licence must include the accounting feature.
  • From a saved bill window: Operations > Return from Bill. The command shows for a saved bill of a normal sales or purchase form (not an export form), and for a user who may enter or browse this form, or browse its posted bills. The window opens and reads the bill at once. The form and number of the bill go to the search options and these options are disabled, except Return Invoice Form, which you still choose.
  • From the Returns Bills page of the payment terms window of a saved bill: New (a return) or Modify (the selected return).

After a bill is read, the search options stay disabled until you click New, except Return Invoice Form, which you can choose or change after the reading (unless the original form fixes it). After New, Previous File stays disabled until you choose Return Options again.

FieldDescriptionRequiredValues and rules
Return OptionsThe kind of operation.YesReturn from Current Year (default), Return from Prior Year (from the previous year file chosen in the return options), and Modify a Previous Return Bill. Changing it clears the window as New does.
Previous FileThe previous year file.For Return from Prior YearEnabled with this kind only. If no file is chosen in the options, "Make sure you select the previous year file in Options" appears.
Original Bill FormThe form of the bill you return from.YesNormal sales and purchase forms that you may enter or browse, except export forms (allowed with the Jordan e-invoicing system). In Modify a Previous Return Bill it lists return forms instead.
Bill NoThe number of the original bill (or of the return bill when modifying).YesA number greater than zero.
Return Invoice FormThe form of the return bill to create.YesLists the matching return forms (sales return for a sales bill, purchase return for a purchase bill) that you have permission on and whose tax properties fit those of the original form (see Tax). If the original form has a default return form, the program selects it and disables the field when the original form fixes it. Disabled in Modify a Previous Return Bill.
Serial NumberThe serial number of the e-invoice.NoShows with the Saudi e-invoicing system only. Use it for a return from the current year only. If you type it, the program reads the bill by it and finds its form and number.
Read...Reads the bill.Enabled after you choose the Original Bill Form and type a Bill No above zero (or type the serial number).
Origin Bill DateFilled after reading.Read-only.
BranchThe branch of the original bill.Read-only. Shows when branches are enabled.
SalesmanThe salesman of the original bill.Read-only. Shows when the option to show distributor and salesman is on (options).

When you click Read...:

  1. The program looks for the bill by form and number. If it finds none, "No bill found with this number" appears. It searches your branches only, unless returning from another branch is enabled and you have its permission. If several bills have this form and number (in several branches), the window Select Requested Bill opens with the date, client, warehouse, cost center and branch of each: choose one. In Modify a Previous Return Bill other branches are never searched. If you typed a serial number that is not found, "Invoice not found" appears: "Sorry! either the invoice not found or you have no permission".
  2. If the return restriction by period is on in the return options, the bill is a sales bill and the kind is not modifying, the program compares the days since its date with the period. If it is more, "Cannot return! The sales bill dated "…" is out of allowable time to be returned" appears.
  3. The program reads the bill, loads its lines and calculates the available quantity of each, then disables the search options (except Return Invoice Form).
  4. If nothing is left in the bill to return, "The bill has no materials to return" appears, and if everything was returned, "The invoice has been fully returned, no quantity to return" appears.

After reading, the program checks your authority over the currency, the client account, the warehouse and the cost center of the bill. If you have no authority over the warehouse or the cost center and the option does not allow modifying them, the bill is not read and "Cannot return! You don't have the authority over bill warehouse and the" Allow modifying warehouse of header and items" option is unchecked" appears (or the one for the cost center). For the currency or the client account, "Cannot return! You don't have the authority over …" appears. With the Saudi e-invoicing system, a bill linked to an unapproved note is not read ("The associated note of the selected invoice is Unapproved, cannot continue.").

When reading from the prior year, the program checks that the customer, the client account, the currency and the branch exist in the current file, and refuses to return if not ("Cannot return! The … not found in the current file"). A cash bill is the exception for the client account: the account is emptied and the reading goes on. A missing cost center or warehouse asks "… not found in the current file, do you want to continue?" if modifying them is allowed. A discount or addition account of the bill that is not in the current file stops the reading: "Cannot return! The discount or addition account not found in the current file". If a return of the same bill was made in a file you cannot open, "The origin bill has a return performed in a file you don't have the read authority over it" appears.

If no previous year file is chosen in the options, choose it in Previous File. In any kind of return, a client account you have no authority over is emptied, not refused, when it is the default cash account of the form.

The program leaves out materials that are not in the current file or whose units changed ("There are materials have different units in current file, so they cannot be returned!"). A line whose warehouse or cost center is not in the current file is left out when the option that allows modifying the warehouse (or the cost center) is off, with a message such as "Cannot return! The warehouse related to one of items is not found in current file, and the "Allow modifying warehouse of header and items" option is unchecked. But the remaining items can be returned"; when the option is on, the line stays with that field empty. In both kinds of return, lines whose warehouse or cost center you have no authority over are treated the same way ("Cannot return! You don't have the authority over warehouse related to one of bill items, and the" Allow modifying warehouse of header and items" option is unchecked. But the remaining items can be returned", and the same for the cost center).

E-invoicing rules​

With an e-invoicing system the program also checks the original bill and the return:

  • Saudi Arabia: the original bill must not be a draft or a posted draft, must not be Not prepared (in a return from the current year), and in phase 2 must not be Clearance - Error, Reporting - Error, Compliant or Compliant - For other. Otherwise "Error in generating return invoice" appears: "Unable to generate return invoice due to origin invoice status." On Add, a final bill or a finished prepayment is refused: "Invoice cannot be refunded because the payment status is: …".
  • Turkey: the original bill must be Approved: "This form is used in Turkish Taxation Settings, the status of original invoice must be Approved to be able to generate a return invoice."
  • Syria (phase 2): the original bill must not be a draft, and a bill can have one return only: "The bill is linked to a return, and according to the tax requirements you cannot add more than one return bill. Cannot continue".
  • Modifying or deleting a return that was already sent (Saudi Arabia, Egypt, Jordan, the Emirates and Syria): "Cannot Edit Invoice" with "Unable to modify the invoice due to its current status, cannot continue!", or "Cannot Delete Invoice" with "Unable to delete the invoice due to its current status, cannot continue."

The header is filled from the original bill. The date of the return is today.

FieldDescriptionRequiredValues and rules
WarehouseThe warehouse of the return.Enabled only with the option "Allow modifying warehouse of header and items".
Client AccountThe account of the customer in the return.Enabled for a cash payment, or for a forward payment when the bill has no customer.
Cost CenterThe cost center of the return.If the return form forces itShows when the option "Show cost center in Returns from Invoice window" is on. Enabled only with the option "Allow modifying cost center of header and items".
BranchThe branch of the return.Shows when branches are enabled. Enabled only with the return option for another branch, the permission Allow returning from another branch in Returns from Invoice window, and a user who has more than one branch. When it is enabled it starts empty if you have several branches (choose it), not with the branch of the bill.
ClientThe customer of the bill.Enabled if the original bill has no customer.
CurrencyThe currency of the return.Disabled. It is the currency of the original bill.
ParityThe exchange rate.Read from the original bill.
DateThe date of the return.YesStarts as today. It cannot be before the date of the original bill.
PayThe payment method.Lists the types that fit the direction of the return. If the original bill used a special method such as commercial papers, it becomes forward.
Salesman and DistributorThe salesman and distributor of the bill.Show when the option to show them is on.
NotesThe statement of the return.Starts with "Return generated from … bill number …" (the name of the original form and the bill number), and the serial number if there is one.
Issue DateThe reason for issuing the return note. (The Arabic label is "reason for issuing".)If the e-invoicing system requires itShows with the Jordan e-invoicing system only. If it is empty where required, "Please enter reason of the note issuing" appears.
Additional invoice discountThe extra discount of the Egypt e-invoice.Shows with Egypt e-invoice forms. Its amount is disabled.

The other fields are disabled or hidden by the return form as in a normal bill. See Bill.

The lines grid​

The grid shows the columns of the return form as in a bill, and adds the column Net Sales (Net Purchases for a purchase bill): the quantity available to return from the line, then "+" and the available gifts if any are left. The quantity column is titled Return Quantity.

How lines get in:

  • If the option "Add all bill items on read" is on, the program adds all the lines of the bill that still have something to return, with quantity zero. Otherwise the grid stays empty and you add the lines yourself.
  • You add a line by typing the name, code or barcode of the material in the grid. The search window here is titled Original Bill Materials and lists the lines of the original bill, not all materials. You can choose several lines. A line already in the grid, or with nothing left to return, is not listed, and a line with a special offer is not listed if returning it is not allowed.
  • Return All clears the grid and then fills it with every line that has something left, with its full available quantity and gifts.
  • The line command Return Material Quantity puts the whole available quantity and gifts, in the current unit of the line, into the selected line.

The columns you cannot edit: Net Sales, Expiry date and Category. The other columns depend on the options:

ColumnWhen you can edit it
Price and TotalWith the option "Allow modifying price". Never in an Egypt or Jordan e-invoice form.
Discount and addition (value and ratio)With the option "Allow modifying discounts and additions of items and table". Not in an Egypt or Jordan e-invoice form.
Tax and its ratioWith the option "Allow modifying tax". Not in a Jordan e-invoice form.
WarehouseWith the option "Allow modifying warehouse of header and items".
Cost centerWith the option "Allow modifying cost center of header and items".
UnitExcept in an Egypt or Jordan e-invoice form.

When you change the unit of a line, the price is converted by the ratio of the new unit factor to the old one, and the available quantity is shown in the new unit. The commands copy, paste, cut, insert and insert paste are removed from the line menu, and the line commands of a normal bill are not in it; in the multi-selection menu copy, paste, cut, insert paste and delete are removed. Dragging a material into the grid and the key F4 do nothing here. The column header menu does not appear for the price and total columns, nor for the Unit column in the Egypt and Jordan e-invoice forms.

Line menu​

ItemWhat it does
Return Material QuantityPuts the available quantity and gifts in the selected line, with its serial numbers from the original bill. It does not work for a line hidden from you by the security level. Return All fills the serial numbers too. The serial numbers window of a line is the one of the return: it works with the serial numbers of the original bill.
The other grid menu commandsAs in Grid menus, except the commands listed above.

Line information​

The line information window shows a table that compares the original invoice with what was returned before and what is still available, with the columns Original Invoice, Previous Return and Available to Return. Its rows are Material Quantity, Gifts Quantity, Material Value, Item Discount Value, Item Discount Percent, Item Additions Value, Item Additions Percent, Item Share of Total Discounts and Item Share of Total Additions.

The discounts and additions grid​

This grid shows according to the bill form (and is hidden for some e-invoice forms). In a return from the current or the prior year, the discount and addition lines of the bill come back with their original ratios, not their amounts, and their amounts are calculated again whenever the lines change. You can change the amount and the ratio only with the option "Allow modifying discounts and additions of items and table".

Totals​

The cards at the bottom of the window show the total of the lines, the item discounts and additions, the gifts discount, the tax and the grand total, and may show the excise tax and the reverse-charge tax. The cards depend on the return form: the price cards are hidden if the form has no price or total column, the gifts card if it has no gifts column, the discount and addition cards if it has no discount and addition columns, and the tax card if the tax system of the form has no tax. The values are calculated as in a normal bill.

Buttons​

ButtonWhat it does
AddSaves the return bill. Enabled after a bill is read, in the first two kinds.
NewStarts a new return. It clears the search options (Original Bill Form, Return Invoice Form, Bill No and Serial Number), the data of the original bill, the grid and the discounts, Notes, the reason for issue, the warehouse, the branch, the cost center and the client account, and enables the search options. It keeps Date, unless the return form forces today's date, and the salesman.
Modify and DeleteFor a previous return bill. Enabled in Modify a Previous Return Bill after reading. Delete deletes the relations of the return to the original in previous-year files if any, then the bill, then clears the window.
CloseCloses the window.
Return AllFills the grid with the available quantities. Enabled after reading.
MoreOpens the payment terms window of the return. Enabled after reading, and needs the permission to open the extra window of the bill.
Original InvoiceOpens the original bill in its window, for a return from the current year. It becomes Return Bill when modifying, and opens the return. Enabled after reading. It opens nothing for a return from the prior year. It needs authority over the branch of the bill, if the bill has a branch.
Return BillShows after the return is saved, and opens the saved bill.
Special Offers...Shows when you select a line that has a special offer, and opens the offer. For a return from the prior year it shows a notice without text.

The other bill buttons (Preview, Print, Reports, Operations, Display, Payment Terms and Documents) are hidden in this window. After Add, the program does what the print options say, as in a normal bill: prints, shows the print window, or clears the window. With the Saudi e-invoicing system in phase 2, if the saved return is Not prepared, the program opens the saved return bill at once and the print options do not run. Return Bill disappears when the window is cleared (automatic printing, or no print window).

How the program calculates the return​

Available quantity​

The available quantity of a line = its quantity in the original bill minus the quantities of all return lines linked to it (in the unit of the original line), and the same for gifts. This includes returns in the current file and in linked previous-year files. When you modify a previous return, its own quantities are not counted as returned. The column Net Sales shows this quantity in the current unit of the line.

Quantity check​

On Add (or Modify) the program converts Return Quantity to the unit of the original line and compares it with the available quantity, then the gifts with the available gifts. If the quantity is more, "Return quantity must be less than or equal to available quantity to return of the material …" appears; if the gifts are more, "Gifts quantity must be less than or equal to available gifts quantity to return of the material …" appears. If both are more, only the gifts message appears. Small fractions are compared with a tolerance.

Price​

The price of a line stays the price of the original bill, in its currency and parity. It changes only if the option allows modifying the price, or if you change the unit.

Item discount and addition​

The discount and addition of the line are treated as ratios, not fixed amounts, so they follow the returned quantity.

Table discount and addition​

For each line of the discounts grid: the amount = the ratio × (the total of the returned lines minus the item discounts, or the total alone if the bill form calculates the discount regardless of item discounts) ÷ 100. The addition is the same (the total plus the item additions, or the total alone if the form calculates the addition regardless of item additions).

Tax​

The return uses the tax ratio of the material in the original line, and calculates the tax again on the returned quantity by the settings of the return form. So, when neither the Gulf tax system nor the Syrian tax system is on, the program requires the tax properties of the two forms to be equal (tax system, tax before discount, tax before addition, table discount and addition regardless of item ones, and the tax difference); otherwise the return form is not in the list, and on saving "Cannot return! The return bill form and origin bill form have different properties in tax processing" appears. With Jordan e-invoicing the tax type, the provider and the tax mode of the two forms must be equal, with Turkey the scenario, and with Syria (phase 2) the return form must have no tax. With Egypt e-invoicing, for a sales form the return form comes from the tax settings and the field is disabled.

Net item​

Besides the quantity, the program checks the net value of the returned line: it must not exceed the net value that is left of the original line after returns and credit and debit notes. If it does, "The net item value of the material … in line … is … and it will be negative if this transaction is added, cannot continue." appears.

Example (assumed data): a sales bill has a line of material P02, quantity 50, price 80 (value 4,000), a table discount of 5%, and tax of 15% calculated after the discount. The total: 4,000 minus 200 is 3,800, the tax is 570, so the bill is 4,370. When you return 10:

ItemCalculationAmount
Value of the lines10 × 80800
Table discount5% × 80040
Tax15% × (800 − 40)114
Value of the return800 − 40 + 114874

This is one fifth of the original bill (4,370 ÷ 5), as 10 is one fifth of 50. 40 is still available afterwards.

What the program does on saving​

On Add the program checks in this order, and then continues with the checks of a normal bill. Steps 1 to 3 run on Add only, not on Modify.

  1. The return form is chosen, otherwise "Make sure you select the Return Bill Form".
  2. The tax properties of the two forms fit, as in Tax.
  3. The cost center is not empty if the return form forces it.
  4. The date is not before the date of the original bill.
  5. The warehouse, customer, client account, currency and cost center all belong to the chosen branch.
  6. The customer of the return is under the main account set in the form, if the form sets one.
  7. The materials belong to the chosen branch.
  8. The quantities, gifts and net items as above.
  9. The reason for issuing exists, if the e-invoicing system requires it.

In a return from the prior year, after Add is refused once, the cells of the grid take no more changes. Click New and read the bill again.

After saving:

  • A relation is recorded between the original bill and the return (in a return from the prior year, in both files). The relation shows in Bill More Info, and the available quantity decreases by it.
  • If the program option Consider return bill as a payment of the origin bill is on (it is on by default), the program links the return to the original bill as a payment. The test uses Pay as chosen in the return window, which starts as that of the original bill. If Pay is cash, or nothing is left of the original bill (even for an unpaid bill on account when Pay is cash), "The origin bill has been paid, so cannot link the return bill." appears and no link is made. The program does not make this link for a return from the prior year (the message may still appear). If what is left is less than the return, "The unpaid amount of origin invoice (…) is less than the return bill amount, so the origin invoice will be paid but the difference (…) will stay unlinked, you can link the difference manually." appears. See Link payments to bills.
  • If the original bill is a prepayment bill in the Saudi e-invoicing system, the program updates its state to a cancelled prepayment.
  • The entry: the program generates the entry of the return by the settings of its form, as for any bill.

Options that control the window​

These options are set outside the window:

  • In the per-user File options, the group Return from Bill: "Allow modifying warehouse of header and items", "Allow modifying cost center of header and items", "Allow modifying price", "Allow modifying discounts and additions of items and table", "Allow modifying tax", "Allow returning a material has a special offer", "Show distributor and salesman in Returns from Invoice window" and "Show cost center in Returns from Invoice window". All are off by default.
  • In the save options of the file, the group Return from Bill: "Add all bill items on read" (for the whole file, off by default). "Consider return bill as a payment of the origin bill" is a general bills option.
  • Return options: the previous year file, the restriction of returns by a number of days, and returning from another branch.
  • The permission Override bill permissions through Return from Bill window lets you modify and delete a return regardless of the permissions on the bill.

Lines with special offers: if returning them is not allowed they are not added, and "There are materials cannot be returned because they have special offers, and you don't have authority to return a material has an offer" appears. If it is allowed together with the option to add all items, "The origin bill has special offers, …" appears, and on Return All, for each material that has an offer, if the warning for returning offers is on, a notice points you to the Special Offers... button.

Messages​

MessageWhy it appearsWhat to do
"No bill found with this number"Read... with a form and number that no bill of your branches has.Check the form, the number and the branch.
"Make sure you select the previous year file in Options"You chose Return from Prior Year and no file is set.Set the file in the return options.
"Cannot return! The sales bill dated "…" is out of allowable time to be returned"The bill is older than the allowed period.You cannot return from it.
"The bill has no materials to return"Nothing in the bill can be returned.
"The invoice has been fully returned, no quantity to return"All the quantities and gifts were returned.
"Some materials in the bill cannot be returned! You have no authority over them but you can return the remaining materials in the bill"The bill has materials you have no authority over.Continue with the other materials.
"There are materials not found in the current file cannot be returned, but you can return the remaining materials in the bill"In a return from the prior year: materials that are not in the current file.Continue with the other materials.
"Cannot return! The warehouse of bill not related to the branch selected in the Return from Bill" and the same for the currency, cost center and material. The customer and the client account give one message: "Cannot return! The client account of bill not related to the branch selected in the Return from Bill"On Add: the chosen branch is not related to this data.Choose the right branch or change the data.
"Cannot return! Client account must be related to the account selected in bill form"The customer of the return is not under the main account of the return form.Choose the right customer.
"Cannot return! return bill date must be between origin bill date and today"The date is before the date of the original bill.Correct the date.
"The cost center is forced in the selected Return Invoice form, make sure you select a cost center"The return form forces a cost center and you did not choose one.Choose the cost center.
"The cost center not found in the current file, do you want to continue?"In a return from the prior year: the cost center of the bill is not in the current file.Ok continues without a cost center; Cancel stops the reading.
"The origin bill has been paid, so cannot link the return bill."After Add: Pay in the return is cash, or nothing is left of the original bill.No action is needed.
"The selected returns invoice has a different source code, cannot continue."When modifying: the return came from another copy source.Modify it from its source.

The other messages of saving, modifying and deleting are explained in Bill.

This page applies to alameen ERP 10, version 10.1.79.764.