Skip to main content

How bills, forms and posting work

A bill in alameen ERP 10 records a movement of materials between a warehouse and another party (a customer or a supplier), and it can generate an accounting entry. What the bill does is not set in the bill itself but in its form: the form says which columns show, which accounts are used, and whether the bill posts to warehouses and to accounts by itself.

The form and the bill​

A form is a template that the administrator defines in Invoice Forms. Each form has a name, an abbreviation and a type, and it shows as a button on the Invoices tab of the ribbon. When you open a new bill from this button, it takes its columns, default values, accounts and options from the form. You can define several forms of the same type, such as "Cash sale" and "Credit sale", each with its own accounts and options.

The six types of a normal bill form:

TypeDirection of materialsWhat it stands for
PurchaseInA purchase from a supplier.
SaleOutA sale to a customer.
Purchase ReturnOutMaterials sent back to the supplier.
Sales ReturnsInMaterials that the customer returned.
InputInMaterials entered into a warehouse without a trade party.
OutputOutMaterials taken out of a warehouse without a trade party.

The program takes the direction from the type: Purchase, Sales Returns and Input are "in", and the rest are "out". When you change the type in the form window, the program sets the options for price, profit and posting effects to suit the new type (see Properties).

Besides normal forms there are other forms with their own windows: standard bills (opening and closing inventory), transpositions, assembly and disassembly, and shipping. You find them in the form lists, and the standard, transposition, assembly and disassembly and shipping pages explain them.

The other party​

The party of a purchase bill is a supplier and of a sale bill a customer. Both are cards in the customer card and are linked to an account in the chart of accounts. A form can limit the choice of customers to a main account and its sub-accounts, can force the choice of a customer, and can lock the customer account. For cash bills the form holds a cash account, which the program uses when you do not set another account for the bill.

Effect on warehouses​

When a bill is posted to the warehouses, the balance of each material changes:

  • In an "in" bill the quantity grows by the line quantity plus the gifts quantity, and in an "out" bill it falls by the same amount.
  • If the form affects the cost price (purchase and purchase return by default), the bill changes the weighted average cost: the new value is the current stock value + quantity × (unit price + addition × its effect on cost − discount × its effect on cost), divided by the new quantity.
  • If the form affects the last purchase price, the last purchase price of the material is set to the unit price. A form that affects the customer price updates the last price recorded for the material at this customer.
  • The profit of each line of a sale is calculated at posting: quantity × (unit price − average cost − discount + addition, according to the discount and addition options), minus the average cost of the gifts.

If you choose Doesn't Post to Warehouses for the form, the bill is saved without changing quantities and has no posting button.

Effect on accounts: the entry​

When the bill is saved, and the form Generates Entry Automatically (and does not have Doesn't Generate Entry), the program builds an entry from the accounts of the form:

LineIn an "in" bill (purchase)In an "out" bill (sale)
Materials accountDebit with the value of the linesCredit with the value of the lines
Discounts accountCredit with the discountDebit with the discount
Additions accountDebit with the additionCredit with the addition
Tax accountDebit with the value addedCredit with the value added
Customer or supplier account (or the cash account of the form when the bill has no account)Credit with the netDebit with the net

A form that books the cost of stock (Consider Perpetual Inventory) adds two lines: in an "out" bill the cost account is debited and the stock account credited with quantity × the cost price chosen in the form, and in an "in" bill the opposite. Gifts have two accounts in the form (Gifts and Gifts Contra).

Some form options change the shape of the entry without changing its totals:

  • Brief Entry: merges the lines of each account into one line with the net movement and writes the bill notes on the lines.
  • Collect customer account in entry: merges only the lines of the customer account. The other lines stay one for each material.
  • Use the client's account in cash invoice: in a cash bill that names a customer, it adds two opposite lines to the customer account so that the customer statement shows the sale and the payment.
  • Generate Counter Account Automatically and the Cost Center belongs to ... options set the contra account and the cost center of the entry lines.

The entry is created unposted. It becomes posted if you choose Auto Posting to Accounts in the form.

Posting​

A bill has two independent postings:

  • Posting to warehouses: changes quantities and cost as above. It is set by Auto Post to Warehouses and Doesn't Post to Warehouses.
  • Posting to accounts: makes the bill entry posted in the books. It is set by Generates Entry Automatically and Auto Posting to Accounts.

What happens after you save a bill: the program saves the bill, posts it to the warehouses if the form posts by itself or the bill was already posted, calculates its profits if it was not posted and the form affects profits, and then generates the entry if the form generates it, or if the bill already had one. Modify also posts again a bill that was posted by hand, and generates its entry again when it had one, even if the form does neither automatically. If the form has required approvers, the program only saves the bill, and does not post or generate the entry until the approvals are complete (see Require approvals on a form).

Payment and linked payments​

You choose the payment method in the bill: cash, credit or commercial papers. A form with Cash Bill starts a new bill as cash and with the cash account, and other forms start as credit. You can record a first payment with the bill, and the entry then holds its lines against the payment account. Later payments (receipt and payment vouchers) are linked to the bill from the Link Payments window; see also Link payments to bills. If you choose Use Payment Terms in the form, the bill gets a due date and an early payment discount from the Payment Terms page.

Returns​

A return is a bill of the type Purchase Return or Sales Returns. You define a separate form for each type, and you can set the default return form of a purchase or sale form on the Default Values page. The program offers it when you create a return from an original bill in Return from Bill.

Example: a purchase, then a sale​

Setup: a purchase form that affects the cost price and whose discounts affect it, and a sale form with Consider Perpetual Inventory and the cost price "Cost". No brief entry and no tax. The material "Rice" has a zero balance.

  1. A credit purchase from "Supplier A": 100 bags at 5.00, line discount 50.00.
AccountDebitCredit
Materials (purchases)500.00
Discounts50.00
Supplier A500.00
Supplier A (line discount)50.00
Total550.00550.00

The net of the supplier is credit 450.00. In the warehouse: 100 bags and an average cost of 100 × (5.00 − 0.50) ÷ 100 = 4.50.

  1. A credit sale to "Customer B": 40 bags at 8.00, line discount 20.00.
AccountDebitCredit
Customer B320.00
Materials (sales)320.00
Discounts20.00
Customer B (line discount)20.00
Cost180.00
Stock180.00
Total520.00520.00

The net of the customer is debit 300.00. In the warehouse: 60 bags and an unchanged average cost of 4.50. The profit of the bill is 40 × (8.00 − 4.50 − 0.50) = 120.00, which equals 320.00 − 20.00 − 180.00.

This page applies to alameen ERP 10, version 10.1.79.764.