Fix reports to show table details (#4231)

This commit is contained in:
odiea
2025-04-22 09:51:31 -06:00
committed by GitHub
parent febe5109f0
commit 7fb75dbea9
3 changed files with 4 additions and 4 deletions

View File

@@ -512,7 +512,7 @@ class Receivings extends Secure_Controller
/**
* @throws ReflectionException
*/
public function save(int $receiving_id = -1): void //TODO: Replace -1 with a constant
public function postSave(int $receiving_id = -1): void //TODO: Replace -1 with a constant
{
$newdate = $this->request->getPost('date', FILTER_SANITIZE_FULL_SPECIAL_CHARS); //TODO: newdate does not follow naming conventions

View File

@@ -1668,7 +1668,7 @@ class Reports extends Secure_Controller
* @return void
* @noinspection PhpUnused
*/
public function get_detailed_sales_row(string $sale_id): void
public function getGet_detailed_sales_row(string $sale_id): void
{
$this->clearCache();
@@ -1948,7 +1948,7 @@ class Reports extends Secure_Controller
* @return void
* @noinspection PhpUnused
*/
public function get_detailed_receivings_row(string $receiving_id): void
public function getGet_detailed_receivings_row(string $receiving_id): void
{
$inputs = ['receiving_id' => $receiving_id];

View File

@@ -49,7 +49,7 @@
if(isset($editable))
{
?>
table_support.submit_handler('<?= esc(site_url("reports/get_detailed_$editable" . '_row'), 'url') ?>');
table_support.submit_handler('<?= esc(site_url("reports/get_detailed_$editable" . '_row')) ?>');
dialog_support.init("a.modal-dlg");
<?php
}