Package org.openbravo.costing
Class CostingServer
- java.lang.Object
-
- org.openbravo.costing.CostingServer
-
public class CostingServer extends Object
- Author:
- gorkaion
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CostingServer.TrxType
Transaction types implemented on the cost engine.
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Logger
log4j
-
Constructor Summary
Constructors Constructor Description CostingServer(MaterialTransaction transaction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Currency
getCostCurrency()
CostingRule
getCostingRule()
Organization
getOrganization()
MaterialTransaction
getTransaction()
BigDecimal
getTransactionCost()
void
process()
Calculates and stores in the database the cost of the transaction.
-
-
-
Constructor Detail
-
CostingServer
public CostingServer(MaterialTransaction transaction)
-
-
Method Detail
-
process
public void process()
Calculates and stores in the database the cost of the transaction.
-
getTransactionCost
public BigDecimal getTransactionCost()
-
getCostCurrency
public Currency getCostCurrency()
-
getOrganization
public Organization getOrganization()
-
getCostingRule
public CostingRule getCostingRule()
-
getTransaction
public MaterialTransaction getTransaction()
-
-