- $sql = "UPDATE ".TB_PREF."company SET
- retained_earnings_act=".db_escape($retained_act).", profit_loss_year_act=".db_escape($profit_loss_act).",
- debtors_act=".db_escape($debtors_act).", pyt_discount_act=".db_escape($pyt_discount_act).",
- creditors_act=".db_escape($creditors_act).",
- freight_act=".db_escape($freight_act).",
- exchange_diff_act=".db_escape($exchange_diff_act).",
- default_sales_act=".db_escape($default_sales_act).",
- default_sales_discount_act=".db_escape($default_sales_discount_act).",
- default_prompt_payment_act=".db_escape($default_prompt_payment_act).",
- default_inventory_act=".db_escape($default_inventory_act).",
- default_cogs_act=".db_escape($default_cogs_act).",
- default_adj_act=".db_escape($default_adj_act).",
- default_inv_sales_act=".db_escape($default_inv_sales_act).",
- default_assembly_act=".db_escape($default_assembly_act).",
- allow_negative_stock=$allow_negative_stock,
- po_over_receive=$po_over_receive,
- po_over_charge=$po_over_charge,
- accumulate_shipping=$accumulate_shipping,
- legal_text=".db_escape($legal_text).",
- past_due_days=$past_due_days,
- default_credit_limit=$default_credit_limit,
- default_workorder_required=$default_workorder_required,
- default_dim_required=$default_dim_required,
- default_delivery_required=$default_delivery_required
- WHERE coy_code=1";
-
- db_query($sql, "The company gl setup could not be updated ");