X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=doc%2Fapi_changes.txt;h=cab0d50b45517f125df1941fcf83cd3a53a5e639;hb=df660a601cabb0afe7f3246884f16207b9a0c314;hp=36c94fe443c6d957b7035c866886d294d6aa5d1b;hpb=17b390efcf904072b02ec866b2a427490471a260;p=fa-stable.git diff --git a/doc/api_changes.txt b/doc/api_changes.txt index 36c94fe4..cab0d50b 100644 --- a/doc/api_changes.txt +++ b/doc/api_changes.txt @@ -1,6 +1,6 @@ Changes in framework API introduced in FrontAccounting 2.4 ---------------------------------------------------------- -The list does not contain changes made in user interface files. +The list does not contain changes made in user interface files or local functions. Changed functions: company_db_inc: @@ -13,6 +13,15 @@ Changed functions: save_to_file($path, $zip, $fileData) tax_types_db.inc: get_tax_type_default_rate($type_id) => get_tax_type_rate($type_id) + inventory_db.inc: + get_stock_moves($type, $type_no) + add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost, $person_id=0, $price=0) + sales_db.inc: + add_stock_move_customer() removed + items_transfer_db.inc: + add_stock_transfer($Items, $location_from, $location_to, $date_, $reference, $memo_) + items_adjust_db.inc: + add_stock_adjustment($items, $location, $date_, $reference, $memo_) Before 2.4: get_tax_type_default_rate($type_id) @@ -69,3 +78,41 @@ Now: save_to_file($path, $zip, $fileData) Description: $path parameter have to contain full path to file, no assumptions to target folder is done inside function. + +Before 2.4: + add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost, + $person_id=0, $show_or_hide=1, $price=0, $discount_percent=0, $error_msg="") +Now: + add_stock_move($type, $stock_id, $trans_no, $location, $date_, $reference, $quantity, $std_cost, + $person_id=0, $price=0) +Description: + Removed parameters $show_or_hide, $discount_percent and $error_msg as obsolete after removal of related stock_moves fields. + +Before 2.4: + get_stock_moves($type, $type_no, $visible=false) +Now: + get_stock_moves($type, $type_no) +Description: + Removed parameter $visible (obsolete after `visible` field removal). + +Before 2.4 + add_stock_move_customer($type, $stock_id, $trans_id, $location, $date_, $reference, + $quantity, $std_cost, $price=0, $discount_percent=0) +Now: + None +Description: + Obsolete and removed. + +Before 2.4: + add_stock_transfer($Items, $location_from, $location_to, $date_, $type, $reference, $memo_) +Now: + add_stock_transfer($Items, $location_from, $location_to, $date_, $reference, $memo_) +Description: + Removed obsolete $type argument. + +Before 2.4: + add_stock_adjustment($items, $location, $date_, $type, $increase, $reference, $memo_) +Now: + add_stock_adjustment($items, $location, $date_, $reference, $memo_) +Description: + Removed obsolete $type and $increase arguments.