1 Changes in framework API introduced in FrontAccounting 2.4
2 ----------------------------------------------------------
3 The list does not contain changes made in user interface files.
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,
19 $person_id=0, $price=0, $discount_percent=0, $error_msg="")
22 get_tax_type_default_rate($type_id)
24 get_tax_type_rate($type_id)
26 Misleading function name changed.
29 update_company_prefs( $params, $pref = TB_PREF )
31 update_company_prefs($params)
33 $pref parameter has been removed. All calls should be done after switch to selected company database with
34 set_global_connection($company).
37 get_company_pref($prefs = null, $tbpref = null)
39 get_company_pref($prefs = null)
41 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
42 set_global_connection($company).
45 get_company_prefs($tbpref = TB_PREF)
49 $tbpref parameter has been removed. All calls should be done after switch to selected company database with
50 set_global_connection($company).
53 db_backup($conn, $ext='no', $comm='', $tbpref = TB_PREF)
55 db_backup($conn, $ext='no', $comm='', $path='')
57 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
58 set_global_connection($company).
59 $path parameter has been added: path to storage directory for generated backup file. If not set defaults to BACKUP_PATH.
62 db_export($conn, $filename, $zip='no', $comment='', $tbpref = TB_PREF, $no_default=false)
64 db_export($conn, $filename, $zip='no', $comment='')
66 $tbpref parameter has been removed. Calls should be done after switch to selected company database with
67 set_global_connection($company). Also removed obsolete $no_default parameter.
68 $filename now have to contain full path to target directory.
71 save_to_file($backupfile, $zip, $fileData)
73 save_to_file($path, $zip, $fileData)
75 $path parameter have to contain full path to file, no assumptions to target folder is done inside function.
78 add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost,
79 $person_id=0, $show_or_hide=1, $price=0, $discount_percent=0, $error_msg="")
81 add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost,
82 $person_id=0, $price=0, $discount_percent=0, $error_msg="")
84 Removed parameter $show_or_hide (obsolete after `visible` field removal).
87 get_stock_moves($type, $type_no, $visible=false)
89 get_stock_moves($type, $type_no)
91 Removed parameter $visible (obsolete after `visible` field removal).