remove unnecessary file #mvb7xp
This commit is contained in:
parent
82f4f007a6
commit
01b619ce5b
@ -1,43 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Http\ViewComposers;
|
|
||||||
|
|
||||||
use Illuminate\View\View;
|
|
||||||
|
|
||||||
class InvoiceText
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* Bind data to the view.
|
|
||||||
*
|
|
||||||
* @param View $view
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function compose(View $view)
|
|
||||||
{
|
|
||||||
$text_override = [];
|
|
||||||
|
|
||||||
$text_items = setting('invoice.item_name', 'general.items');
|
|
||||||
|
|
||||||
if ($text_items == 'custom') {
|
|
||||||
$text_items = setting('invoice.item_name_input');
|
|
||||||
}
|
|
||||||
|
|
||||||
$text_quantity = setting('invoice.quantity_name', 'invoices.quantity');
|
|
||||||
|
|
||||||
if ($text_quantity == 'custom') {
|
|
||||||
$text_quantity = setting('invoice.quantity_name_input');
|
|
||||||
}
|
|
||||||
|
|
||||||
$text_price = setting('invoice.price_name', 'invoices.price');
|
|
||||||
|
|
||||||
if ($text_price == 'custom') {
|
|
||||||
$text_price = setting('invoice.price_name_input');
|
|
||||||
}
|
|
||||||
|
|
||||||
$text_override['items'] = $text_items;
|
|
||||||
$text_override['quantity'] = $text_quantity;
|
|
||||||
$text_override['price'] = $text_price;
|
|
||||||
|
|
||||||
$view->with(['text_override' => $text_override]);
|
|
||||||
}
|
|
||||||
}
|
|
@ -56,18 +56,6 @@ class ViewComposer extends Provider
|
|||||||
'partials.form.recurring', 'App\Http\ViewComposers\Recurring'
|
'partials.form.recurring', 'App\Http\ViewComposers\Recurring'
|
||||||
);
|
);
|
||||||
|
|
||||||
// Add logo
|
|
||||||
View::composer(
|
|
||||||
['purchases.bills.print', 'purchases.bills.show', 'sales.invoices.print_default', 'sales.invoices.print_classic', 'sales.invoices.print_modern', 'sales.invoices.show', 'portal.invoices.show', 'portal.invoices.signed'],
|
|
||||||
'App\Http\ViewComposers\Logo'
|
|
||||||
);
|
|
||||||
|
|
||||||
// Add Invoice Text
|
|
||||||
View::composer(
|
|
||||||
['sales.invoices.*', 'portal.invoices.*'],
|
|
||||||
'App\Http\ViewComposers\InvoiceText'
|
|
||||||
);
|
|
||||||
|
|
||||||
// Add Document Type
|
// Add Document Type
|
||||||
View::composer(
|
View::composer(
|
||||||
['documents.*', 'portal.documents.*'],
|
['documents.*', 'portal.documents.*'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user