For #3730. @odeia raised a couple of issues that needed to be fixed.

This commit is contained in:
Steve Ireland
2023-04-11 08:46:57 -04:00
parent 3154b618e5
commit 6ffca6cfad
3 changed files with 4 additions and 4 deletions

View File

@@ -188,10 +188,10 @@ class Cashups extends Secure_Controller
public function postSave(int $cashup_id = NEW_ENTRY): void
{
$open_date = $this->request->getPost('open_date', FILTER_SANITIZE_FULL_SPECIAL_CHARS);
$open_date = $this->request->getPost('open_date');
$open_date_formatter = date_create_from_format($this->config['dateformat'] . ' ' . $this->config['timeformat'], $open_date);
$close_date = $this->request->getPost('close_date', FILTER_SANITIZE_NUMBER_INT);
$close_date = $this->request->getPost('close_date');
$close_date_formatter = date_create_from_format($this->config['dateformat'] . ' ' . $this->config['timeformat'], $close_date);
$cash_up_data = [

View File

@@ -125,7 +125,7 @@ class Expenses extends Secure_Controller
echo view("expenses/form", $data);
}
public function getRow(int $row_id): vpid
public function getRow(int $row_id): void
{
$expense_info = $this->expense->get_info($row_id);
$data_row = get_expenses_data_row($expense_info);

View File

@@ -201,7 +201,7 @@ class Cashup extends Model
}
else
{
return getEmptyObject('cash_up');
return $this->getEmptyObject('cash_up');
}
}