Finished Goods Deviation Processing by Invoices
This window takes the balance of the Cost Account up to To and spreads it over the finished goods that the ready-goods input bills produced. You see each material's actual price and how far it is from its average. You can then click Generate Bill: the program creates an output bill at the current average price and an input bill at the actual price, for the stock you hold now, posts both and generates their entries. Of the three deviation tools, this is the only window that generates bills. For the working steps: Process manufacturing deviations.
Opening the window
- From the ribbon: Manufacturing > Deviation Processing > Finished Goods Deviation Processing by Invoices.
- The command appears if your licence includes the manufacturing feature and you have the Finished Goods Deviation Processing by Invoices permission in Users Management > Operations.
Conditions
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Cost Account | The account that collected the manufacturing costs. The program totals the debit and credit of the account and its sub-accounts from the first entry up to To; From is not used here. If the account has a balance reconciliation dated inside the period, it starts the day after the last one. Unposted entries count too. | Yes | Any account type. Without it, warnings appear (see Messages). |
| Cost center | Limits entries and bills to a cost center. | No | Empty: all centers. With a center chosen, the source of the quantities changes (see the note after the table). The field is hidden if your licence does not include cost centers. |
| From | Start of the period. | Yes | Default: the start date of the financial period. |
| To | End of the period. | Yes | Default: today. |
| Ready Products Input Type (list) | The input bill types whose quantities count as produced. | Yes (at least one) | Your own types first, then the standard ones, including Manufactured Materials Input if you have the permission to browse manufacturing. All are ticked at the start. |
| Ignore Current Cost Price | Treats the costs as the whole production cost, not as an addition to the current average price. | No | Default: cleared. |
| Debit, Credit and Balance | The debit and credit of Cost Account, and their difference, after Calculate. | — | Read-only. Balance = debit - credit. |
Cost Distribution Options. These choose how the Balance is spread over the materials:
| Option | Spreads in proportion to |
|---|---|
| By Produced Quantity (default) | The quantity produced of each material. |
| By Produced Materials Value | The produced quantity x the current average price in the material card. |
| By One of Material Fields | The produced quantity x the value you pick in the box beside it. The box is enabled only with this option. |
The box items are Wholesale, Semi wholesale, Distributor, Export, Retail and Consumer (the first-unit price in the material card), then Size, Source, Location, Manufacturer, Color, Provenance, Type and Model. The last eight are text fields of the material card. Type numbers in them: if a value is not a number, an error message with the query appears. An empty field counts as zero.
The program reads produced quantities from posted bills of the ticked types dated in the period. But a bill that carries a cost center (in its header or on a line) counts whatever its posting and date: any center when the field is empty, the chosen center and its sub-centers when you choose one. With a center chosen, bills without a center do not count.
Invoice Generation Options. These are used by Generate Bill:
| Field | Description | Required | Values and rules |
|---|---|---|---|
| Output Bill Type | The bill type that takes the stock out at its average price. | Yes | Types that have the output property and whose kind is Output, that you may browse and edit, and that are not the semi-finished output type set in the manufacturing options. The first is preselected. |
| Out Bill Date | The date of that bill. | Yes | Default: today. |
| Input Bill Type | The bill type that brings the stock in at its actual price. | Yes | Types with the input property that you may browse and edit. The first is preselected. |
| Input Bill Date | The date of that bill. | Yes | Default: today. |
| Warehouse | The warehouse of both bills. The stock is counted from it. | Yes, to generate | Choose it before Calculate: the Inventory column and the quantities of both bills come from it. If you change it after calculating, click Calculate again, because the bills take the new warehouse with the old warehouse's quantities. Empty at Calculate: all warehouses. |
| Deviation Account | The account the program puts as the customer account in both bills. | Yes, to generate | Any account the bill accepts. |
List of materials
The list is read-only. Right-click the row-number cell to open the menu: Material Card, Material Movement and Total Materials Movement. They act on the first selected row, or the current row. The copy and edit commands are not available in this list. For lists in general: Grids.
| Column | Meaning |
|---|---|
| Material Code and Material | The material. |
| Combination | Shown if your licence includes material dimensions and the option to show it is on in the manufacturing options. |
| Production Quantity | The total line quantity of the bills of the ticked types, without bonus quantities (see the note on the cost center). |
| Average | The material's average price in its card at the To date. |
| Destribution Field | The material's distribution value (quantity, quantity x price, or quantity x the chosen field). The program spells the heading this way. |
| Destribution Percentage | The material's share of the total distribution field, as a percentage. |
| Material Portion | Distribution percentage x Balance. |
| Unit Portion | Material Portion / Production Quantity, or zero if the quantity is zero. |
| Actual Price | Without ignoring: Unit Portion + Average. With Ignore Current Cost Price: Unit Portion only. |
| Price Deviation | Without ignoring: Unit Portion. With ignoring: Actual Price - Average. |
| Inventory | The total of posted bills, all dates, for the stores of Warehouse (all stores if it is empty). |
Buttons
| Button | What it does |
|---|---|
| Calculate | Fills the amounts and the list. Afterwards Generate Bill is enabled. |
| Generate Bill | Generates the output bill and the input bill (see Generating the bills). It is disabled when the window opens, after any change to the conditions, and after a successful generation. |
| Update Prices... | Saves each row's Actual Price in the material card, with the same price window as in Manufactured Materials Cost Deviation. |
| Preview | Opens the report with the window's values. |
| Export | Exports the report to a file. |
| Close | Closes the window. |
Generate Bill and Update Prices... are disabled after you change Cost Account, the dates, Cost center, the distribution option, the list or Ignore Current Cost Price, so click Calculate again. Changing Warehouse does not disable them: click Calculate again after changing it. Changing the field in the box beside By One of Material Fields does not disable them either, so click Calculate yourself.
Generating the bills
When you click Generate Bill, the program works in one transaction:
- It checks Warehouse and Deviation Account. If one is missing, the matching message appears.
- If any material in the list has negative stock, it rolls everything back and shows "Invoices cannot be generated !There is a negative quanity within inventory".
- It creates the output bill with Output Bill Type: customer account Deviation Account, store Warehouse, the chosen cost center, cash payment, the program's default currency. It has a line for each material whose price deviation, stock, produced quantity and average price are not zero, with the stock as quantity and the average as price.
- It creates the input bill with Input Bill Type in the same way, with the stock as quantity and Actual Price as price. A material goes into the input bill when its price deviation, stock, produced quantity and actual price are not zero, even if its average is zero.
- It posts each bill for quantities and always generates its entry, even if automatic entries are off in the bill type.
A material with a zero average goes into the input bill only, so its quantity rises. A material with a zero actual price goes into the output bill only, so its quantity drops. Check the Average and Actual Price columns before Generate Bill.
On success you see "Bill generated successfully". If saving, posting or generating an entry fails, you see "No Deviation in Stock".
Effect. The stock value changes by the quantity x the price deviation. The accounts follow the settings of the two bill types. The material's average cost price changes only if the input type has Affects Cost Price. Earlier bills are not changed.
Undo. There is no tool. Delete the two bills in the bill window.
Example
The cost account has debit 300 and credit 0, so the balance is 300 (the balance up to To). The distribution is by produced quantity. Material A: produced 100, average 10. Material B: produced 50, average 12.
| Material | Distribution percentage | Material portion | Unit portion | Actual price | Price deviation |
|---|---|---|---|---|---|
| A | 66.67% | 200 | 2 | 12 | 2 |
| B | 33.33% | 100 | 2 | 14 | 2 |
With Ignore Current Cost Price ticked, the actual price is 2 for both and the price deviation is -8 and -10. Use it only if the cost account holds the whole production cost.
If the stock of A is 80 and of B is 50: the output bill is 80 x 10 + 50 x 12 = 1,400, the input bill is 80 x 12 + 50 x 14 = 1,660, and the difference is 260 = 80 x 2 + 50 x 2. Only the stock you hold is revalued. The quantity already sold (20 of A) carries its old cost and is not in the two bills. With the usual bill type settings (output debits the customer account, input credits it), the stock rises by 260 and the Deviation Account carries a net credit of 260.
Messages
| Message | Why it appears | What to do |
|---|---|---|
| Kindly select cost center | Cost Account is empty at Calculate. This is a warning only: the program continues. The English wording says "cost center", but the field is the cost account. | Choose the account and click Calculate again. |
| One input Form must at least be specified | No type is ticked in the list. The list stays empty and the two buttons are enabled. | Tick a type and click Calculate again. Debit, Credit and Balance keep the previous values; do not generate bills before a successful calculation. |
| No results match the required report's parameters | No materials in the period. | Change the conditions. Debit, Credit and Balance keep the previous values; do not generate bills before a successful calculation. |
| Some materials haven't been costed because distribution percent equals to Zero | A material has a zero distribution percentage after Calculate. | Change the distribution option, or correct the field value in the material card. |
| Please select warehouse | Warehouse is empty at Generate Bill. | Choose the warehouse. |
| Please Select Deviation Account | Deviation Account is empty at Generate Bill. | Choose the account. |
| Invoices cannot be generated !There is a negative quanity within inventory | A material has negative stock. | Fix the stock and try again. |
| No Deviation in Stock | Saving, posting or generating the entry of a bill failed, or no line has a deviation. | Check the bill types, the warehouse and your permissions. |
| Bill generated successfully | The generation finished. | Review the two bills. |
| Error In Stored Proc: … | The database rejected the query. | Send the text to technical support. |
Related topics
This page applies to alameen ERP 10, version 10.1.79.764.