Fix not changing item columns

This commit is contained in:
Burak Çakırel 2021-10-12 18:36:54 +01:00
parent a2c44a5d2a
commit 0f3f87d528
No known key found for this signature in database
GPG Key ID: 48FFBB7771B99C7C

View File

@ -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)) {