mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update merge actions to bulk_print
This commit is contained in:
parent
29ceb1f131
commit
6ebf5ad31b
@ -535,7 +535,7 @@ class CreditController extends BaseController
|
|||||||
return response()->json(['message' => ctrans('texts.sent_message')], 200);
|
return response()->json(['message' => ctrans('texts.sent_message')], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($action == 'merge' && auth()->user()->can('view', $credits->first())){
|
if($action == 'bulk_print' && auth()->user()->can('view', $credits->first())){
|
||||||
|
|
||||||
$paths = $credits->map(function ($credit){
|
$paths = $credits->map(function ($credit){
|
||||||
return $credit->service()->getCreditPdf($credit->invitations->first());
|
return $credit->service()->getCreditPdf($credit->invitations->first());
|
||||||
|
@ -589,7 +589,7 @@ class InvoiceController extends BaseController
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if($action == 'merge' && auth()->user()->can('view', $invoices->first())){
|
if($action == 'bulk_print' && auth()->user()->can('view', $invoices->first())){
|
||||||
|
|
||||||
$paths = $invoices->map(function ($invoice){
|
$paths = $invoices->map(function ($invoice){
|
||||||
return $invoice->service()->getInvoicePdf();
|
return $invoice->service()->getInvoicePdf();
|
||||||
|
@ -516,7 +516,7 @@ class PurchaseOrderController extends BaseController
|
|||||||
return response()->json(['message' => ctrans('texts.sent_message')], 200);
|
return response()->json(['message' => ctrans('texts.sent_message')], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
if($action == 'merge' && auth()->user()->can('view', $purchase_orders->first())){
|
if($action == 'bulk_print' && auth()->user()->can('view', $purchase_orders->first())){
|
||||||
|
|
||||||
$paths = $purchase_orders->map(function ($purchase_order){
|
$paths = $purchase_orders->map(function ($purchase_order){
|
||||||
return $purchase_order->service()->getPurchaseOrderPdf();
|
return $purchase_order->service()->getPurchaseOrderPdf();
|
||||||
|
@ -562,7 +562,7 @@ class QuoteController extends BaseController
|
|||||||
return $this->listResponse(Quote::withTrashed()->whereIn('id', $this->transformKeys($ids))->company());
|
return $this->listResponse(Quote::withTrashed()->whereIn('id', $this->transformKeys($ids))->company());
|
||||||
}
|
}
|
||||||
|
|
||||||
if($action == 'merge' && auth()->user()->can('view', $quotes->first())){
|
if($action == 'bulk_print' && auth()->user()->can('view', $quotes->first())){
|
||||||
|
|
||||||
$paths = $quotes->map(function ($quote){
|
$paths = $quotes->map(function ($quote){
|
||||||
return $quote->service()->getQuotePdf();
|
return $quote->service()->getQuotePdf();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user