feat(ticket): persist and expose refund details

This commit is contained in:
2026-09-14 11:57:31 -03:00
parent adec5d1725
commit caed44fcc8
10 changed files with 133 additions and 15 deletions

View File

@@ -98,6 +98,21 @@ class AdminAppTicketExportServiceTest extends TestCase
$this->assertStringContainsString('Vianda', $html);
}
public function test_it_uses_the_refund_type_label_when_displaying_a_refunded_status(): void
{
$row = $this->row();
$row['status'] = 'refunded';
$row['status_label'] = 'Reembolso parcial';
$displayRow = (new AdminAppTicketRowService)->displayRows(
collect([$row]),
$this->columnService()->columns($this->tenant()),
'America/La_Paz',
)->first();
$this->assertSame('Reembolso parcial', $displayRow['status']);
}
private function reportService(): AdminAppTicketReportService
{
$rowService = Mockery::mock(AdminAppTicketRowService::class)->makePartial();