feat(tickets): extend FFI ticket column presentation

This commit is contained in:
2026-09-01 14:29:18 -03:00
parent 5e541f7cd0
commit 6896646c54
3 changed files with 37 additions and 19 deletions

View File

@@ -53,10 +53,11 @@ class AdminAppTicketExportServiceTest extends TestCase
$this->assertSame('Tickets', $sheet->getTitle());
$this->assertSame('N° de orden', $sheet->getCell('A1')->getValue());
$this->assertSame('#15', $sheet->getCell('A2')->getValue());
$this->assertSame('Cena', $sheet->getCell('D2')->getValue());
$this->assertSame(8000.0, $sheet->getCell('E2')->getValue());
$this->assertSame('25', $sheet->getCell('G2')->getValue());
$this->assertSame('Usado', $sheet->getCell('H2')->getValue());
$this->assertSame('Vianda', $sheet->getCell('D2')->getValue());
$this->assertSame('12/10', $sheet->getCell('E2')->getValue());
$this->assertSame(8000.0, $sheet->getCell('G2')->getValue());
$this->assertSame('25', $sheet->getCell('I2')->getValue());
$this->assertSame('Usado', $sheet->getCell('J2')->getValue());
} finally {
@unlink($path);
}
@@ -93,7 +94,8 @@ class AdminAppTicketExportServiceTest extends TestCase
$this->assertStringContainsString('Generado el 24/08/2026 13:53', $html);
$this->assertStringContainsString('25', $html);
$this->assertStringNotContainsString('00000000-0000-0000-0000-000000000001', $html);
$this->assertStringContainsString('Cena', $html);
$this->assertStringContainsString('Almuerzo', $html);
$this->assertStringContainsString('Vianda', $html);
}
private function reportService(): AdminAppTicketReportService
@@ -110,8 +112,10 @@ class AdminAppTicketExportServiceTest extends TestCase
return [
'order_number' => 15,
'category' => 'Comida',
'product' => '12/10',
'type' => 'Cena',
'product' => 'Almuerzo',
'type' => 'Vianda',
'date' => '12/10',
'size' => '-',
'amount' => 8000.0,
'client' => 'Cliente Test',
'id' => 25,