Skip to content

Commit fc71507

Browse files
committed
Fixed default order on quote items
1 parent f868be6 commit fc71507

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Http/Controllers/Portal/InvoiceController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function process(Invoice $invoice, Request $request)
8888
if ($invoice->organisation) {
8989
$organisation_address = $invoice->organisation->getPrimaryAddress();
9090
}
91-
91+
9292
return Pdf::setOption([
9393
'fontDir' => public_path('vendor/laravel-crm/fonts'),
9494
])

src/Http/Controllers/Portal/QuoteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function process(Quote $quote, Request $request)
105105
if ($quote->organisation) {
106106
$organisation_address = $quote->organisation->getPrimaryAddress();
107107
}
108-
108+
109109
return Pdf::setOption([
110110
'fontDir' => public_path('vendor/laravel-crm/fonts'),
111111
])

src/Services/QuoteService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function create($request, $person = null, $organisation = null, $client =
8787
'tax_amount' => ($product['amount'] * 100) * ($taxRate / 100),
8888
'currency' => $request->currency,
8989
'comments' => $product['comments'],
90-
'order' => $product['order'] ?? 0,
90+
'order' => $quoteProductOrder,
9191
]);
9292
}
9393
}

0 commit comments

Comments
 (0)