1 Changes in framework API introduced in FrontAccounting 2.4
2 ----------------------------------------------------------
3 The list does not contain changes made in user interface files or local functions.
7 update_company_prefs($params)
8 get_company_pref($prefs = null)
11 db_backup($conn, $ext='no', $comm='', $path='')
12 db_export($conn, $filename, $zip='no', $comment='', $no_default=false)
13 save_to_file($path, $zip, $fileData)
15 get_tax_type_default_rate($type_id) => get_tax_type_rate($type_id)
17 get_stock_moves($type, $type_no)
18 add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost, $person_id=0, $price=0)
20 add_stock_move_customer() removed
21 items_transfer_db.inc:
22 add_stock_transfer($Items, $location_from, $location_to, $date_, $reference, $memo_)
24 add_stock_adjustment($items, $location, $date_, $reference, $memo_)
27 get_tax_type_default_rate($type_id)
29 get_tax_type_rate($type_id)
31 Misleading function name changed.
34 update_company_prefs( $params, $pref = TB_PREF )
36 update_company_prefs($params)
38 $pref parameter has been removed. All calls should be done after switch to selected company database with
39 set_global_connection($company).
42 get_company_pref($prefs = null, $tbpref = null)
44 get_company_pref($prefs = null)
46 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
47 set_global_connection($company).
50 get_company_prefs($tbpref = TB_PREF)
54 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
55 set_global_connection($company).
58 db_backup($conn, $ext='no', $comm='', $tbpref = TB_PREF)
60 db_backup($conn, $ext='no', $comm='', $path='')
62 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
63 set_global_connection($company).
64 $path parameter has been added: path to storage directory for generated backup file. If not set defaults to BACKUP_PATH.
67 db_export($conn, $filename, $zip='no', $comment='', $tbpref = TB_PREF, $no_default=false)
69 db_export($conn, $filename, $zip='no', $comment='')
71 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
72 set_global_connection($company). Also removed obsolete $no_default parameter.
73 $filename now have to contain full path to target directory.
76 save_to_file($backupfile, $zip, $fileData)
78 save_to_file($path, $zip, $fileData)
80 $path parameter have to contain full path to file, no assumptions to target folder is done inside function.
83 add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost,
84 $person_id=0, $show_or_hide=1, $price=0, $discount_percent=0, $error_msg="")
86 add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost,
87 $person_id=0, $price=0)
89 Removed parameters $show_or_hide, $discount_percent and $error_msg as obsolete after removal of related stock_moves fields.
92 get_stock_moves($type, $type_no, $visible=false)
94 get_stock_moves($type, $type_no)
96 Removed parameter $visible (obsolete after `visible` field removal).
99 add_stock_move_customer($type, $stock_id, $trans_id, $location, $date_, $reference,
100 $quantity, $std_cost, $price=0, $discount_percent=0)
104 Obsolete and removed.
107 add_stock_transfer($Items, $location_from, $location_to, $date_, $type, $reference, $memo_)
109 add_stock_transfer($Items, $location_from, $location_to, $date_, $reference, $memo_)
111 Removed obsolete $type argument.
114 add_stock_adjustment($items, $location, $date_, $type, $increase, $reference, $memo_)
116 add_stock_adjustment($items, $location, $date_, $reference, $memo_)
118 Removed obsolete $type and $increase arguments.