If and when this is fixed, must it be made out with a flag in the config.php to suit each users need or is MarkAndrews requirement universal - accountants please....
How can you create an item on 5th Sep 2014 (later date) and then expect to purchase it on 31st Aug 2014 (prior date)?
The line 67 in the new includes/db/items_trans_db.inc :
change_stock_moves_std_cost($stock_id, $date_, $new_cost - $last_cost)is wrong since the difference in cost should be calculated by taking the weighted value of the old cost based on its prior stock value and not merely the difference in cost between previous average cost and current cost as is done above.
The correct calculation should be:
QOH = ( PrevQOH + PurchaseQty ) ;
Avg Cost = ( (PrevAvgCost * PrevQOH) + (PurchaseQty * PurchasePrice) ) / QOH ;