}
add_stock_adjustment_item($adj_id, $line_item->stock_id, $location, $date_, $reference,
}
add_stock_adjustment_item($adj_id, $line_item->stock_id, $location, $date_, $reference,
}
add_comments(ST_INVADJUST, $adj_id, $date_, $memo_);
}
add_comments(ST_INVADJUST, $adj_id, $date_, $memo_);
//--------------------------------------------------------------------------------------------------
function add_stock_adjustment_item($adj_id, $stock_id, $location, $date_, $reference,
//--------------------------------------------------------------------------------------------------
function add_stock_adjustment_item($adj_id, $stock_id, $location, $date_, $reference,
- update_average_material_cost(null, $stock_id, $standard_cost, $quantity, $date_);
+ update_average_material_cost(null, $stock_id, $unit_cost, $quantity, $date_);
}
add_stock_move(ST_INVADJUST, $stock_id, $adj_id, $location,
}
add_stock_move(ST_INVADJUST, $stock_id, $adj_id, $location,
- $date_, $reference, $quantity, $standard_cost);
+ $date_, $reference, $quantity, $unit_cost);
if (is_fixed_asset($mb_flag)) {
// get the initial value of the fixed assset.
$row = get_fixed_asset_move($stock_id, ST_SUPPRECEIVE);
$inv_value = $row['price'] * $quantity;
if (is_fixed_asset($mb_flag)) {
// get the initial value of the fixed assset.
$row = get_fixed_asset_move($stock_id, ST_SUPPRECEIVE);
$inv_value = $row['price'] * $quantity;
if (is_fixed_asset($mb_flag)) {
// Additional gl entry for fixed asset.
$grn_act = get_company_pref('default_loss_on_asset_disposal_act');
if (is_fixed_asset($mb_flag)) {
// Additional gl entry for fixed asset.
$grn_act = get_company_pref('default_loss_on_asset_disposal_act');
- add_gl_trans_std_cost(ST_INVADJUST, $adj_id, $date_, $grn_act, 0, 0, $memo_, ($standard_cost * -($quantity)));
+ add_gl_trans_std_cost(ST_INVADJUST, $adj_id, $date_, $grn_act, 0, 0, $memo_, ($unit_cost * -($quantity)));