mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 18:09:30 -04:00
This commit renames the get_row ajax call to getAjaxRow in order to line up with the changes made to get customer maintenance working.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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']);
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user