Tue, 20 Sep 2016 19:40:33 +0200Related to issue 34190: Return costing cumulated values if trx is costing trx
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Tue, 20 Sep 2016 19:40:33 +0200] rev 30939
Related to issue 34190: Return costing cumulated values if trx is costing trx

Return costing cumulated values if trx is costing trx in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate.

Tue, 20 Sep 2016 19:01:51 +0200Related to issue 34190: Avoid API change
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Tue, 20 Sep 2016 19:01:51 +0200] rev 30938
Related to issue 34190: Avoid API change

Add cumcost not null restriction and retrieve unique result in AverageAlgorithm.getLastCumulatedCosting.
Avoid API change by calculating correct date outside the method and removing unneeded transaction parameter in CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock.
Use AverageAlgorithm.getLastCumulatedCosting also in CostAdjustmentUtils.getValuedStockOnTransactionDate.
Call to AverageAlgorithm.getLastCumulatedCosting with movementdate or trxprocessdate depending on areBackdatedTrxFixed in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate.

Tue, 20 Sep 2016 18:27:30 +0200Fixes issue 34190: Use getLastCumulatedCosting instead of getProductCost
David Miguelez <david.miguelez@openbravo.com> [Tue, 20 Sep 2016 18:27:30 +0200] rev 30937
Fixes issue 34190: Use getLastCumulatedCosting instead of getProductCost

Use AverageAlgorithm.getLastCumulatedCosting instead of AverageAlgorithm.getProductCost to retrieve last costing entry with cumulated values in CostAdjustmentUtils.getStockOnTransactionDate, CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock.

Mon, 19 Sep 2016 14:53:39 +0200Related to issue 34190: Rename movementdate and dateFrom parameters
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Mon, 19 Sep 2016 14:53:39 +0200] rev 30936
Related to issue 34190: Rename movementdate and dateFrom parameters

Rename movementdate and dateFrom parameters to cmvtdate and ctrxdate and use costing transaction trxprocessdate instead of costing starting date in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate.

Mon, 19 Sep 2016 13:55:25 +0200Fixes issue 34190: Add movementdate filter in CostAdjustmentUtils in case BDT
David Miguelez <david.miguelez@openbravo.com> [Mon, 19 Sep 2016 13:55:25 +0200] rev 30935
Fixes issue 34190: Add movementdate filter in CostAdjustmentUtils in case BDT

Add movementdate filter in case costing rule allows backdated transactions in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate.

Mon, 19 Sep 2016 14:53:39 +0200Related to issue 34190: Retrieve costing transaction only once
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Mon, 19 Sep 2016 14:53:39 +0200] rev 30934
Related to issue 34190: Retrieve costing transaction only once

Retrieve costing transaction only once in CostAdjustmentUtils.getStockOnTransactionDate, CostAdjustmentUtils.getValuedStockOnTransactionDate, CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock.

Mon, 19 Sep 2016 13:55:25 +0200Fixes issue 34190: Filter by costing transaction instead of current transaction
David Miguelez <david.miguelez@openbravo.com> [Mon, 19 Sep 2016 13:55:25 +0200] rev 30933
Fixes issue 34190: Filter by costing transaction instead of current transaction

Filter by costing transaction instead of current transaction when existsCumulatedStockOnTrxDate or existsCumulatedValuationOnTrxDate in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate.

Mon, 19 Sep 2016 14:53:39 +0200Related to issue 34190: Code review improvements
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Mon, 19 Sep 2016 14:53:39 +0200] rev 30932
Related to issue 34190: Code review improvements

Mon, 19 Sep 2016 13:55:25 +0200Fixes issue 34190: Wrong costs calculated with Backdated Transactions
David Miguelez <david.miguelez@openbravo.com> [Mon, 19 Sep 2016 13:55:25 +0200] rev 30931
Fixes issue 34190: Wrong costs calculated with Backdated Transactions

CumStock and CumCost will not be calculated in case there is a cost adjustment.

Fri, 21 Oct 2016 12:56:10 +0200Related to issue 34229: Code review improvements
Alvaro Ferraz <alvaro.ferraz@openbravo.com> [Fri, 21 Oct 2016 12:56:10 +0200] rev 30930
Related to issue 34229: Code review improvements

Throw error only if we are not reactivating payment in APRM_FIN_PMT_CHECK_TRG trigger.
Remove onSave event in FIN_PaymentEventListener.
Zero payment sufix will only be added in case we are processing the payment and it will only be removed in case we are reactivating the payment.