Skip to content

Commit

Permalink
Fix not changing item columns
Browse files Browse the repository at this point in the history
  • Loading branch information
burakcakirel committed Oct 12, 2021
1 parent a2c44a5 commit 0f3f87d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/Abstracts/View/Components/DocumentForm.php
Expand Up @@ -782,6 +782,10 @@ protected function getTextItems($type, $textItems)
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)) {
Expand All @@ -806,6 +810,10 @@ protected function getTextQuantity($type, $textQuantity)
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)) {
Expand All @@ -830,6 +838,10 @@ protected function getTextPrice($type, $textPrice)
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)) {
Expand Down

0 comments on commit 0f3f87d

Please sign in to comment.