feat: updates on expenses
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user