diff --git a/app/Controllers/Reports.php b/app/Controllers/Reports.php index 69f242c61..06571fbe5 100644 --- a/app/Controllers/Reports.php +++ b/app/Controllers/Reports.php @@ -1301,7 +1301,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, @@ -1428,7 +1428,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, @@ -1560,7 +1560,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, @@ -1648,7 +1648,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, @@ -1819,7 +1819,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, @@ -1899,7 +1899,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'), @@ -1954,7 +1954,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 82f6dedd9..39c622f12 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'), @@ -496,7 +496,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'), @@ -505,7 +505,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") @@ -513,7 +513,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'), @@ -559,7 +559,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'), @@ -605,7 +605,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'), @@ -707,7 +707,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'), @@ -747,7 +747,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'), @@ -801,7 +801,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'), @@ -896,14 +896,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 8e216af8e..5042e99ff 100644 --- a/app/Views/attributes/form.php +++ b/app/Views/attributes/form.php @@ -83,7 +83,7 @@