add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+4 -4
View File
@@ -10,7 +10,8 @@ class SlipPrinterService
private SlipPrinterConfigService $configService,
private SlipPrinterFormatterService $formatter,
private SlipPrinterPdfService $pdfService
) {}
) {
}
public function print(array $input, ?int $userId): array
{
@@ -44,7 +45,7 @@ class SlipPrinterService
return [
'ok' => true,
'text' => $header.$body.$footer,
'text' => $header . $body . $footer,
'width' => $width,
];
}
@@ -96,7 +97,7 @@ class SlipPrinterService
public function reprint(int $id, ?int $userId): array
{
$row = LateSlipLog::query()->find($id);
if (! $row) {
if (!$row) {
return ['ok' => false, 'message' => 'Slip not found.'];
}
@@ -172,7 +173,6 @@ class SlipPrinterService
{
$cfg = $this->configService->printerConfig();
$width = (int) ($cfg['chars_per_line'] ?? 48);
return $width > 0 ? $width : 48;
}