Fix reports to show table details (#4231)

This commit is contained in:
odiea authored and GitHub committed 2025-04-22 17:51:31 +02:00
1 parent febe5109f0
commit 7fb75dbea9
3 files changed
+4 -4

No files matched your search

+1 -1
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
+2 -2
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];
+1 -1
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
}