projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Message box cleanup before ajax call.
[fa-stable.git]
/
manufacturing
/
work_order_costs.php
diff --git
a/manufacturing/work_order_costs.php
b/manufacturing/work_order_costs.php
index 4e7f05379b275601ee566f21911018e46e2dccc9..2e72cf10a50255d02c25b98badfa3176b82fa0e1 100644
(file)
--- a/
manufacturing/work_order_costs.php
+++ b/
manufacturing/work_order_costs.php
@@
-143,9
+143,7
@@
date_row(_("Date:"), 'date_');
$item_accounts = get_stock_gl_code($wo_details['stock_id']);
$_POST['db_acc'] = $item_accounts['assembly_account'];
$item_accounts = get_stock_gl_code($wo_details['stock_id']);
$_POST['db_acc'] = $item_accounts['assembly_account'];
-$sql = "SELECT DISTINCT account_code FROM ".TB_PREF."bank_accounts";
-$rs = db_query($sql,"could not get bank accounts");
-$r = db_fetch_row($rs);
+$r = get_default_bank_account(get_company_pref('curr_default'));
$_POST['cr_acc'] = $r[0];
amount_row(_("Additional Costs:"), 'costs');
$_POST['cr_acc'] = $r[0];
amount_row(_("Additional Costs:"), 'costs');