Package org.openbravo.costing
Class StandardAlgorithm
- java.lang.Object
-
- org.openbravo.costing.CostingAlgorithm
-
- org.openbravo.costing.StandardAlgorithm
-
public class StandardAlgorithm extends CostingAlgorithm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openbravo.costing.CostingAlgorithm
CostingAlgorithm.CostDimension
-
-
Field Summary
-
Fields inherited from class org.openbravo.costing.CostingAlgorithm
costCurrency, costDimensions, costingRule, costOrg, log4j, transaction, trxType
-
-
Constructor Summary
Constructors Constructor Description StandardAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BigDecimal
getOutgoingTransactionCost()
Calculates the total cost amount of an outgoing transaction.BigDecimal
getTransactionCost()
Based on the transaction type, calls the corresponding method to calculate and return the total cost amount of the transaction.-
Methods inherited from class org.openbravo.costing.CostingAlgorithm
getBOMPartCost, getBOMProductCost, getCostCurrency, getDefaultCost, getInternalConsCost, getInternalConsNegativeCost, getInternalConsVoidCost, getIntMovementFromCost, getIntMovementToCost, getInventoryClosingCost, getInventoryDecreaseCost, getInventoryIncreaseCost, getInventoryOpeningCost, getOriginalInOutLineCost, getPriceListCost, getReceiptCost, getReceiptDefaultCost, getReceiptNegativeCost, getReceiptReturnCost, getReceiptVoidCost, getReturnedInOutLineCost, getShipmentCost, getShipmentNegativeCost, getShipmentReturnCost, getShipmentVoidCost, getTransactionStandardCost, getZeroMovementQtyCost, init
-
-
-
-
Method Detail
-
getTransactionCost
public BigDecimal getTransactionCost()
Description copied from class:CostingAlgorithm
Based on the transaction type, calls the corresponding method to calculate and return the total cost amount of the transaction.- Overrides:
getTransactionCost
in classCostingAlgorithm
- Returns:
- the total cost amount of the transaction.
-
getOutgoingTransactionCost
protected BigDecimal getOutgoingTransactionCost()
Description copied from class:CostingAlgorithm
Calculates the total cost amount of an outgoing transaction.- Specified by:
getOutgoingTransactionCost
in classCostingAlgorithm
-
-