Skip to content

Commit

Permalink
Merge pull request #3668 from ColoredCow/master
Browse files Browse the repository at this point in the history
Release 21 June
  • Loading branch information
GauravGusain98 authored Jun 21, 2024
2 parents 824e3b6 + d7ed808 commit 2e6d98a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@
data() {
return {
clients: @json($clients),
invoice: @json($invoice),
projects: @json($invoice->client->projects),
allExchangeRate: @json($currencyService->getAllCurrentRatesInINR()),
Expand Down
1 change: 0 additions & 1 deletion Modules/Invoice/Services/InvoiceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ public function edit($invoice)

return [
'invoice' => $invoice,
'clients' => $this->getClientsForInvoice(),
'countries' => Country::all(),
'paymentReceivedEmailSubject' => $emailData['subject'],
'paymentReceivedEmailBody' => $emailData['body'],
Expand Down
10 changes: 2 additions & 8 deletions app/Http/Controllers/Finance/InvoiceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,11 @@ public function store(InvoiceRequest $request)
*
* @param \App\Models\Finance\Invoice $invoice
*
* @return \Illuminate\View\View
* @return void
*/
public function edit(Invoice $invoice)
{
$clients = Client::getInvoicableClients(collect($invoice->projectStageBillings)->pluck('id')->toArray());
$invoice->load('projectStageBillings', 'projectStageBillings.projectStage', 'projectStageBillings.projectStage.project');

return view('finance.invoice.edit')->with([
'invoice' => $invoice,
'clients' => $clients,
]);
// Show the form for editing the specified resource.
}

/**
Expand Down
29 changes: 0 additions & 29 deletions resources/views/finance/invoice/edit.blade.php

This file was deleted.

0 comments on commit 2e6d98a

Please sign in to comment.