Skip to main content

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​

FieldDescriptionRequiredValues and rules
Cost AccountThe 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.YesAny account type. Without it, warnings appear (see Messages).
Cost centerLimits entries and bills to a cost center.NoEmpty: 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.
FromStart of the period.YesDefault: the start date of the financial period.
ToEnd of the period.YesDefault: 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 PriceTreats the costs as the whole production cost, not as an addition to the current average price.NoDefault: cleared.
Debit, Credit and BalanceThe 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:

OptionSpreads in proportion to
By Produced Quantity (default)The quantity produced of each material.
By Produced Materials ValueThe produced quantity x the current average price in the material card.
By One of Material FieldsThe 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.

note

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:

FieldDescriptionRequiredValues and rules
Output Bill TypeThe bill type that takes the stock out at its average price.YesTypes 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 DateThe date of that bill.YesDefault: today.
Input Bill TypeThe bill type that brings the stock in at its actual price.YesTypes with the input property that you may browse and edit. The first is preselected.
Input Bill DateThe date of that bill.YesDefault: today.
WarehouseThe warehouse of both bills. The stock is counted from it.Yes, to generateChoose 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 AccountThe account the program puts as the customer account in both bills.Yes, to generateAny 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.

ColumnMeaning
Material Code and MaterialThe material.
CombinationShown if your licence includes material dimensions and the option to show it is on in the manufacturing options.
Production QuantityThe total line quantity of the bills of the ticked types, without bonus quantities (see the note on the cost center).
AverageThe material's average price in its card at the To date.
Destribution FieldThe material's distribution value (quantity, quantity x price, or quantity x the chosen field). The program spells the heading this way.
Destribution PercentageThe material's share of the total distribution field, as a percentage.
Material PortionDistribution percentage x Balance.
Unit PortionMaterial Portion / Production Quantity, or zero if the quantity is zero.
Actual PriceWithout ignoring: Unit Portion + Average. With Ignore Current Cost Price: Unit Portion only.
Price DeviationWithout ignoring: Unit Portion. With ignoring: Actual Price - Average.
InventoryThe total of posted bills, all dates, for the stores of Warehouse (all stores if it is empty).

Buttons​

ButtonWhat it does
CalculateFills the amounts and the list. Afterwards Generate Bill is enabled.
Generate BillGenerates 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.
PreviewOpens the report with the window's values.
ExportExports the report to a file.
CloseCloses 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:

  1. It checks Warehouse and Deviation Account. If one is missing, the matching message appears.
  2. 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".
  3. 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.
  4. 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.
  5. It posts each bill for quantities and always generates its entry, even if automatic entries are off in the bill type.
warning

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.

MaterialDistribution percentageMaterial portionUnit portionActual pricePrice deviation
A66.67%2002122
B33.33%1002142

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​

MessageWhy it appearsWhat to do
Kindly select cost centerCost 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 specifiedNo 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 parametersNo 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 ZeroA material has a zero distribution percentage after Calculate.Change the distribution option, or correct the field value in the material card.
Please select warehouseWarehouse is empty at Generate Bill.Choose the warehouse.
Please Select Deviation AccountDeviation Account is empty at Generate Bill.Choose the account.
Invoices cannot be generated !There is a negative quanity within inventoryA material has negative stock.Fix the stock and try again.
No Deviation in StockSaving, 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 successfullyThe generation finished.Review the two bills.
Error In Stored Proc: …The database rejected the query.Send the text to technical support.

This page applies to alameen ERP 10, version 10.1.79.764.