+ $bank_act = get_default_bank_account();
+ $item = get_item(get_post('stock_id'));
+ $_POST['Labour'] = price_format(get_post('type') == WO_ASSEMBLY ? $item['labour_cost'] : 0);
+ $_POST['cr_lab_acc'] = $bank_act['account_code'];
+ $_POST['Costs'] = price_format(get_post('type') == WO_ASSEMBLY ? $item['overhead_cost'] : 0);
+ $_POST['cr_acc'] = $bank_act['account_code'];
+ $Ajax->activate('_page_body');