Changes to Cash_up and Cash_ups for better date feature and Table view to show data (#3958)

* Update Cashup.php

If(!count_only) was causing the table view to not show properly.

* Update Cashups.php

empty it must not be.
This commit is contained in:
odiea
2024-03-28 02:45:55 -06:00
committed by jekkos
parent c1c2e9df77
commit 9f78a8a075
2 changed files with 2 additions and 9 deletions

View File

@@ -95,7 +95,7 @@ class Cashups extends Secure_Controller
}
// open cashup
if(empty($cash_ups_info->cashup_id))
if($cash_ups_info->cashup_id < 0)
{
$cash_ups_info->open_date = date('Y-m-d H:i:s');
$cash_ups_info->close_date = $cash_ups_info->open_date;

View File

@@ -98,14 +98,7 @@ class Cashup extends Model
if($count_only)
{
$builder->select('COUNT(cash_up.cashup_id) as count');
}
if(!$count_only)
{
$builder->select('
cash_up.cashup_id,
');
}
}
else
{
$builder->select('