<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=Costing_Server</id>
	<title>Costing Server - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=Costing_Server"/>
	<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=Costing_Server&amp;action=history"/>
	<updated>2026-04-06T13:52:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.infinite-erp.co.id/index.php?title=Costing_Server&amp;diff=1242&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;{{BackToAlias|ManualDoc:Common_OBConcepts&amp;Processes|Common Concepts &amp; Processes}}  == Introduction ==  This document describes how the costing server process calculates the co...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=Costing_Server&amp;diff=1242&amp;oldid=prev"/>
		<updated>2021-11-17T01:28:49Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{BackToAlias|ManualDoc:Common_OBConcepts&amp;amp;Processes|Common Concepts &amp;amp; Processes}}  == Introduction ==  This document describes how the costing server process calculates the co...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{BackToAlias|ManualDoc:Common_OBConcepts&amp;amp;Processes|Common Concepts &amp;amp; Processes}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This document describes how the costing server process calculates the cost of the transactions booked in Openbravo.&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;'''Costing Server'''&amp;quot; process is the new &amp;quot;''Costing Engine''&amp;quot; process in charge of calculating the cost of the material transactions.&lt;br /&gt;
&lt;br /&gt;
This process is used by the [[Process_Request#Costing_Background_Process|Costing Background Process]] as it searches for material or goods transactions such as &amp;quot;Goods Receipts&amp;quot; or &amp;quot;Goods Movements&amp;quot; for which its cost has not been calculated yet and get it calculated by using the &amp;quot;Costing Server&amp;quot; process.&lt;br /&gt;
&lt;br /&gt;
== Upgrading from previous releases ==&lt;br /&gt;
&lt;br /&gt;
The Costing Server process is included in Openbravo 3 starting from MP13 as part of the new Openbravo costing engine.&lt;br /&gt;
&lt;br /&gt;
Instances that upgrade from previous Openbravo releases can migrate their costs to the new costing engine. Costing migration is not mandatory but it is highly recommended. &lt;br /&gt;
&lt;br /&gt;
You can find detailed information about the migration process in the [[Costing_Migration_Process|Costing Migration Process]] document.&lt;br /&gt;
&lt;br /&gt;
== Costs Calculation ==&lt;br /&gt;
&lt;br /&gt;
A cost is calculated for each material transaction by taking into account:&lt;br /&gt;
* the [[Organization|organization]] or legal entity it belongs to &lt;br /&gt;
* its &amp;quot;'''transaction process'''&amp;quot; date&lt;br /&gt;
* and its &amp;quot;'''price'''&amp;quot; if any&lt;br /&gt;
&lt;br /&gt;
Note that costs are calculated in the Organization's currency.&lt;br /&gt;
&lt;br /&gt;
The '''costing algorithm''' and the '''costing dimensions''' to use for calculating the cost of the products can be configured in a [[Costing_Rules|Costing Rule]] which needs to be assigned to a &amp;quot;legal entity&amp;quot; type organization.&lt;br /&gt;
&lt;br /&gt;
It is possible to use different [[Costing_Algorithm|Costing Algorithms]] while calculating the cost:&lt;br /&gt;
* Openbravo ships '''Average''' and '''Standard''' costing algorithms.&lt;br /&gt;
* Other algorithms such as '''FIFO''' and '''LIFO''' can be implemented by ''Extension Modules''.&lt;br /&gt;
&lt;br /&gt;
{{(!) | Manufacturing cost calculation through the Costing Server process is not fully implemented yet. The cost of the products set to be used in production are always calculated using the &amp;quot;Average&amp;quot; costing algorithm, besides the cost is calculated at client level. All of that regardless the Costing Rule in use.&lt;br /&gt;
&lt;br /&gt;
Since Openbravo 3.0 '''MP20''' the Standard Algorithm has been modified to better support the Manufacturing Costs and it is not overwritten to use the Average algorithm, although there are some shortcomings yet to be resolved}}&lt;br /&gt;
&lt;br /&gt;
=== Cost Calculation Methods ===&lt;br /&gt;
&lt;br /&gt;
A default method is used to calculate the cost of a transaction which can be overwritten by the costing algorithm used.&lt;br /&gt;
&lt;br /&gt;
Overall there are two methods of calculating costs, the first one applies to &amp;quot;input&amp;quot; transactions such as a &amp;quot;Goods Receipt&amp;quot; and the second one applies to &amp;quot;output&amp;quot; transactions such as a &amp;quot;Goods Shipment&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
==== Input transactions====&lt;br /&gt;
&lt;br /&gt;
Input transactions can be cost calculated&lt;br /&gt;
* by using the &amp;quot;'''product's purchase price'''&amp;quot; &lt;br /&gt;
* or by using the &amp;quot;'''default standard cost'''&amp;quot; defined in the [[Product#Costing|Costing]] tab of the &amp;quot;Product&amp;quot; window in case of calculating product costs by using an &amp;quot;'''Standard'''&amp;quot; costing rule/algorithm.&lt;br /&gt;
&lt;br /&gt;
The '''Default Cost''' method is used in those cases when '''it is not possible to get the price of a transaction''' for which its cost needs to be calculated.&amp;lt;br&amp;gt;&lt;br /&gt;
This method takes into account:&lt;br /&gt;
* either the &amp;quot;'''product's purchase price list'''&amp;quot; (or the vendor's purchase price list if the transaction has a business partner related)&lt;br /&gt;
* or the &amp;quot;'''default standard cost'''&amp;quot; defined in the  [[Product#Costing|Costing]] tab of the Product, note that is the &amp;quot;Standard&amp;quot; cost defined and not the &amp;quot;Legacy Standard Cost&amp;quot; as this one belongs to the &amp;quot;old&amp;quot; engine:&lt;br /&gt;
:* If both values are available this method uses the newer one. &lt;br /&gt;
:* If none is available a ''&amp;quot;Not possible to calculate cost&amp;quot;'' error is thrown.&lt;br /&gt;
:* In case of calculating product costs by using an &amp;quot;Average&amp;quot; costing rule:&lt;br /&gt;
:**the average algorithm overrides the behavior of the &amp;quot;Default Cost&amp;quot; method prioritizing the use of the current &amp;quot;Average Cost&amp;quot; if any&amp;lt;br&amp;gt;instead of using the product's price list or the standard cost of the product.&lt;br /&gt;
&lt;br /&gt;
Input transactions are:&lt;br /&gt;
&lt;br /&gt;
* '''Goods Receipt''' : the cost of a goods receipt is calculated based on the related purchase order price of the goods, excluding taxes.&amp;lt;br&amp;gt;If there is no a related purchase order price the costing server process uses the newer of the following three values:&lt;br /&gt;
** the last purchase order price of the receipt's vendor for the product.&lt;br /&gt;
** the purchase price of the product in the receipt's vendor price list.&lt;br /&gt;
** or the default standard cost of the product.&lt;br /&gt;
&lt;br /&gt;
* '''Returned Shipment''' or '''Canceled Shipment''': the cost of a goods shipment being returned or just cancelled is calculated based on the cost calculated for the original goods shipment.&lt;br /&gt;
&lt;br /&gt;
* '''Negative Shipment''' : the cost is calculated based on the ''Default Cost'' method as a negative shipment can be created by just entering negative goods quantity lines in a goods shipment.&lt;br /&gt;
&lt;br /&gt;
* '''Physical inventory which increases the stock''' :  if a unit cost is defined in the [[Physical_Inventory#Lines|Physical Inventory lines]] the total cost amount is calculated using that cost multiplied by the increased stock quantity.&amp;lt;br&amp;gt;If there is no cost defined the [[Costing_Server#Cost_Calculation_Methods|Default Cost]] method is used instead.&lt;br /&gt;
&lt;br /&gt;
* '''Internal movement to''' : the cost is the same as the &amp;quot;Internal Movement From&amp;quot; transaction calculated cost&lt;br /&gt;
&lt;br /&gt;
* '''Produced BOM Production product''': the cost is the sum of the transaction costs of each part used to produce the BOM product.&lt;br /&gt;
&lt;br /&gt;
* '''Manufacturing Produced product''' : it gets the cost from the [[Work_Effort|Work Effort]] which is calculated using the existing manufacturing [[Production_Costs|cost procedures]].&lt;br /&gt;
&lt;br /&gt;
* '''Manufacturing Consumed product''' : it gets the cost from the [[Work_Effort|Work Effort]] which is calculated using the existing manufacturing [[Production_Costs|cost procedures]].&lt;br /&gt;
&lt;br /&gt;
* '''Canceled Internal consumption''' : the cost is calculated based on the cost of the internal consumption transaction being canceled. &lt;br /&gt;
&lt;br /&gt;
* '''Negative Internal consumption''' : the cost is calculated based on the ''Default Cost'' method.&lt;br /&gt;
&lt;br /&gt;
====Output transactions====&lt;br /&gt;
&lt;br /&gt;
Output transactions are cost calculated depending on the costing algorithm used.&amp;lt;br&amp;gt;For instance:&lt;br /&gt;
&lt;br /&gt;
* In case of calculating costs by using an &amp;quot;'''Average'''&amp;quot; costing rule the cost of a transaction is the '''average cost calculated''' for the product multiplied by the '''movement quantity''' of the transaction.&lt;br /&gt;
* In case of calculating costs by using an &amp;quot;'''Standard'''&amp;quot; costing rule the cost of a transaction is the '''default standard cost''' of the product multiplied by the '''movement quantity''' of the transaction.&lt;br /&gt;
&lt;br /&gt;
Output transactions are:&lt;br /&gt;
* '''Goods Shipment'''&lt;br /&gt;
&lt;br /&gt;
* '''Negative Receipt'''&lt;br /&gt;
&lt;br /&gt;
* '''Internal Movement from'''&lt;br /&gt;
&lt;br /&gt;
* '''Used BOM Production part'''&lt;br /&gt;
&lt;br /&gt;
* '''Physical inventory which decreases the stock'''&lt;br /&gt;
&lt;br /&gt;
* '''Internal Consumption'''&lt;br /&gt;
 &lt;br /&gt;
* '''Returned Receipt''' or '''Canceled Receipt''':  regardless this can be considered an output type transaction, the cost of a goods receipt being returned or canceled is calculated based on the cost calculated for the original goods receipt.&lt;br /&gt;
&lt;br /&gt;
== Costs Review  ==&lt;br /&gt;
&lt;br /&gt;
Once costs are calculated are stored in the corresponding material transaction with the organization's currency and the costing algorithm used.&amp;lt;br&amp;gt;That cost is used by the Accounting Server and other processes and reports that uses the costs as a source of data.&lt;br /&gt;
&lt;br /&gt;
There are several reports and windows where cost can be checked or can be used:&lt;br /&gt;
&lt;br /&gt;
* the [[Product#Transactions|Transaction]] tab of the &amp;quot;'''Product'''&amp;quot; window:&lt;br /&gt;
** In this tab it is possible to check if the cost of each product transaction has been calculated and if calculated it is possible to check its cost.&lt;br /&gt;
* the [[Product#Transactions_Cost|Transaction Cost]] tab of the &amp;quot;'''Product'''&amp;quot; window:&lt;br /&gt;
** In this tab it is possible to review all the cost related transaction automatically created by the costing background process, those transactions can be:&lt;br /&gt;
*** purely '''cost calculation''' related ones, these ones have &amp;quot;Cost Adjustment Line&amp;quot; column empty&lt;br /&gt;
*** or '''cost adjustments''' related ones, these ones are cost adjustments transaction with the &amp;quot;Cost Adjustment Line&amp;quot; column filled in.&lt;br /&gt;
* the [[Product#Costing|Costing]] tab of the &amp;quot;'''Product'''&amp;quot; window: &lt;br /&gt;
** this tab stores each calculated cost and the date range when the calculated cost is valid whenever the &amp;quot;Average&amp;quot; or the &amp;quot;Standard&amp;quot; costing algorithms have been used.&lt;br /&gt;
* the [[Valued_Stock_Report|Valued Stock Report]]: &lt;br /&gt;
** the costs shown by this report are the ones calculated by the new costing engine.&lt;br /&gt;
* the [[Sales_Invoice_Dimensional_Report|Sales Invoice Dimensional Report]]: &lt;br /&gt;
** the margins shown by this report are the ones calculated according to the new way of calculating the costs.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:User_Guide]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>