Fix for suspended sales (#4283) (#4303)

This commit is contained in:
jekkos authored and GitHub committed 2025-08-15 23:12:35 +02:00
1 parent 880fb8faef
commit 2eff79a8b6
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -75,7 +75,7 @@ class Dinner_table extends Model
* @param int $dinner_table_id
* @return string
*/
public function get_name(int $dinner_table_id): string
public function get_name(?string $dinner_table_id): string
{
if (empty($dinner_table_id)) {
return '';
+2 -2
View File
@@ -6,7 +6,7 @@
use App\Models\Employee;
use App\Models\Customer;
$this->dinner_table = model(Dinner_table::class);
?>
<style>
@@ -37,7 +37,7 @@ use App\Models\Customer;
<td><?= $suspended_sale['doc_id'] ?></td>
<td><?= date($config['dateformat'], strtotime($suspended_sale['sale_time'])) ?></td>
<?php if ($config['dinner_table_enable']) { ?>
<td><?= esc($this->Dinner_table->get_name($suspended_sale['dinner_table_id'])) ?></td>
<td><?= esc($this->dinner_table->get_name($suspended_sale['dinner_table_id'])) ?></td>
<?php } ?>
<td>
<?php