refactor: streamline sales and expenses management in client resource
- Move create/edit logic from relation managers to dedicated resource pages - Add transaction handling with proper rollback in sale create/update - Fix expense transaction creation by using correct array access - Set default client from query parameter in sale/expense forms - Exclude 'type' field from balance creation to prevent errors
This commit is contained in:
@@ -15,7 +15,7 @@ class CreateBalanceAction extends BaseAction
|
||||
|
||||
public function __invoke(Data $payload, Closure $next)
|
||||
{
|
||||
$this->createBalanceCommand->execute($payload->balanceDTO->except('amount')->toArray());
|
||||
$this->createBalanceCommand->execute($payload->balanceDTO->except('amount', 'type')->toArray());
|
||||
|
||||
return $next($payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user