booking = $booking; } public function handle() { $this->booking->transactions()->whereIn('transactions.type', [TransactionType::INVOICE, TransactionType::SUPPLIER_DELIVER])->delete(); $this->booking->documents()->whereIn('document_type', [DocumentType::INVOICE, DocumentType::PURCHASE_ORDER, DocumentType::DELIVER_ORDER, DocumentType::SUPPLIER_DELIVER_ORDER])->delete(); $this->booking->status = ApprovalStatus::APPROVED; $this->booking->save(); (App()->make(CreateInvoiceTransactionProcessor::class))->execute($this->booking); } }