feat(tickets): extend FFI ticket column presentation
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user