mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-27 19:51:09 -04:00
fix merge conflicts
This commit is contained in:
@ -12,7 +12,7 @@ use Crater\Invoice;
|
||||
use Crater\InvoiceItem;
|
||||
use Carbon\Carbon;
|
||||
use Crater\Item;
|
||||
use Crater\Mail\invoicePdf;
|
||||
use Crater\Mail\InvoicePdf;
|
||||
use function MongoDB\BSON\toJSON;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Crater\User;
|
||||
@ -175,6 +175,7 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
if (!config('mail.from.name')) {
|
||||
return response()->json([
|
||||
'error' => 'from_email_does_not_exist'
|
||||
@ -182,6 +183,9 @@ class InvoicesController extends Controller
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new invoicePdf($data));
|
||||
=======
|
||||
\Mail::to($email)->send(new InvoicePdf($data));
|
||||
>>>>>>> c2eb22d66634a3b57d7ebade6ab9c7b359047c93
|
||||
}
|
||||
|
||||
$invoice = Invoice::with(['items', 'user', 'invoiceTemplate', 'taxes'])->find($invoice->id);
|
||||
@ -410,6 +414,7 @@ class InvoicesController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
if (!config('mail.from.name')) {
|
||||
return response()->json([
|
||||
'error' => 'from_email_does_not_exist'
|
||||
@ -417,6 +422,9 @@ class InvoicesController extends Controller
|
||||
}
|
||||
|
||||
\Mail::to($email)->send(new invoicePdf($data));
|
||||
=======
|
||||
\Mail::to($email)->send(new InvoicePdf($data));
|
||||
>>>>>>> c2eb22d66634a3b57d7ebade6ab9c7b359047c93
|
||||
|
||||
if ($invoice->status == Invoice::STATUS_DRAFT) {
|
||||
$invoice->status = Invoice::STATUS_SENT;
|
||||
|
||||
Reference in New Issue
Block a user