feat(sale): add changed_at serialization to SaleModificationResource

This commit is contained in:
2026-08-24 16:12:55 -03:00
parent 1dd2366957
commit 80a02fdc52
2 changed files with 34 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ class SaleModificationResource extends JsonResource
'attribute' => $this->attribute,
'old_value' => $this->old_value,
'new_value' => $this->new_value,
'changed_at' => $this->changed_at->utc()->toIso8601String(),
'date' => $this->changed_at->format('Y-m-d'),
'time' => $this->changed_at->format('H:i:s'),
'actor_type' => $this->actor_type->value,