diff --git a/app/Controllers/Reports.php b/app/Controllers/Reports.php index 1c98d8d9d..7c6bb205c 100644 --- a/app/Controllers/Reports.php +++ b/app/Controllers/Reports.php @@ -1308,7 +1308,7 @@ class Reports extends Secure_Controller 'comment' => $row['comment'], 'edit' => anchor( 'sales/edit/' . $row['sale_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', $button_key => $button_label, @@ -1435,7 +1435,7 @@ class Reports extends Secure_Controller 'comment' => $row['comment'], 'edit' => anchor( 'sales/edit/' . $row['sale_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', $button_key => $button_label, @@ -1567,7 +1567,7 @@ class Reports extends Secure_Controller 'comment' => $row['comment'], 'edit' => anchor( 'sales/edit/' . $row['sale_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', $button_key => $button_label, @@ -1655,7 +1655,7 @@ class Reports extends Secure_Controller 'comment' => $report_data['comment'], 'edit' => anchor( 'sales/edit/' . $report_data['sale_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', $button_key => $button_label, @@ -1831,7 +1831,7 @@ class Reports extends Secure_Controller 'comment' => $row['comment'], 'edit' => anchor( 'sales/edit/' . $row['sale_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', $button_key => $button_label, @@ -1911,7 +1911,7 @@ class Reports extends Secure_Controller 'comment' => $report_data['comment'], 'edit' => anchor( 'receivings/edit/' . $report_data['receiving_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', 'data-btn-submit' => lang('Common.submit'), @@ -1971,7 +1971,7 @@ class Reports extends Secure_Controller 'comment' => $row['comment'], 'edit' => anchor( 'receivings/edit/' . $row['receiving_id'], - '', + '', [ 'class' => 'modal-dlg print_hide', 'data-btn-delete' => lang('Common.delete'), diff --git a/app/Helpers/tabular_helper.php b/app/Helpers/tabular_helper.php index 70effeba7..98b2bf716 100644 --- a/app/Helpers/tabular_helper.php +++ b/app/Helpers/tabular_helper.php @@ -117,19 +117,19 @@ function get_sale_data_row(object $sale): array ? '-' : anchor( "$controller/invoice/$sale->sale_id", - '', + '', ['title' => lang('Sales.show_invoice')] ); } $row['receipt'] = anchor( "$controller/receipt/$sale->sale_id", - '', + '', ['title' => lang('Sales.show_receipt')] ); $row['edit'] = anchor( "$controller/edit/$sale->sale_id", - '', + '', [ 'class' => 'modal-dlg print_hide', 'data-btn-delete' => lang('Common.delete'), @@ -231,7 +231,7 @@ function get_person_data_row(object $person): array ? '' : anchor( "Messages/view/$person->person_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -240,7 +240,7 @@ function get_person_data_row(object $person): array ), 'edit' => anchor( "$controller/view/$person->person_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -298,7 +298,7 @@ function get_customer_data_row(object $person, object $stats): array ? '' : anchor( "Messages/view/$person->person_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -307,7 +307,7 @@ function get_customer_data_row(object $person, object $stats): array ), 'edit' => anchor( "$controller/view/$person->person_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -368,7 +368,7 @@ function get_supplier_data_row(object $supplier): array ? '' : anchor( "Messages/view/$supplier->person_id", - '', + '', [ 'class' => "modal-dlg", 'data-btn-submit' => lang('Common.submit'), @@ -377,7 +377,7 @@ function get_supplier_data_row(object $supplier): array ), 'edit' => anchor( "$controller/view/$supplier->person_id", - '', + '', [ 'class' => "modal-dlg", 'data-btn-submit' => lang('Common.submit'), @@ -497,7 +497,7 @@ function get_item_data_row(object $item): array $icons = [ 'inventory' => anchor( "$controller/inventory/$item->item_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -506,7 +506,7 @@ function get_item_data_row(object $item): array ), 'stock' => anchor( "$controller/countDetails/$item->item_id", - '', + '', [ 'class' => 'modal-dlg', 'title' => lang(ucfirst($controller) . ".details_count") @@ -514,7 +514,7 @@ function get_item_data_row(object $item): array ), 'edit' => anchor( "$controller/view/$item->item_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -560,7 +560,7 @@ function get_giftcard_data_row(object $giftcard): array 'value' => to_currency($giftcard->value), 'edit' => anchor( "$controller/view/$giftcard->giftcard_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -606,7 +606,7 @@ function get_item_kit_data_row(object $item_kit): array 'total_unit_price' => to_currency($item_kit->total_unit_price), 'edit' => anchor( "$controller/view/$item_kit->item_kit_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -714,7 +714,7 @@ function get_attribute_definition_data_row(object $attribute_row): array 'definition_flags' => $definition_flags, 'edit' => anchor( "$controller/view/$attribute_row->definition_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -754,7 +754,7 @@ function get_expense_category_data_row(object $expense_category): array 'category_description' => $expense_category->category_description, 'edit' => anchor( "$controller/view/$expense_category->expense_category_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -808,7 +808,7 @@ function get_expenses_data_row(object $expense): array 'created_by' => $expense->first_name . ' ' . $expense->last_name, 'edit' => anchor( "$controller/view/$expense->expense_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -903,14 +903,14 @@ function get_cash_up_data_row(object $cash_up): array 'close_date' => to_datetime(strtotime($cash_up->close_date)), 'close_employee_id' => $cash_up->close_first_name . ' ' . $cash_up->close_last_name, 'closed_amount_cash' => to_currency($cash_up->closed_amount_cash), - 'note' => $cash_up->note ? '' : '', + 'note' => $cash_up->note ? '' : '', 'closed_amount_due' => to_currency($cash_up->closed_amount_due), 'closed_amount_card' => to_currency($cash_up->closed_amount_card), 'closed_amount_check' => to_currency($cash_up->closed_amount_check), 'closed_amount_total' => to_currency($cash_up->closed_amount_total), 'edit' => anchor( "$controller/view/$cash_up->cashup_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), diff --git a/app/Helpers/tax_helper.php b/app/Helpers/tax_helper.php index 9e5008e38..e8241c70d 100644 --- a/app/Helpers/tax_helper.php +++ b/app/Helpers/tax_helper.php @@ -36,7 +36,7 @@ function get_tax_code_data_row($tax_code_row): array 'state' => $tax_code_row->state, 'edit' => anchor( "$controller_name/view_tax_codes/$tax_code_row->tax_code", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -74,7 +74,7 @@ function get_tax_categories_data_row($tax_categories_row): array 'tax_group_sequence' => $tax_categories_row->tax_group_sequence, 'edit' => anchor( "$controller_name/view/$tax_categories_row->tax_category_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -111,7 +111,7 @@ function get_tax_jurisdictions_data_row($tax_jurisdiction_row): array 'reporting_authority' => $tax_jurisdiction_row->reporting_authority, 'edit' => anchor( "$controller_name/view/$tax_jurisdiction_row->jurisdiction_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), @@ -157,7 +157,7 @@ function get_tax_rates_data_row($tax_rates_row): array 'rounding_code_name' => Rounding_mode::get_rounding_code_name($tax_rates_row->tax_rounding_code), 'edit' => anchor( "$controller_name/view/$tax_rates_row->tax_rate_id", - '', + '', [ 'class' => 'modal-dlg', 'data-btn-submit' => lang('Common.submit'), diff --git a/app/Views/attributes/form.php b/app/Views/attributes/form.php index 2b47e354a..10c85b8a3 100644 --- a/app/Views/attributes/form.php +++ b/app/Views/attributes/form.php @@ -83,7 +83,7 @@