mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-19 14:01:38 -04:00
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:
@@ -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;
|
||||
|
||||
@@ -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('
|
||||
|
||||
Reference in New Issue
Block a user