Notes |
|
(0091087)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: cf21a9def3dc1cc16f2f438074df49ef1148a1e5
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 19 13:55:25 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/cf21a9def3dc1cc16f2f438074df49ef1148a1e5 [^]
Fixes issue 34190: Wrong costs calculated with Backdated Transactions
CumStock and CumCost will not be calculated in case there is a cost adjustment.
---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
|
|
|
(0091088)
|
hgbot
|
2016-11-03 18:05
|
|
|
|
(0091089)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 71a1fe6b9b159574af2a77af029a8e7943ae2de9
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 19 13:55:25 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/71a1fe6b9b159574af2a77af029a8e7943ae2de9 [^]
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.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
---
|
|
|
(0091090)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 35252c7e55a982b38c641b9e90dbb0dd890c40fc
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Sep 19 14:53:39 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/35252c7e55a982b38c641b9e90dbb0dd890c40fc [^]
Related to issue 34190: Retrieve costing transaction only once
Retrieve costing transaction only once in CostAdjustmentUtils.getStockOnTransactionDate, CostAdjustmentUtils.getValuedStockOnTransactionDate, CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091091)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: b8af4c093690c45e55647882db5842d28e09d3a8
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Mon Sep 19 13:55:25 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/b8af4c093690c45e55647882db5842d28e09d3a8 [^]
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.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
---
|
|
|
(0091092)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: af56e816d02f850cea3f9445565d42f28b5944d5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Mon Sep 19 14:53:39 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/af56e816d02f850cea3f9445565d42f28b5944d5 [^]
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.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
---
|
|
|
(0091093)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: c017c5866f4e6f0280a9493461ab5c289d2e5462
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Sep 20 18:27:30 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/c017c5866f4e6f0280a9493461ab5c289d2e5462 [^]
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.
---
M src/org/openbravo/costing/AverageAlgorithm.java
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091094)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: dcd3e033506464df95fa652971a2a716e3d4b42e
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 20 19:01:51 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/dcd3e033506464df95fa652971a2a716e3d4b42e [^]
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.
---
M src/org/openbravo/costing/AverageAlgorithm.java
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091095)
|
hgbot
|
2016-11-03 18:05
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 79e5028c960227f56b0c0fd80aa8379fa68745f1
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 20 19:40:33 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/79e5028c960227f56b0c0fd80aa8379fa68745f1 [^]
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.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
---
|
|
|
(0091096)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 023ba4e8f5c45442acd55c97c995b5e91631f260
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Sep 20 19:49:10 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/023ba4e8f5c45442acd55c97c995b5e91631f260 [^]
Fixes issue 34190: Truncate costing rule fix backdated from date
Truncate costing rule fix backdated from date when compering it with transaction movement date in CostingServer.java.
---
M src/org/openbravo/costing/CostingServer.java
---
|
|
|
(0091097)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: b6df9f024c44318f74f6ff7ccb790291ff42e392
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 20 20:05:45 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/b6df9f024c44318f74f6ff7ccb790291ff42e392 [^]
Related to issue 34190: Truncate also transaction movement date
Truncate also transaction movement date when compering it with costing rule fix backdated from date in CostingServer.java.
Truncate also transaction movement date and costing rule fix backdated from date for costing rules with standard algorithm.
---
M src/org/openbravo/costing/CostingServer.java
---
|
|
|
(0091098)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 5980e6831112027cae0668a5c539ea9859432efd
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Sep 20 20:59:27 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/5980e6831112027cae0668a5c539ea9859432efd [^]
Fixes issue 34190: Revert negative adjustment if needed by BDT
Revert negative adjustment when a backdated transaction turns negative stock into positive stock.
---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
|
|
|
(0091099)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 005eedf23c081c590443ba93e4856821a331ac98
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 20 21:05:21 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/005eedf23c081c590443ba93e4856821a331ac98 [^]
Related to issue 34190: Move getNegativeStockAdjustments method
Move AverageCostAdjustment.getNegativeStockAdjustments method to the end of the file and add documentation.
---
M src/org/openbravo/costing/AverageCostAdjustment.java
---
|
|
|
(0091100)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 14f9669afa82b2d8a1dce0ed373ec4df43c37bbe
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Sep 20 20:29:15 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/14f9669afa82b2d8a1dce0ed373ec4df43c37bbe [^]
Fixes issue 34190: Fix rounding issue when cumulate stock has many decimals
Round cumcost and cumstock to currency cost precision before divide them to calculate cost to avoid rounding issues in CostAdjustmentUtils.getStockOnTransactionDate, CostAdjustmentUtils.getValuedStockOnTransactionDate, CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock.
---
M src/org/openbravo/costing/AverageAlgorithm.java
M src/org/openbravo/costing/AverageCostAdjustment.java
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingServer.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091101)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: eaec0d6e778a5438afbd31960372b11551c37672
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 20 20:53:11 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/eaec0d6e778a5438afbd31960372b11551c37672 [^]
Related to issue 34190: Send parameters in order
Send parameters in order, first currency and then costing, to CostAdjustmentUtils.getStockOnTransactionDate and CostingUtils.getCurrentStock.
Round also cumstock and cumcost when transaction is the costing transaction.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091102)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: c9ae7c0e2475aa7fa4b5d23e0534c8f557fb1714
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 20 22:20:32 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/c9ae7c0e2475aa7fa4b5d23e0534c8f557fb1714 [^]
Related to issue 34190: Avoid another API change
Use client or organization currency to round cumstock and cumcost, to avoid send currency to CostAdjustmentUtils.getStockOnTransactionDate and CostingUtils.getCurrentStock and avoid the API change.
---
M src/org/openbravo/costing/AverageAlgorithm.java
M src/org/openbravo/costing/AverageCostAdjustment.java
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingServer.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091103)
|
hgbot
|
2016-11-03 18:06
|
|
|
|
(0091104)
|
hgbot
|
2016-11-03 18:06
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: c28775e4425f2a0240302415404d7d537e73b0a5
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Tue Sep 27 13:24:12 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/c28775e4425f2a0240302415404d7d537e73b0a5 [^]
Related to issue 34190: Use cumulated values when movement date is the same
Use also cumulated values in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate methods when trx and ctrx movementdate is the same.
Also, truncate movementdate before comparing it.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
---
|
|
|
(0091105)
|
hgbot
|
2016-11-03 18:07
|
|
|
|
(0091106)
|
hgbot
|
2016-11-03 18:07
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 2b29e5528dad3265c9626339748c8cf5f9327c9a
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Sep 28 13:57:03 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/2b29e5528dad3265c9626339748c8cf5f9327c9a [^]
Related to issue 34190: Make an API change
Add MaterialTransaction trx parameter to CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock methods.
Also, remove product and date unneeded parameters and add areBackdatedTrxFixed parameter to avoid get again the costingRule.
---
M src/org/openbravo/costing/AverageAlgorithm.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091107)
|
hgbot
|
2016-11-03 18:07
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 79333f196002aaf5657824deaa314dd2b7ff4aeb
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Sep 28 14:12:00 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/79333f196002aaf5657824deaa314dd2b7ff4aeb [^]
Related to issue 34190: Make another API change
Send currency to CostAdjustmentUtils.getStockOnTransactionDate and CostingUtils.getCurrentStock.
---
M src/org/openbravo/costing/AverageAlgorithm.java
M src/org/openbravo/costing/AverageCostAdjustment.java
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingServer.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091108)
|
hgbot
|
2016-11-03 18:07
|
|
Repository: erp/backports/3.0PR16Q4
Changeset: 66f977cbeb1721589cd028de800c55ee54f53708
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Sep 28 14:16:44 2016 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4/rev/66f977cbeb1721589cd028de800c55ee54f53708 [^]
Related to issue 34190: Exclude M+ in case M- also in CostAdjustmentUtils
Exclude M+ in case M- also in CostAdjustmentUtils.getStockOnTransactionDate and CostAdjustmentUtils.getValuedStockOnTransactionDate as it is done in CostingUtils.getCurrentStock and CostingUtils.getCurrentValuedStock.
---
M src/org/openbravo/costing/CostAdjustmentUtils.java
M src/org/openbravo/costing/CostingUtils.java
---
|
|
|
(0091109)
|
hgbot
|
2016-11-03 18:07
|
|
|
|
|
|