mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-10 18:09:30 -04:00
For #3730. @odeia raised a couple of issues that needed to be fixed.
This commit is contained in:
@@ -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 = [
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -201,7 +201,7 @@ class Cashup extends Model
|
||||
}
|
||||
else
|
||||
{
|
||||
return getEmptyObject('cash_up');
|
||||
return $this->getEmptyObject('cash_up');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user