From 0f3f87d5287f5673904e755f6e094e2aa30ab930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20=C3=87ak=C4=B1rel?= Date: Tue, 12 Oct 2021 18:36:54 +0100 Subject: [PATCH] Fix not changing item columns --- app/Abstracts/View/Components/DocumentForm.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/Abstracts/View/Components/DocumentForm.php b/app/Abstracts/View/Components/DocumentForm.php index 7f6f2d152..f48c804e8 100644 --- a/app/Abstracts/View/Components/DocumentForm.php +++ b/app/Abstracts/View/Components/DocumentForm.php @@ -782,6 +782,10 @@ abstract class DocumentForm extends Base return $textItems; } + if (setting($this->getSettingKey($type, 'item_name')) !== null) { + return setting($this->getSettingKey($type, 'item_name')); + } + $translation = $this->getTextFromConfig($type, 'items'); if (!empty($translation)) { @@ -806,6 +810,10 @@ abstract class DocumentForm extends Base return $textQuantity; } + if (setting($this->getSettingKey($type, 'quantity_name')) !== null) { + return setting($this->getSettingKey($type, 'quantity_name')); + } + $translation = $this->getTextFromConfig($type, 'quantity'); if (!empty($translation)) { @@ -830,6 +838,10 @@ abstract class DocumentForm extends Base return $textPrice; } + if (setting($this->getSettingKey($type, 'price_name')) !== null) { + return setting($this->getSettingKey($type, 'price_name')); + } + $translation = $this->getTextFromConfig($type, 'price'); if (!empty($translation)) {