From 42fcf74f63e09e1b91497a07a6f3b690b7e22517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Fri, 25 Dec 2020 15:42:54 +0300 Subject: [PATCH] fixed form items component.. --- app/View/Components/Documents/Form/Items.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/View/Components/Documents/Form/Items.php b/app/View/Components/Documents/Form/Items.php index 23c798d78..9987156ef 100644 --- a/app/View/Components/Documents/Form/Items.php +++ b/app/View/Components/Documents/Form/Items.php @@ -105,7 +105,7 @@ class Items extends Component case 'sale': case 'income': case 'invoice': - $text_items = trans_choice(setting('invoice.item_name', 'general.items'), 2); + $text_items = setting('invoice.item_name', 'general.items'); if ($text_items == 'custom') { $text_items = setting('invoice.item_name_input'); @@ -114,7 +114,7 @@ class Items extends Component case 'bill': case 'expense': case 'purchase': - $text_items = trans_choice('general.items', 2); + $text_items = 'general.items'; break; } @@ -131,7 +131,7 @@ class Items extends Component case 'sale': case 'income': case 'invoice': - $text_quantity = trans(setting('invoice.quantity_name', 'invoices.quantity')); + $text_quantity = setting('invoice.quantity_name', 'invoices.quantity'); if ($text_quantity == 'custom') { $text_quantity = setting('invoice.quantity_name_input'); @@ -140,7 +140,7 @@ class Items extends Component case 'bill': case 'expense': case 'purchase': - $text_quantity = trans('bills.quantity'); + $text_quantity = 'bills.quantity'; break; } @@ -157,7 +157,7 @@ class Items extends Component case 'sale': case 'income': case 'invoice': - $text_price = trans(setting('invoice.price_name', 'invoices.price')); + $text_price = setting('invoice.price_name', 'invoices.price'); if ($text_price == 'custom') { $text_price = setting('invoice.price_name_input'); @@ -166,7 +166,7 @@ class Items extends Component case 'bill': case 'expense': case 'purchase': - $text_price = trans('bills.price'); + $text_price = 'bills.price'; break; } @@ -186,7 +186,7 @@ class Items extends Component case 'bill': case 'expense': case 'purchase': - $text_amount = trans('general.amount'); + $text_amount = 'general.amount'; break; }