Skip to content

Commit

Permalink
Revert "closed #804"
Browse files Browse the repository at this point in the history
This reverts commit 8773df6.
  • Loading branch information
mehmetcoban committed Mar 28, 2019
1 parent 9466551 commit 627a8ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Http/ViewComposers/InvoiceText.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ public function compose(View $view)
{
$text_override = [];

$text_items = setting('general.invoice_item', 'general.items');
$text_items = setting('general.invoice_item', trans_choice('general.items', 2));

if ($text_items == 'custom') {
$text_items = setting('general.invoice_item_input');
}

$text_quantity = setting('general.invoice_quantity', 'invoices.quantity');
$text_quantity = setting('general.invoice_quantity', trans('invoices.quantity'));

if ($text_quantity == 'custom') {
$text_quantity = setting('general.invoice_quantity_input');
}

$text_price = setting('general.invoice_price', 'invoices.price');
$text_price = setting('general.invoice_price', trans('invoices.price'));

if ($text_price == 'custom') {
$text_price = setting('general.invoice_price_input');
Expand Down

0 comments on commit 627a8ae

Please sign in to comment.