From 5897130e0acf8ddd4670383dd61ef6f48a4da48a Mon Sep 17 00:00:00 2001 From: jekkos Date: Sun, 24 Apr 2022 23:29:39 +0200 Subject: [PATCH] Fix sales last row style (#3379) --- application/helpers/tabular_helper.php | 8 ++++---- application/views/sales/manage.php | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/application/helpers/tabular_helper.php b/application/helpers/tabular_helper.php index 8b68ac37f..3a417d274 100644 --- a/application/helpers/tabular_helper.php +++ b/application/helpers/tabular_helper.php @@ -138,10 +138,10 @@ function get_sale_data_last_row($sales) return array( 'sale_id' => '-', - 'sale_time' => ''.$CI->lang->line('sales_total').'', - 'amount_due' => ''.to_currency($sum_amount_due).'', - 'amount_tendered' => ''. to_currency($sum_amount_tendered).'', - 'change_due' => ''.to_currency($sum_change_due).'' + 'sale_time' => $CI->lang->line('sales_total'), + 'amount_due' => to_currency($sum_amount_due), + 'amount_tendered' => to_currency($sum_amount_tendered), + 'change_due' => to_currency($sum_change_due) ); } diff --git a/application/views/sales/manage.php b/application/views/sales/manage.php index 65701a0ac..b5b920bde 100755 --- a/application/views/sales/manage.php +++ b/application/views/sales/manage.php @@ -35,6 +35,7 @@ $(document).ready(function() if($("#table tbody tr").length > 1) { $("#payment_summary").html(response.payment_summary); $("#table tbody tr:last td:first").html(""); + $("#table tbody tr:last").css('font-weight', 'bold'); } }, queryParams: function() {