feat: updates on expenses

This commit is contained in:
JP
2024-08-21 05:37:35 +08:00
parent 3af7207ec3
commit daa6f692e1
9 changed files with 277 additions and 21 deletions

View File

@@ -16,4 +16,12 @@ class EditExpense extends EditRecord
Actions\DeleteAction::make(),
];
}
protected function mutateFormDataBeforeFill(array $data): array
{
return [
'client' => $this->getRecord()->branch->client->id,
...$this->getRecord()->toArray(),
];
}
}