From: Joe Hunt Date: Wed, 28 Jan 2009 11:58:49 +0000 (+0000) Subject: Copyright notes at top op every source file X-Git-Tag: v2.4.2~19^2~1582 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=818719f38b8327cdca616d58b13913dbd174d96a Copyright notes at top op every source file --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 22dad27c..4c2f0ee9 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +28-Jan-2009 Joe Hunt ++ Copyright notes at top op every source file +$ All files still missing + 27-Jan-2009 Joe Hunt - Removed file update_db.php (obsolete). Finetuning en_US-demo.sql $ update_db.php diff --git a/applications/application.php b/applications/application.php index 69029bf2..a4c6a6a8 100644 --- a/applications/application.php +++ b/applications/application.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class menu_item { var $label; diff --git a/applications/customers.php b/applications/customers.php index 245ee62e..65d36109 100644 --- a/applications/customers.php +++ b/applications/customers.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class customers_app extends application { diff --git a/applications/dimensions.php b/applications/dimensions.php index f31b6072..1ec57013 100644 --- a/applications/dimensions.php +++ b/applications/dimensions.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class dimensions_app extends application { diff --git a/applications/generalledger.php b/applications/generalledger.php index eea0cdc8..b894d810 100644 --- a/applications/generalledger.php +++ b/applications/generalledger.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class general_ledger_app extends application { diff --git a/applications/inventory.php b/applications/inventory.php index a268c60d..598d5b10 100644 --- a/applications/inventory.php +++ b/applications/inventory.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class inventory_app extends application { diff --git a/applications/manufacturing.php b/applications/manufacturing.php index ef6543ec..30cb430c 100644 --- a/applications/manufacturing.php +++ b/applications/manufacturing.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class manufacturing_app extends application { diff --git a/applications/setup.php b/applications/setup.php index 4deced9c..6050b3ad 100644 --- a/applications/setup.php +++ b/applications/setup.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class setup_app extends application { diff --git a/applications/suppliers.php b/applications/suppliers.php index d8d6b7f7..a1631257 100644 --- a/applications/suppliers.php +++ b/applications/suppliers.php @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once("./modules/installed_modules.php"); class suppliers_app extends application { diff --git a/dimensions/dimension_entry.php b/dimensions/dimension_entry.php index af266300..faf45269 100644 --- a/dimensions/dimension_entry.php +++ b/dimensions/dimension_entry.php @@ -1,6 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); diff --git a/dimensions/includes/dimensions_db.inc b/dimensions/includes/dimensions_db.inc index d0299b66..2cd6af85 100644 --- a/dimensions/includes/dimensions_db.inc +++ b/dimensions/includes/dimensions_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_dimension($reference, $name, $type_, $date_, $due_date, $memo_) { begin_transaction(); diff --git a/gl/bank_transfer.php b/gl/bank_transfer.php index 87e82c71..9536d4ab 100644 --- a/gl/bank_transfer.php +++ b/gl/bank_transfer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $path_to_root=".."; $page_security = 5; @@ -142,8 +151,6 @@ function check_valid_entries() function handle_add_deposit() { - global $path_to_root; - $trans_no = add_bank_transfer($_POST['FromBankAccount'], $_POST['ToBankAccount'], $_POST['DatePaid'], input_num('amount'), $_POST['ref'], $_POST['memo_']); @@ -154,7 +161,6 @@ function handle_add_deposit() function safeExit() { - global $path_to_root; echo "

"; end_page(); exit; diff --git a/gl/gl_bank.php b/gl/gl_bank.php index e5900142..869ad332 100644 --- a/gl/gl_bank.php +++ b/gl/gl_bank.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root=".."; include_once($path_to_root . "/includes/ui/items_cart.inc"); diff --git a/gl/gl_budget.php b/gl/gl_budget.php index d9d4dde9..ca4927ba 100644 --- a/gl/gl_budget.php +++ b/gl/gl_budget.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root=".."; include($path_to_root . "/includes/session.inc"); diff --git a/gl/includes/db/gl_db_accounts.inc b/gl/includes/db/gl_db_accounts.inc index 4d51985f..7e4aaf59 100644 --- a/gl/includes/db/gl_db_accounts.inc +++ b/gl/includes/db/gl_db_accounts.inc @@ -1,6 +1,14 @@ . +***********************************************************************/ function add_gl_account($account_code, $account_name, $account_type, $account_code2, $tax_code) { $account_name = db_escape($account_name); diff --git a/gl/includes/db/gl_db_bank_accounts.inc b/gl/includes/db/gl_db_bank_accounts.inc index 595639ae..b2460d9c 100644 --- a/gl/includes/db/gl_db_bank_accounts.inc +++ b/gl/includes/db/gl_db_bank_accounts.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------------------------- function add_bank_account($account_code, $account_type, $bank_account_name, $bank_name, $bank_account_number, diff --git a/gl/includes/db/gl_db_bank_trans.inc b/gl/includes/db/gl_db_bank_trans.inc index 2c47f2ba..6e440080 100644 --- a/gl/includes/db/gl_db_bank_trans.inc +++ b/gl/includes/db/gl_db_bank_trans.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------- // add a bank transaction diff --git a/gl/includes/db/gl_db_banking.inc b/gl/includes/db/gl_db_banking.inc index 251d3805..b9d8734e 100644 --- a/gl/includes/db/gl_db_banking.inc +++ b/gl/includes/db/gl_db_banking.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------- // Add bank tranfer to database. // diff --git a/gl/includes/db/gl_db_currencies.inc b/gl/includes/db/gl_db_currencies.inc index a4d7e2d4..8ad05084 100644 --- a/gl/includes/db/gl_db_currencies.inc +++ b/gl/includes/db/gl_db_currencies.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------------------------- function update_currency($curr_abrev, $symbol, $currency, $country, $hundreds_name) diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index 1bdeb559..7e05f98e 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------------------------- function get_exchange_rate($rate_id) { diff --git a/gl/includes/db/gl_db_trans.inc b/gl/includes/db/gl_db_trans.inc index 19dac59c..21fa114a 100644 --- a/gl/includes/db/gl_db_trans.inc +++ b/gl/includes/db/gl_db_trans.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //-------------------------------------------------------------------------------- // Base function for adding a GL transaction diff --git a/gl/includes/gl_ui.inc b/gl/includes/gl_ui.inc index 998b3adb..a51d3191 100644 --- a/gl/includes/gl_ui.inc +++ b/gl/includes/gl_ui.inc @@ -1,5 +1,13 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/ui.inc"); - ?> \ No newline at end of file diff --git a/gl/inquiry/gl_trial_balance.php b/gl/inquiry/gl_trial_balance.php index 8d1ad8bc..e94bd3c3 100644 --- a/gl/inquiry/gl_trial_balance.php +++ b/gl/inquiry/gl_trial_balance.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 8; $path_to_root="../.."; @@ -46,7 +55,7 @@ function gl_inquiry_controls() function get_balance($account, $from, $to, $from_incl=true, $to_incl=true) { - $sql = "SELECT SUM(IF(amount >= 0, amount, 0)) as debit, SUM(IF(amount < 0, -amount, 0)) as credit, SUM(amount) as balance + $sql = "SELECT SUM(IF(amount >= 0, amount, 0)) AS debit, SUM(IF(amount < 0, -amount, 0)) AS credit, SUM(amount) AS balance FROM ".TB_PREF."gl_trans,".TB_PREF."chart_master,".TB_PREF."chart_types, ".TB_PREF."chart_class WHERE ".TB_PREF."gl_trans.account=".TB_PREF."chart_master.account_code AND ".TB_PREF."chart_master.account_type=".TB_PREF."chart_types.id AND ".TB_PREF."chart_types.class_id=".TB_PREF."chart_class.cid AND"; diff --git a/gl/manage/currencies.php b/gl/manage/currencies.php index eadbaf92..fa42f7b4 100644 --- a/gl/manage/currencies.php +++ b/gl/manage/currencies.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 9; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); @@ -165,7 +174,7 @@ function display_currencies() label_cell($myrow["country"]); edit_button_cell("Edit".$myrow["curr_abrev"], _("Edit")); if ($myrow["curr_abrev"] != $company_currency) - edit_button_cell("Delete".$myrow["curr_abrev"], _("Delete")); + delete_button_cell("Delete".$myrow["curr_abrev"], _("Delete")); else label_cell(''); end_row(); diff --git a/gl/manage/gl_account_classes.php b/gl/manage/gl_account_classes.php index 8de53227..e0b6ff4e 100644 --- a/gl/manage/gl_account_classes.php +++ b/gl/manage/gl_account_classes.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root="../.."; include($path_to_root . "/includes/session.inc"); @@ -113,7 +122,7 @@ while ($myrow = db_fetch($result)) label_cell($myrow['class_name']); label_cell($bs_text); edit_button_cell("Edit".$myrow["cid"], _("Edit")); - edit_button_cell("Delete".$myrow["cid"], _("Delete")); + delete_button_cell("Delete".$myrow["cid"], _("Delete")); end_row(); } diff --git a/gl/manage/gl_accounts.php b/gl/manage/gl_accounts.php index 5c88705d..9867f3f1 100644 --- a/gl/manage/gl_accounts.php +++ b/gl/manage/gl_accounts.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root="../.."; include($path_to_root . "/includes/session.inc"); @@ -235,7 +244,7 @@ text_row_ex(_("Account Name:"), 'account_name', 60); gl_account_types_list_row(_("Account Group:"), 'account_type', null); -tax_groups_list_row(_("Tax Group:"), 'tax_code', null, _('No Tax')); +tax_types_list_row(_("Tax Type:"), 'tax_code', null, _('No Tax')); end_table(1); diff --git a/gl/view/bank_transfer_view.php b/gl/view/bank_transfer_view.php index 3e447a4d..1d053b83 100644 --- a/gl/view/bank_transfer_view.php +++ b/gl/view/bank_transfer_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/gl/view/gl_deposit_view.php b/gl/view/gl_deposit_view.php index eafa9469..98c34da1 100644 --- a/gl/view/gl_deposit_view.php +++ b/gl/view/gl_deposit_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/gl/view/gl_payment_view.php b/gl/view/gl_payment_view.php index 520de94d..739ffa98 100644 --- a/gl/view/gl_payment_view.php +++ b/gl/view/gl_payment_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/gl/view/gl_trans_view.php b/gl/view/gl_trans_view.php index 57e27833..2bf406f5 100644 --- a/gl/view/gl_trans_view.php +++ b/gl/view/gl_trans_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 8; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/includes/ajax.inc b/includes/ajax.inc index b95d1928..a018b12f 100644 --- a/includes/ajax.inc +++ b/includes/ajax.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ require_once($path_to_root. "/includes/JsHttpRequest.php"); class Ajax extends JsHttpRequest { diff --git a/includes/banking.inc b/includes/banking.inc index 49fb68b1..a606c07b 100644 --- a/includes/banking.inc +++ b/includes/banking.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/gl/includes/gl_db.inc"); //---------------------------------------------------------------------------------- diff --git a/includes/current_user.inc b/includes/current_user.inc index fbd54bf1..deeda60f 100644 --- a/includes/current_user.inc +++ b/includes/current_user.inc @@ -1,6 +1,6 @@ . +***********************************************************************/ function db_has_customers() { return check_empty_result("SELECT COUNT(*) FROM ".TB_PREF."debtors_master"); diff --git a/includes/date_functions.inc b/includes/date_functions.inc index e3c73a40..24f3b8f8 100644 --- a/includes/date_functions.inc +++ b/includes/date_functions.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ /* date validation and parsing functions diff --git a/includes/db/comments_db.inc b/includes/db/comments_db.inc index 9a484da2..30952a3d 100644 --- a/includes/db/comments_db.inc +++ b/includes/db/comments_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //-------------------------------------------------------------------------------------------------- function get_comments($type, $type_no) diff --git a/includes/db/connect_db.inc b/includes/db/connect_db.inc index 18c27ac9..7de0c108 100644 --- a/includes/db/connect_db.inc +++ b/includes/db/connect_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ set_global_connection(); function set_global_connection() @@ -70,7 +79,7 @@ function db_fetch ($result) function db_seek (&$result,$record) { - mysql_data_seek($result, $record); + return mysql_data_seek($result, $record); } function db_free_result ($result) diff --git a/includes/db/inventory_db.inc b/includes/db/inventory_db.inc index 7be45e6a..8b901e25 100644 --- a/includes/db/inventory_db.inc +++ b/includes/db/inventory_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function get_qoh_on_date($stock_id, $location=null, $date_=null, $exclude=0) { if ($date_ == null) diff --git a/includes/db/manufacturing_db.inc b/includes/db/manufacturing_db.inc index c7c8c5d9..de03445e 100644 --- a/includes/db/manufacturing_db.inc +++ b/includes/db/manufacturing_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function get_mb_flag($stock_id) { $sql = "SELECT mb_flag FROM ".TB_PREF."stock_master WHERE stock_id = '" . $stock_id . "'"; diff --git a/includes/db/references_db.inc b/includes/db/references_db.inc index a41597f9..bb1defe9 100644 --- a/includes/db/references_db.inc +++ b/includes/db/references_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //-------------------------------------------------------------------------------------------------- function get_reference($type, $id) diff --git a/includes/db/sql_functions.inc b/includes/db/sql_functions.inc index 766fe545..b3f75f3c 100644 --- a/includes/db/sql_functions.inc +++ b/includes/db/sql_functions.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------- function begin_transaction() diff --git a/includes/db_pager.inc b/includes/db_pager.inc index c34a855f..613d2921 100644 --- a/includes/db_pager.inc +++ b/includes/db_pager.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ // // Controler part of database table pager with column sort. // To display actual html object call display_db_pager($name) inside diff --git a/includes/lang/language.php b/includes/lang/language.php index aeb50e0c..77d5d83b 100644 --- a/includes/lang/language.php +++ b/includes/lang/language.php @@ -1,6 +1,6 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/db/manufacturing_db.inc"); diff --git a/includes/page/footer.inc b/includes/page/footer.inc index 7528b7bf..a47038e8 100644 --- a/includes/page/footer.inc +++ b/includes/page/footer.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function page_footer($no_menu=false, $is_index=false) { global $path_to_root; diff --git a/includes/page/header.inc b/includes/page/header.inc index 891083b5..cd454b6d 100644 --- a/includes/page/header.inc +++ b/includes/page/header.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function help_url($title, $app) { diff --git a/includes/prefs/sysprefs.inc b/includes/prefs/sysprefs.inc index 95c2eacd..08ff32f1 100644 --- a/includes/prefs/sysprefs.inc +++ b/includes/prefs/sysprefs.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/admin/db/company_db.inc"); class sys_prefs diff --git a/includes/prefs/userprefs.inc b/includes/prefs/userprefs.inc index 8bad1168..f8fa8915 100644 --- a/includes/prefs/userprefs.inc +++ b/includes/prefs/userprefs.inc @@ -1,6 +1,6 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/db/references_db.inc"); class references diff --git a/includes/reserved.inc b/includes/reserved.inc index 14b2d8cc..004e9fcd 100644 --- a/includes/reserved.inc +++ b/includes/reserved.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ // always use capitals in reserved words (for is_reserved_word comparisons) $any_item = 'AN'; diff --git a/includes/session.inc b/includes/session.inc index a08344ae..3f4d7cd4 100644 --- a/includes/session.inc +++ b/includes/session.inc @@ -1,14 +1,14 @@ . +***********************************************************************/ function output_html($text) { global $before_box, $Ajax, $messages; diff --git a/includes/systypes.inc b/includes/systypes.inc index e7698231..13a4adb2 100644 --- a/includes/systypes.inc +++ b/includes/systypes.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ Function get_next_trans_no ($trans_type){ // sql to get the next display transaction number diff --git a/includes/types.inc b/includes/types.inc index 8162736e..02b5afdc 100644 --- a/includes/types.inc +++ b/includes/types.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------- $systypes_array = array ( diff --git a/includes/ui.inc b/includes/ui.inc index e1d472a7..f8aedbfe 100644 --- a/includes/ui.inc +++ b/includes/ui.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/ui/ui_lists.inc"); include_once($path_to_root . "/includes/ui/ui_controls.inc"); include_once($path_to_root . "/includes/ui/ui_input.inc"); diff --git a/includes/ui/allocation_cart.inc b/includes/ui/allocation_cart.inc index ee52150c..e8f5233f 100644 --- a/includes/ui/allocation_cart.inc +++ b/includes/ui/allocation_cart.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ /* definition of the Debtor Receipt/Credit note allocation class */ //----------------------------------------------------------------------------------- diff --git a/includes/ui/items_cart.inc b/includes/ui/items_cart.inc index 66a17fea..f4d223a2 100644 --- a/includes/ui/items_cart.inc +++ b/includes/ui/items_cart.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/prefs/sysprefs.inc"); include_once($path_to_root . "/inventory/includes/inventory_db.inc"); diff --git a/includes/ui/ui_globals.inc b/includes/ui/ui_globals.inc index a22c6886..e85c83d5 100644 --- a/includes/ui/ui_globals.inc +++ b/includes/ui/ui_globals.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/reserved.inc"); function set_global_supplier($supplier_id) diff --git a/includes/ui/ui_lists.inc b/includes/ui/ui_lists.inc index 46194019..08e73f02 100644 --- a/includes/ui/ui_lists.inc +++ b/includes/ui/ui_lists.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/includes/reserved.inc"); include_once($path_to_root . "/includes/types.inc"); diff --git a/includes/ui/ui_msgs.inc b/includes/ui/ui_msgs.inc index a0c1aff4..bc123b78 100644 --- a/includes/ui/ui_msgs.inc +++ b/includes/ui/ui_msgs.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function display_error($msg, $center=true) { trigger_error($msg, E_USER_ERROR); diff --git a/index.php b/index.php index 3ff73e1c..7157542d 100644 --- a/index.php +++ b/index.php @@ -1,4 +1,14 @@ . +***********************************************************************/ $path_to_root="."; $page_security = 1; diff --git a/install/index.php b/install/index.php index 928d0e38..b0b96980 100644 --- a/install/index.php +++ b/install/index.php @@ -1,4 +1,14 @@ . +***********************************************************************/ error_reporting(E_ALL); ini_set("display_errors", "On"); // Start a session diff --git a/install/save.php b/install/save.php index 05460553..d587dd38 100644 --- a/install/save.php +++ b/install/save.php @@ -1,4 +1,14 @@ . +***********************************************************************/ error_reporting(E_ALL); ini_set("display_errors", "On"); ini_set("max_execution_time", "180"); diff --git a/inventory/cost_update.php b/inventory/cost_update.php index 48e75eba..ec3ad2bb 100644 --- a/inventory/cost_update.php +++ b/inventory/cost_update.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); diff --git a/inventory/includes/db/items_adjust_db.inc b/inventory/includes/db/items_adjust_db.inc index c824e003..09e6f417 100644 --- a/inventory/includes/db/items_adjust_db.inc +++ b/inventory/includes/db/items_adjust_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------------------------------------- function add_stock_adjustment($items, $location, $date_, $type, $increase, $reference, $memo_) diff --git a/inventory/includes/db/items_category_db.inc b/inventory/includes/db/items_category_db.inc index 87819e0d..fb856eae 100644 --- a/inventory/includes/db/items_category_db.inc +++ b/inventory/includes/db/items_category_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_item_category($description) { diff --git a/inventory/includes/db/items_codes_db.inc b/inventory/includes/db/items_codes_db.inc index 9e183cf5..dda5ec71 100644 --- a/inventory/includes/db/items_codes_db.inc +++ b/inventory/includes/db/items_codes_db.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ /* item_codes table is used to store both multiply foreign codes and sale kits definition. diff --git a/inventory/includes/db/items_db.inc b/inventory/includes/db/items_db.inc index 78c228fb..9e2b5f26 100644 --- a/inventory/includes/db/items_db.inc +++ b/inventory/includes/db/items_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function update_item($stock_id, $description, $long_description, $category_id, $tax_type_id, $sales_account, $inventory_account, $cogs_account, $adjustment_account, $assembly_account, $dimension_id, $dimension2_id) diff --git a/inventory/includes/db/items_locations_db.inc b/inventory/includes/db/items_locations_db.inc index 66120c30..64908fd4 100644 --- a/inventory/includes/db/items_locations_db.inc +++ b/inventory/includes/db/items_locations_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_item_location($loc_code, $location_name, $delivery_address, $phone, $fax, $email, $contact) { $sql = "INSERT INTO ".TB_PREF."locations (loc_code, location_name, delivery_address, phone, fax, email, contact) diff --git a/inventory/includes/db/items_prices_db.inc b/inventory/includes/db/items_prices_db.inc index ab3b92cd..8746b121 100644 --- a/inventory/includes/db/items_prices_db.inc +++ b/inventory/includes/db/items_prices_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_item_price($stock_id, $sales_type_id, $curr_abrev, $price) { $sql = "INSERT INTO ".TB_PREF."prices (stock_id, sales_type_id, curr_abrev, price) diff --git a/inventory/includes/db/items_trans_db.inc b/inventory/includes/db/items_trans_db.inc index ce1153ed..acbfc929 100644 --- a/inventory/includes/db/items_trans_db.inc +++ b/inventory/includes/db/items_trans_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------------------------------------- function stock_cost_update($stock_id, $material_cost, $labour_cost, $overhead_cost, diff --git a/inventory/includes/db/items_transfer_db.inc b/inventory/includes/db/items_transfer_db.inc index 67bbdc7c..73fe3ae6 100644 --- a/inventory/includes/db/items_transfer_db.inc +++ b/inventory/includes/db/items_transfer_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------------------------------------- function add_stock_transfer($Items, $location_from, $location_to, $date_, $type, $reference, $memo_) diff --git a/inventory/includes/db/items_units_db.inc b/inventory/includes/db/items_units_db.inc index 1f63252a..958b6caf 100644 --- a/inventory/includes/db/items_units_db.inc +++ b/inventory/includes/db/items_units_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function write_item_unit($selected, $abbr, $description, $decimals) { if($selected!='') diff --git a/inventory/includes/db/movement_types_db.inc b/inventory/includes/db/movement_types_db.inc index 73c19a21..b6702cc6 100644 --- a/inventory/includes/db/movement_types_db.inc +++ b/inventory/includes/db/movement_types_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_movement_type($name) { $sql = "INSERT INTO ".TB_PREF."movement_types (name) diff --git a/inventory/includes/inventory_db.inc b/inventory/includes/inventory_db.inc index 80374293..9ef8defa 100644 --- a/inventory/includes/inventory_db.inc +++ b/inventory/includes/inventory_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/includes/manufacturing.inc"); diff --git a/inventory/inquiry/stock_status.php b/inventory/inquiry/stock_status.php index 2461c188..214fcab6 100644 --- a/inventory/inquiry/stock_status.php +++ b/inventory/inquiry/stock_status.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/inventory/manage/item_codes.php b/inventory/manage/item_codes.php index 3c2bee1a..bbd7d7d8 100644 --- a/inventory/manage/item_codes.php +++ b/inventory/manage/item_codes.php @@ -1,4 +1,14 @@ . +***********************************************************************/ $page_security = 11; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/inventory/manage/sales_kits.php b/inventory/manage/sales_kits.php index 2e73d219..955bd0bc 100644 --- a/inventory/manage/sales_kits.php +++ b/inventory/manage/sales_kits.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 11; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); @@ -46,7 +55,7 @@ div_start('bom'); $myrow["units"] == '' ? 0 : get_qty_dec($myrow["comp_name"])); label_cell($myrow["units"] == '' ? _('kit') : $myrow["units"]); edit_button_cell("Edit".$myrow['id'], _("Edit")); - edit_button_cell("Delete".$myrow['id'], _("Delete")); + delete_button_cell("Delete".$myrow['id'], _("Delete")); end_row(); } //END WHILE LIST LOOP diff --git a/inventory/prices.php b/inventory/prices.php index 10366fa3..628dea21 100644 --- a/inventory/prices.php +++ b/inventory/prices.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); @@ -136,7 +145,7 @@ while ($myrow = db_fetch($prices_list)) label_cell($myrow["sales_type"]); amount_cell($myrow["price"]); edit_button_cell("Edit".$myrow['id'], _("Edit")); - edit_button_cell("Delete".$myrow['id'], _("Delete")); + delete_button_cell("Delete".$myrow['id'], _("Delete")); end_row(); } diff --git a/inventory/purchasing_data.php b/inventory/purchasing_data.php index 3e2f77b6..469a5d36 100644 --- a/inventory/purchasing_data.php +++ b/inventory/purchasing_data.php @@ -1,4 +1,14 @@ . +***********************************************************************/ $page_security = 4; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); @@ -160,7 +170,7 @@ else label_cell($myrow["suppliers_uom"]); label_cell($myrow["supplier_description"]); edit_button_cell("Edit".$myrow['supplier_id'], _("Edit")); - edit_button_cell("Delete".$myrow['supplier_id'], _("Delete")); + delete_button_cell("Delete".$myrow['supplier_id'], _("Delete")); end_row(); $j++; diff --git a/inventory/reorder_level.php b/inventory/reorder_level.php index 3a683437..c6aa2aee 100644 --- a/inventory/reorder_level.php +++ b/inventory/reorder_level.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 4; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); diff --git a/inventory/view/view_adjustment.php b/inventory/view/view_adjustment.php index 9aac2fd8..1b0fa636 100644 --- a/inventory/view/view_adjustment.php +++ b/inventory/view/view_adjustment.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/inventory/view/view_transfer.php b/inventory/view/view_transfer.php index 75f567cb..99f52f05 100644 --- a/inventory/view/view_transfer.php +++ b/inventory/view/view_transfer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/js/allocate.js b/js/allocate.js index c550a298..a26bceba 100644 --- a/js/allocate.js +++ b/js/allocate.js @@ -1,3 +1,13 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU Affero General Public License, + AGPL, as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ function focus_alloc(i) { save_focus(i); i.setAttribute('_last', get_amount(i.name)); diff --git a/js/budget.js b/js/budget.js index 92902323..450330fd 100644 --- a/js/budget.js +++ b/js/budget.js @@ -1,3 +1,13 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU Affero General Public License, + AGPL, as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ function focus_budget(i) { save_focus(i); i.setAttribute('_last', get_amount(i.name)); diff --git a/js/inserts.js b/js/inserts.js index b16a1153..cf2e348d 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -1,3 +1,13 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU Affero General Public License, + AGPL, as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ var _focus; var _hotkeys = { 'alt': false, // whether is the Alt key pressed diff --git a/js/reconcile.js b/js/reconcile.js index badeaa07..a21c18af 100644 --- a/js/reconcile.js +++ b/js/reconcile.js @@ -1,3 +1,13 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU Affero General Public License, + AGPL, as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ function focus_amount(i) { save_focus(i); i.setAttribute('_last', get_amount(i.name)); diff --git a/js/utils.js b/js/utils.js index 24a9c1a9..aa8c3879 100644 --- a/js/utils.js +++ b/js/utils.js @@ -1,3 +1,13 @@ +/********************************************************************** + Copyright (C) FrontAccounting, LLC. + Released under the terms of the GNU Affero General Public License, + AGPL, as published by the Free Software Foundation, either version + 3 of the License, or (at your option) any later version. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License here . +***********************************************************************/ // // JsHttpRequest class extensions. // diff --git a/manufacturing/includes/db/work_centres_db.inc b/manufacturing/includes/db/work_centres_db.inc index 1338d5d0..0d082439 100644 --- a/manufacturing/includes/db/work_centres_db.inc +++ b/manufacturing/includes/db/work_centres_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_work_centre($name, $description) { $sql = "INSERT INTO ".TB_PREF."workcentres (name, description) diff --git a/manufacturing/includes/db/work_order_issues_db.inc b/manufacturing/includes/db/work_order_issues_db.inc index b78bb080..0014b7ce 100644 --- a/manufacturing/includes/db/work_order_issues_db.inc +++ b/manufacturing/includes/db/work_order_issues_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //-------------------------------------------------------------------------------------- function add_work_order_issue($woid, $ref, $to_work_order, $items, $location, $workcentre, diff --git a/manufacturing/includes/db/work_order_produce_items_db.inc b/manufacturing/includes/db/work_order_produce_items_db.inc index 6c2010c9..804e41cb 100644 --- a/manufacturing/includes/db/work_order_produce_items_db.inc +++ b/manufacturing/includes/db/work_order_produce_items_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function work_order_produce($woid, $ref, $quantity, $date_, $memo_, $close_wo) { begin_transaction(); diff --git a/manufacturing/includes/db/work_order_requirements_db.inc b/manufacturing/includes/db/work_order_requirements_db.inc index 78d8e7c4..a96af69e 100644 --- a/manufacturing/includes/db/work_order_requirements_db.inc +++ b/manufacturing/includes/db/work_order_requirements_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function get_wo_requirements($woid) { $sql = "SELECT ".TB_PREF."wo_requirements.*, ".TB_PREF."stock_master.description, diff --git a/manufacturing/includes/db/work_orders_db.inc b/manufacturing/includes/db/work_orders_db.inc index bc371a8a..6b114193 100644 --- a/manufacturing/includes/db/work_orders_db.inc +++ b/manufacturing/includes/db/work_orders_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //-------------------------------------------------------------------------------------- function add_material_cost($stock_id, $qty, $date_) diff --git a/manufacturing/includes/db/work_orders_quick_db.inc b/manufacturing/includes/db/work_orders_quick_db.inc index 1eccbdcf..0c7a18d6 100644 --- a/manufacturing/includes/db/work_orders_quick_db.inc +++ b/manufacturing/includes/db/work_orders_quick_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //-------------------------------------------------------------------------------------- function add_work_order_quick($wo_ref, $loc_code, $units_reqd, $stock_id, $type, $date_, $additional_costs, $memo_) diff --git a/manufacturing/includes/manufacturing_db.inc b/manufacturing/includes/manufacturing_db.inc index 69ae13ea..2c0db933 100644 --- a/manufacturing/includes/manufacturing_db.inc +++ b/manufacturing/includes/manufacturing_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/manufacturing/includes/db/work_centres_db.inc"); include_once($path_to_root . "/manufacturing/includes/db/work_orders_db.inc"); include_once($path_to_root . "/manufacturing/includes/db/work_orders_quick_db.inc"); diff --git a/manufacturing/includes/manufacturing_ui.inc b/manufacturing/includes/manufacturing_ui.inc index 5753b716..1240f95b 100644 --- a/manufacturing/includes/manufacturing_ui.inc +++ b/manufacturing/includes/manufacturing_ui.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/ui.inc"); //-------------------------------------------------------------------------------------- diff --git a/manufacturing/includes/work_order_issue_ui.inc b/manufacturing/includes/work_order_issue_ui.inc index 87ecf5e5..fcb194c7 100644 --- a/manufacturing/includes/work_order_issue_ui.inc +++ b/manufacturing/includes/work_order_issue_ui.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/ui/items_cart.inc"); @@ -48,7 +57,7 @@ function display_issue_items($title, &$order) edit_button_cell("Edit$line_no", _("Edit"), _('Edit document line')); - edit_button_cell("Delete$line_no", _("Delete"), + delete_button_cell("Delete$line_no", _("Delete"), _('Remove line from document')); end_row(); } @@ -115,10 +124,10 @@ function issue_edit_item_controls(&$order, $line_no=-1) if ($id != -1) { - edit_button_cell('UpdateItem', _("Update"), - _('Confirm changes')); - edit_button_cell('CancelItemChanges', _("Cancel"), - _('Cancel changes')); + button_cell('UpdateItem', _("Update"), + _('Confirm changes'), ICON_UPDATE); + button_cell('CancelItemChanges', _("Cancel"), + _('Cancel changes'), ICON_CANCEL); hidden('LineNo', $line_no); set_focus('qty'); } diff --git a/manufacturing/inquiry/bom_cost_inquiry.php b/manufacturing/inquiry/bom_cost_inquiry.php index 26795c14..1621a27e 100644 --- a/manufacturing/inquiry/bom_cost_inquiry.php +++ b/manufacturing/inquiry/bom_cost_inquiry.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/manufacturing/manage/bom_edit.php b/manufacturing/manage/bom_edit.php index 2ffb0b5f..49fdccc5 100644 --- a/manufacturing/manage/bom_edit.php +++ b/manufacturing/manage/bom_edit.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 9; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); @@ -108,7 +117,7 @@ div_start('bom'); qty_cell($myrow["quantity"], false, get_qty_dec($myrow["component"])); label_cell($myrow["units"]); edit_button_cell("Edit".$myrow['id'], _("Edit")); - edit_button_cell("Delete".$myrow['id'], _("Delete")); + delete_button_cell("Delete".$myrow['id'], _("Delete")); end_row(); } //END WHILE LIST LOOP diff --git a/manufacturing/view/wo_issue_view.php b/manufacturing/view/wo_issue_view.php index b82eb3b5..4bb3b936 100644 --- a/manufacturing/view/wo_issue_view.php +++ b/manufacturing/view/wo_issue_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/manufacturing/view/wo_production_view.php b/manufacturing/view/wo_production_view.php index 1558f67c..d469d281 100644 --- a/manufacturing/view/wo_production_view.php +++ b/manufacturing/view/wo_production_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root="../.."; diff --git a/manufacturing/view/work_order_view.php b/manufacturing/view/work_order_view.php index 7b114995..e2e39ef4 100644 --- a/manufacturing/view/work_order_view.php +++ b/manufacturing/view/work_order_view.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root="../.."; diff --git a/manufacturing/work_order_add_finished.php b/manufacturing/work_order_add_finished.php index dd76e35c..ea4af884 100644 --- a/manufacturing/work_order_add_finished.php +++ b/manufacturing/work_order_add_finished.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); diff --git a/manufacturing/work_order_entry.php b/manufacturing/work_order_entry.php index e6a18026..9ba52cb6 100644 --- a/manufacturing/work_order_entry.php +++ b/manufacturing/work_order_entry.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root=".."; diff --git a/manufacturing/work_order_issue.php b/manufacturing/work_order_issue.php index d09f1a31..8809b61f 100644 --- a/manufacturing/work_order_issue.php +++ b/manufacturing/work_order_issue.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root=".."; include_once($path_to_root . "/includes/ui/items_cart.inc"); diff --git a/manufacturing/work_order_release.php b/manufacturing/work_order_release.php index e6e901c3..57375dc8 100644 --- a/manufacturing/work_order_release.php +++ b/manufacturing/work_order_release.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 10; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); diff --git a/purchasing/allocations/supplier_allocate.php b/purchasing/allocations/supplier_allocate.php index fd617a29..9001602a 100644 --- a/purchasing/allocations/supplier_allocate.php +++ b/purchasing/allocations/supplier_allocate.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $path_to_root="../.."; $page_security = 3; diff --git a/purchasing/includes/db/grn_db.inc b/purchasing/includes/db/grn_db.inc index 0008af16..48410380 100644 --- a/purchasing/includes/db/grn_db.inc +++ b/purchasing/includes/db/grn_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------- update average material cost ------------------------------------------ Joe Hunt Mar-03-2008 function update_average_material_cost($supplier, $stock_id, $price, $qty, $date, $adj_only=false) diff --git a/purchasing/includes/db/invoice_db.inc b/purchasing/includes/db/invoice_db.inc index 8f057bfc..9c66d648 100644 --- a/purchasing/includes/db/invoice_db.inc +++ b/purchasing/includes/db/invoice_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/purchasing/includes/db/invoice_items_db.inc"); //-------------------------------------------------------------------------------------------------- diff --git a/purchasing/includes/db/invoice_items_db.inc b/purchasing/includes/db/invoice_items_db.inc index 621309bb..d6fb61cd 100644 --- a/purchasing/includes/db/invoice_items_db.inc +++ b/purchasing/includes/db/invoice_items_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------------------------------------- function add_supp_invoice_item($supp_trans_type, $supp_trans_no, $stock_id, $description, diff --git a/purchasing/includes/db/po_db.inc b/purchasing/includes/db/po_db.inc index a442c8b0..5c22e8dd 100644 --- a/purchasing/includes/db/po_db.inc +++ b/purchasing/includes/db/po_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------------- function delete_po($po) diff --git a/purchasing/includes/db/supp_payment_db.inc b/purchasing/includes/db/supp_payment_db.inc index 5d9b382b..0df56032 100644 --- a/purchasing/includes/db/supp_payment_db.inc +++ b/purchasing/includes/db/supp_payment_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_supp_payment($supplier_id, $date_, $bank_account, $amount, $discount, $ref, $memo_, $rate=0) { diff --git a/purchasing/includes/db/supp_trans_db.inc b/purchasing/includes/db/supp_trans_db.inc index 716929c8..ba67f841 100644 --- a/purchasing/includes/db/supp_trans_db.inc +++ b/purchasing/includes/db/supp_trans_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------------------------------------- function add_supp_trans($type, $supplier_id, $date_, $due_date, $reference, $supp_reference, diff --git a/purchasing/includes/db/suppalloc_db.inc b/purchasing/includes/db/suppalloc_db.inc index 1c5a3581..3bcc2596 100644 --- a/purchasing/includes/db/suppalloc_db.inc +++ b/purchasing/includes/db/suppalloc_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------------- function add_supp_allocation($amount, $trans_type_from, $trans_no_from, diff --git a/purchasing/includes/db/suppliers_db.inc b/purchasing/includes/db/suppliers_db.inc index 69acd8dc..797e75e0 100644 --- a/purchasing/includes/db/suppliers_db.inc +++ b/purchasing/includes/db/suppliers_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function get_supplier_details($supplier_id, $to=null) { diff --git a/purchasing/includes/po_class.inc b/purchasing/includes/po_class.inc index eaa35f98..198912c0 100644 --- a/purchasing/includes/po_class.inc +++ b/purchasing/includes/po_class.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ /* Definition of the purch_order class to hold all the information for a purchase order and delivery */ diff --git a/purchasing/includes/purchasing_db.inc b/purchasing/includes/purchasing_db.inc index e98bd89a..8ce4ff0d 100644 --- a/purchasing/includes/purchasing_db.inc +++ b/purchasing/includes/purchasing_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/purchasing/includes/supp_trans_class.inc"); include_once($path_to_root . "/includes/banking.inc"); diff --git a/purchasing/includes/purchasing_ui.inc b/purchasing/includes/purchasing_ui.inc index 200f4580..adbc064d 100644 --- a/purchasing/includes/purchasing_ui.inc +++ b/purchasing/includes/purchasing_ui.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); @@ -7,11 +16,5 @@ include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/purchasing/includes/ui/invoice_ui.inc"); include_once($path_to_root . "/purchasing/includes/ui/po_ui.inc"); include_once($path_to_root . "/purchasing/includes/ui/grn_ui.inc"); - - - - //-------------------------------------------------------------------------------------- - - ?> \ No newline at end of file diff --git a/purchasing/includes/supp_trans_class.inc b/purchasing/includes/supp_trans_class.inc index 6bffc185..ad630bce 100644 --- a/purchasing/includes/supp_trans_class.inc +++ b/purchasing/includes/supp_trans_class.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ /* Definition of the Supplier Transactions class to hold all the information for an accounts payable invoice or credit note */ diff --git a/purchasing/includes/ui/grn_ui.inc b/purchasing/includes/ui/grn_ui.inc index f1b271c0..bd5bc45a 100644 --- a/purchasing/includes/ui/grn_ui.inc +++ b/purchasing/includes/ui/grn_ui.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------------------------------- function display_grn_summary(&$po, $editable=false) diff --git a/purchasing/po_entry_items.php b/purchasing/po_entry_items.php index 8c64fee5..9dedf36e 100644 --- a/purchasing/po_entry_items.php +++ b/purchasing/po_entry_items.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 4; $path_to_root=".."; include_once($path_to_root . "/purchasing/includes/po_class.inc"); diff --git a/purchasing/po_receive_items.php b/purchasing/po_receive_items.php index 14a017be..3f534e59 100644 --- a/purchasing/po_receive_items.php +++ b/purchasing/po_receive_items.php @@ -1,4 +1,14 @@ . +***********************************************************************/ $page_security = 11; $path_to_root=".."; include_once($path_to_root . "/purchasing/includes/po_class.inc"); diff --git a/purchasing/view/view_grn.php b/purchasing/view/view_grn.php index 4988358c..a9dcfbe9 100644 --- a/purchasing/view/view_grn.php +++ b/purchasing/view/view_grn.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root="../.."; include($path_to_root . "/purchasing/includes/po_class.inc"); diff --git a/purchasing/view/view_po.php b/purchasing/view/view_po.php index c572cf59..fa527cf4 100644 --- a/purchasing/view/view_po.php +++ b/purchasing/view/view_po.php @@ -1,6 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root="../.."; include($path_to_root . "/purchasing/includes/po_class.inc"); diff --git a/purchasing/view/view_supp_credit.php b/purchasing/view/view_supp_credit.php index 64efdbe5..22f7de2e 100644 --- a/purchasing/view/view_supp_credit.php +++ b/purchasing/view/view_supp_credit.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/purchasing/view/view_supp_invoice.php b/purchasing/view/view_supp_invoice.php index 8de06bdf..c0c89e13 100644 --- a/purchasing/view/view_supp_invoice.php +++ b/purchasing/view/view_supp_invoice.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/purchasing/view/view_supp_payment.php b/purchasing/view/view_supp_payment.php index 756f686c..aca40ec4 100644 --- a/purchasing/view/view_supp_payment.php +++ b/purchasing/view/view_supp_payment.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; diff --git a/sales/create_recurrent_invoices.php b/sales/create_recurrent_invoices.php index d398648c..ce9d5f86 100644 --- a/sales/create_recurrent_invoices.php +++ b/sales/create_recurrent_invoices.php @@ -1,6 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root=".."; include_once($path_to_root . "/sales/includes/cart_class.inc"); diff --git a/sales/credit_note_entry.php b/sales/credit_note_entry.php index cab8c3dc..348b2c3c 100644 --- a/sales/credit_note_entry.php +++ b/sales/credit_note_entry.php @@ -1,4 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------- // // Entry/Modify free hand Credit Note diff --git a/sales/customer_credit_invoice.php b/sales/customer_credit_invoice.php index 9796bbd7..7d318a9f 100644 --- a/sales/customer_credit_invoice.php +++ b/sales/customer_credit_invoice.php @@ -1,4 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------- // // Entry/Modify Credit Note for selected Sales Invoice diff --git a/sales/customer_delivery.php b/sales/customer_delivery.php index f289be39..d87c165a 100644 --- a/sales/customer_delivery.php +++ b/sales/customer_delivery.php @@ -1,4 +1,14 @@ . +***********************************************************************/ //----------------------------------------------------------------------------- // // Entry/Modify Delivery Note against Sales Order diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index fed8094e..afad4617 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -1,4 +1,14 @@ . +***********************************************************************/ //--------------------------------------------------------------------------- // // Entry/Modify Sales Invoice against single delivery diff --git a/sales/includes/db/branches_db.inc b/sales/includes/db/branches_db.inc index fb709542..ae637373 100644 --- a/sales/includes/db/branches_db.inc +++ b/sales/includes/db/branches_db.inc @@ -1,6 +1,14 @@ . +***********************************************************************/ function get_branch($branch_id) { $sql = "SELECT ".TB_PREF."cust_branch.*,".TB_PREF."salesman.salesman_name diff --git a/sales/includes/db/credit_status_db.inc b/sales/includes/db/credit_status_db.inc index 0bcabe70..040fb324 100644 --- a/sales/includes/db/credit_status_db.inc +++ b/sales/includes/db/credit_status_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_credit_status($description, $disallow_invoicing) { $sql = "INSERT INTO ".TB_PREF."credit_status (reason_description, dissallow_invoices) diff --git a/sales/includes/db/cust_trans_db.inc b/sales/includes/db/cust_trans_db.inc index 089ba61a..4be4af1d 100644 --- a/sales/includes/db/cust_trans_db.inc +++ b/sales/includes/db/cust_trans_db.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ //------------------------------------------------------------------------------ // Retreive parent document number(s) for given transaction // diff --git a/sales/includes/db/cust_trans_details_db.inc b/sales/includes/db/cust_trans_details_db.inc index b44c1d5f..903c8a92 100644 --- a/sales/includes/db/cust_trans_details_db.inc +++ b/sales/includes/db/cust_trans_details_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------------- function get_customer_trans_details($debtor_trans_type, $debtor_trans_no) diff --git a/sales/includes/db/custalloc_db.inc b/sales/includes/db/custalloc_db.inc index a9fc9346..fe523ae4 100644 --- a/sales/includes/db/custalloc_db.inc +++ b/sales/includes/db/custalloc_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------------- function add_cust_allocation($amount, $trans_type_from, $trans_no_from, diff --git a/sales/includes/db/customers_db.inc b/sales/includes/db/customers_db.inc index 30cf7b87..e50931e2 100644 --- a/sales/includes/db/customers_db.inc +++ b/sales/includes/db/customers_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function get_customer_details($customer_id, $to=null) { diff --git a/sales/includes/db/payment_db.inc b/sales/includes/db/payment_db.inc index c960dd33..d8049b31 100644 --- a/sales/includes/db/payment_db.inc +++ b/sales/includes/db/payment_db.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ /* Write/update customer payment. */ diff --git a/sales/includes/db/sales_credit_db.inc b/sales/includes/db/sales_credit_db.inc index 16efab69..7db5f664 100644 --- a/sales/includes/db/sales_credit_db.inc +++ b/sales/includes/db/sales_credit_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------------- // if ($writeoff_acc==0) return goods into $cart->Location // if src_docs!=0 => credit invoice else credit note diff --git a/sales/includes/db/sales_delivery_db.inc b/sales/includes/db/sales_delivery_db.inc index 2c80d46e..8fb7b1eb 100644 --- a/sales/includes/db/sales_delivery_db.inc +++ b/sales/includes/db/sales_delivery_db.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ //----------------------------------------------------------------------------- // insert/update sales delivery // diff --git a/sales/includes/db/sales_invoice_db.inc b/sales/includes/db/sales_invoice_db.inc index d783ac9a..8a128cb3 100644 --- a/sales/includes/db/sales_invoice_db.inc +++ b/sales/includes/db/sales_invoice_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //----------------------------------------------------------------------------- // Add or update Sales Invoice // diff --git a/sales/includes/db/sales_order_db.inc b/sales/includes/db/sales_order_db.inc index cbefe7aa..90e2ff86 100644 --- a/sales/includes/db/sales_order_db.inc +++ b/sales/includes/db/sales_order_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ //---------------------------------------------------------------------------------------- function get_demand_qty($stockid, $location) { diff --git a/sales/includes/db/sales_points_db.inc b/sales/includes/db/sales_points_db.inc index d095c711..c9f0d95c 100644 --- a/sales/includes/db/sales_points_db.inc +++ b/sales/includes/db/sales_points_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_sales_point($name, $location, $account, $cash, $credit) { $sql = "INSERT INTO ".TB_PREF."sales_pos (pos_name, pos_location, pos_account, cash_sale, credit_sale) VALUES (".db_escape($name) diff --git a/sales/includes/db/sales_types_db.inc b/sales/includes/db/sales_types_db.inc index 85c83420..2257ad5e 100644 --- a/sales/includes/db/sales_types_db.inc +++ b/sales/includes/db/sales_types_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_sales_type($name, $tax_included, $factor) { $sql = "INSERT INTO ".TB_PREF."sales_types (sales_type,tax_included,factor) VALUES (".db_escape($name).",'$tax_included',$factor)"; diff --git a/sales/includes/sales_db.inc b/sales/includes/sales_db.inc index ab35dc81..3708b7f5 100644 --- a/sales/includes/sales_db.inc +++ b/sales/includes/sales_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/banking.inc"); include_once($path_to_root . "/includes/db/inventory_db.inc"); include_once($path_to_root . "/sales/includes/db/sales_order_db.inc"); diff --git a/sales/includes/sales_ui.inc b/sales/includes/sales_ui.inc index 56e4746e..1c1ebbf9 100644 --- a/sales/includes/sales_ui.inc +++ b/sales/includes/sales_ui.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.inc"); diff --git a/sales/view/view_credit.php b/sales/view/view_credit.php index 05e73eb0..0ddf27f4 100644 --- a/sales/view/view_credit.php +++ b/sales/view/view_credit.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/sales/view/view_dispatch.php b/sales/view/view_dispatch.php index 9bd01beb..d96608ac 100644 --- a/sales/view/view_dispatch.php +++ b/sales/view/view_dispatch.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/sales/view/view_invoice.php b/sales/view/view_invoice.php index e430b455..f34116df 100644 --- a/sales/view/view_invoice.php +++ b/sales/view/view_invoice.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/sales/view/view_receipt.php b/sales/view/view_receipt.php index 51e79dc7..597e0213 100644 --- a/sales/view/view_receipt.php +++ b/sales/view/view_receipt.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 1; $path_to_root="../.."; include_once($path_to_root . "/includes/session.inc"); diff --git a/sales/view/view_sales_order.php b/sales/view/view_sales_order.php index dc068f70..5f98c6c1 100644 --- a/sales/view/view_sales_order.php +++ b/sales/view/view_sales_order.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; $path_to_root="../.."; include_once($path_to_root . "/sales/includes/cart_class.inc"); diff --git a/taxes/db/item_tax_types_db.inc b/taxes/db/item_tax_types_db.inc index 24a5eedd..5989f1a8 100644 --- a/taxes/db/item_tax_types_db.inc +++ b/taxes/db/item_tax_types_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_item_tax_type($name, $exempt, $exempt_from) { begin_transaction(); diff --git a/taxes/db/tax_groups_db.inc b/taxes/db/tax_groups_db.inc index 10f0256a..7823bcb9 100644 --- a/taxes/db/tax_groups_db.inc +++ b/taxes/db/tax_groups_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function clear_shipping_tax_group() { $sql = "UPDATE ".TB_PREF."tax_groups SET tax_shipping=0 WHERE 1"; db_query($sql, "could not update tax_shipping fields"); diff --git a/taxes/db/tax_types_db.inc b/taxes/db/tax_types_db.inc index 5cd18ebb..ec925042 100644 --- a/taxes/db/tax_types_db.inc +++ b/taxes/db/tax_types_db.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ function add_tax_type($name, $sales_gl_code, $purchasing_gl_code, $rate) { $sql = "INSERT INTO ".TB_PREF."tax_types (name, sales_gl_code, purchasing_gl_code, rate) diff --git a/taxes/item_tax_types.php b/taxes/item_tax_types.php index 31237f81..eac59b93 100644 --- a/taxes/item_tax_types.php +++ b/taxes/item_tax_types.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $path_to_root = ".."; $page_security = 3; @@ -122,7 +131,7 @@ while ($myrow = db_fetch($result2)) label_cell($myrow["name"]); label_cell($disallow_text); edit_button_cell("Edit".$myrow["id"], _("Edit")); - edit_button_cell("Delete".$myrow["id"], _("Delete")); + delete_button_cell("Delete".$myrow["id"], _("Delete")); end_row(); } diff --git a/taxes/tax_calc.inc b/taxes/tax_calc.inc index a9bf26e6..2cbb2199 100644 --- a/taxes/tax_calc.inc +++ b/taxes/tax_calc.inc @@ -1,5 +1,14 @@ . +***********************************************************************/ include_once($path_to_root . "/taxes/db/tax_groups_db.inc"); include_once($path_to_root . "/taxes/db/tax_types_db.inc"); include_once($path_to_root . "/taxes/db/item_tax_types_db.inc"); diff --git a/taxes/tax_groups.php b/taxes/tax_groups.php index 335691e1..8df87fab 100644 --- a/taxes/tax_groups.php +++ b/taxes/tax_groups.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root=".."; @@ -154,7 +163,7 @@ while ($myrow = db_fetch($result)) echo "" . $myrow["type" . $i] . "";*/ edit_button_cell("Edit".$myrow["id"], _("Edit")); - edit_button_cell("Delete".$myrow["id"], _("Delete")); + delete_button_cell("Delete".$myrow["id"], _("Delete")); end_row();; } diff --git a/taxes/tax_types.php b/taxes/tax_types.php index adfa7b9d..a7c53836 100644 --- a/taxes/tax_types.php +++ b/taxes/tax_types.php @@ -1,4 +1,14 @@ . +***********************************************************************/ $page_security = 3; $path_to_root=".."; @@ -110,7 +120,7 @@ while ($myrow = db_fetch($result)) label_cell($myrow["purchasing_gl_code"] . " " . $myrow["PurchasingAccountName"]); edit_button_cell("Edit".$myrow["id"], _("Edit")); - edit_button_cell("Delete".$myrow["id"], _("Delete")); + delete_button_cell("Delete".$myrow["id"], _("Delete")); end_row(); } diff --git a/themes/aqua/renderer.php b/themes/aqua/renderer.php index 2d85a4e2..68647981 100644 --- a/themes/aqua/renderer.php +++ b/themes/aqua/renderer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class renderer { function wa_header() diff --git a/themes/cool/renderer.php b/themes/cool/renderer.php index 2d85a4e2..68647981 100644 --- a/themes/cool/renderer.php +++ b/themes/cool/renderer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class renderer { function wa_header() diff --git a/themes/default/renderer.php b/themes/default/renderer.php index 460a3667..21c263fb 100644 --- a/themes/default/renderer.php +++ b/themes/default/renderer.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class renderer { function wa_header()