From c564debc6361d2f8fd5477f5b658fdf5b74abc70 Mon Sep 17 00:00:00 2001 From: Steve Ireland Date: Sat, 25 Mar 2023 09:05:05 -0400 Subject: [PATCH] This commit renames the get_row ajax call to getAjaxRow in order to line up with the changes made to get customer maintenance working. --- app/Controllers/Attributes.php | 2 +- app/Controllers/Cashups.php | 2 +- app/Controllers/Expenses.php | 2 +- app/Controllers/Expenses_categories.php | 2 +- app/Controllers/Giftcards.php | 2 +- app/Controllers/Item_kits.php | 2 +- app/Controllers/Items.php | 2 +- app/Controllers/Persons.php | 2 +- app/Controllers/Sales.php | 2 +- app/Controllers/Suppliers.php | 2 +- app/Controllers/Tax_categories.php | 2 +- app/Controllers/Tax_codes.php | 2 +- app/Controllers/Tax_jurisdictions.php | 2 +- app/Controllers/Taxes.php | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Controllers/Attributes.php b/app/Controllers/Attributes.php index 6fa3672cc..2b7cd5f61 100644 --- a/app/Controllers/Attributes.php +++ b/app/Controllers/Attributes.php @@ -160,7 +160,7 @@ class Attributes extends Secure_Controller echo json_encode($suggestions); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $attribute_definition_info = $this->attribute->get_info($row_id); $attribute_definition_info->definition_flags = $this->get_attributes($attribute_definition_info->definition_flags); diff --git a/app/Controllers/Cashups.php b/app/Controllers/Cashups.php index 4d9dd1752..8ccee018d 100644 --- a/app/Controllers/Cashups.php +++ b/app/Controllers/Cashups.php @@ -178,7 +178,7 @@ class Cashups extends Secure_Controller echo view("cashups/form", $data); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $cash_ups_info = $this->cashup->get_info($row_id); $data_row = get_cash_up_data_row($cash_ups_info); diff --git a/app/Controllers/Expenses.php b/app/Controllers/Expenses.php index 927fe91cb..2a1911134 100644 --- a/app/Controllers/Expenses.php +++ b/app/Controllers/Expenses.php @@ -125,7 +125,7 @@ class Expenses extends Secure_Controller echo view("expenses/form", $data); } - public function get_row(int $row_id) + public function getAjaxRow(int $row_id): vpid { $expense_info = $this->expense->get_info($row_id); $data_row = get_expenses_data_row($expense_info); diff --git a/app/Controllers/Expenses_categories.php b/app/Controllers/Expenses_categories.php index 04c7faa07..d7d4ee519 100644 --- a/app/Controllers/Expenses_categories.php +++ b/app/Controllers/Expenses_categories.php @@ -46,7 +46,7 @@ class Expenses_categories extends Secure_Controller //TODO: Is this class ever u echo json_encode (['total' => $total_rows, 'rows' => $data_rows]); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $data_row = get_expense_category_data_row($this->expense_category->get_info($row_id)); diff --git a/app/Controllers/Giftcards.php b/app/Controllers/Giftcards.php index 667e86c3a..76d83f8e1 100644 --- a/app/Controllers/Giftcards.php +++ b/app/Controllers/Giftcards.php @@ -64,7 +64,7 @@ class Giftcards extends Secure_Controller echo json_encode($suggestions); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $data_row = get_giftcard_data_row($this->giftcard->get_info($row_id)); diff --git a/app/Controllers/Item_kits.php b/app/Controllers/Item_kits.php index 95e42fedf..2fca99676 100644 --- a/app/Controllers/Item_kits.php +++ b/app/Controllers/Item_kits.php @@ -103,7 +103,7 @@ class Item_kits extends Secure_Controller echo json_encode($suggestions); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { // calculate the total cost and retail price of the Kit, so it can be added to the table refresh $item_kit = $this->_add_totals_to_item_kit($this->item_kit->get_info($row_id)); diff --git a/app/Controllers/Items.php b/app/Controllers/Items.php index 08205ebb2..2274c6a1d 100644 --- a/app/Controllers/Items.php +++ b/app/Controllers/Items.php @@ -228,7 +228,7 @@ class Items extends Secure_Controller echo json_encode($suggestions); } - public function get_row(string $item_ids): void //TODO: It's possible an array would be better. + public function getAjaxRow(string $item_ids): void //TODO: It's possible an array would be better. { $item_infos = $this->item->get_multiple_info(explode(':', $item_ids), $this->item_lib->get_item_location()); diff --git a/app/Controllers/Persons.php b/app/Controllers/Persons.php index d13070b4b..ffc449165 100644 --- a/app/Controllers/Persons.php +++ b/app/Controllers/Persons.php @@ -36,7 +36,7 @@ abstract class Persons extends Secure_Controller /** * Gets one row for a person manage table. This is called using AJAX to update one row. */ - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $data_row = get_person_data_row($this->person->get_info($row_id)); diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index 8fa384d64..f443b20e3 100644 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -91,7 +91,7 @@ class Sales extends Secure_Controller } } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $sale_info = $this->sale->get_info($row_id)->getRow(); $data_row = get_sale_data_row($sale_info); diff --git a/app/Controllers/Suppliers.php b/app/Controllers/Suppliers.php index d17e6c8d4..8e41ed6e7 100644 --- a/app/Controllers/Suppliers.php +++ b/app/Controllers/Suppliers.php @@ -32,7 +32,7 @@ class Suppliers extends Persons * @param $row_id * @return void */ - public function get_row($row_id): void + public function getAjaxRow($row_id): void { $data_row = get_supplier_data_row($this->supplier->get_info($row_id)); $data_row['category'] = $this->supplier->get_category_name($data_row['category']); diff --git a/app/Controllers/Tax_categories.php b/app/Controllers/Tax_categories.php index 505daf544..1e3b8be71 100644 --- a/app/Controllers/Tax_categories.php +++ b/app/Controllers/Tax_categories.php @@ -46,7 +46,7 @@ class Tax_categories extends Secure_Controller echo json_encode (['total' => $total_rows, 'rows' => $data_rows]); } - public function get_row($row_id): void + public function getAjaxRow($row_id): void { $data_row = get_tax_categories_data_row($this->tax_category->get_info($row_id)); diff --git a/app/Controllers/Tax_codes.php b/app/Controllers/Tax_codes.php index 13c5ee4f9..5249248f2 100644 --- a/app/Controllers/Tax_codes.php +++ b/app/Controllers/Tax_codes.php @@ -54,7 +54,7 @@ class Tax_codes extends Secure_Controller echo json_encode (['total' => $total_rows, 'rows' => $data_rows]); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $data_row = get_tax_code_data_row($this->tax_code->get_info($row_id)); diff --git a/app/Controllers/Tax_jurisdictions.php b/app/Controllers/Tax_jurisdictions.php index 6a7296bf0..55bec76ad 100644 --- a/app/Controllers/Tax_jurisdictions.php +++ b/app/Controllers/Tax_jurisdictions.php @@ -49,7 +49,7 @@ class Tax_jurisdictions extends Secure_Controller echo json_encode (['total' => $total_rows, 'rows' => $data_rows]); } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $data_row = get_tax_jurisdictions_data_row($this->tax_jurisdiction->get_info($row_id)); diff --git a/app/Controllers/Taxes.php b/app/Controllers/Taxes.php index ccfbdeec6..53023b86a 100644 --- a/app/Controllers/Taxes.php +++ b/app/Controllers/Taxes.php @@ -119,7 +119,7 @@ class Taxes extends Secure_Controller } - public function get_row(int $row_id): void + public function getAjaxRow(int $row_id): void { $data_row = get_tax_rates_data_row($this->tax->get_info($row_id));