Document and Transaction trait getSettingKey function replace get{Document/Transaction}SettingKey
This commit is contained in:
@ -60,17 +60,17 @@ class DocumentItemColumns extends Controller
|
||||
'90' => trans('settings.invoice.due_days', ['days' => 90]),
|
||||
];
|
||||
|
||||
$item_name = setting($this->getSettingKey($type, 'item_name'));
|
||||
$item_name_input = setting($this->getSettingKey($type, 'item_name_input'));
|
||||
$price_name = setting($this->getSettingKey($type, 'price_name'));
|
||||
$price_name_input = setting($this->getSettingKey($type, 'price_name_input'));
|
||||
$quantity_name = setting($this->getSettingKey($type, 'quantity_name'));
|
||||
$quantity_name_input = setting($this->getSettingKey($type, 'quantity_name_input'));
|
||||
$hide_item_name = setting($this->getSettingKey($type, 'hide_item_name'));
|
||||
$hide_item_description = setting($this->getSettingKey($type, 'hide_item_description'));
|
||||
$hide_quantity = setting($this->getSettingKey($type, 'hide_quantity'));
|
||||
$hide_price = setting($this->getSettingKey($type, 'hide_price'));
|
||||
$hide_amount = setting($this->getSettingKey($type, 'hide_amount'));
|
||||
$item_name = setting($this->getDocumentSettingKey($type, 'item_name'));
|
||||
$item_name_input = setting($this->getDocumentSettingKey($type, 'item_name_input'));
|
||||
$price_name = setting($this->getDocumentSettingKey($type, 'price_name'));
|
||||
$price_name_input = setting($this->getDocumentSettingKey($type, 'price_name_input'));
|
||||
$quantity_name = setting($this->getDocumentSettingKey($type, 'quantity_name'));
|
||||
$quantity_name_input = setting($this->getDocumentSettingKey($type, 'quantity_name_input'));
|
||||
$hide_item_name = setting($this->getDocumentSettingKey($type, 'hide_item_name'));
|
||||
$hide_item_description = setting($this->getDocumentSettingKey($type, 'hide_item_description'));
|
||||
$hide_quantity = setting($this->getDocumentSettingKey($type, 'hide_quantity'));
|
||||
$hide_price = setting($this->getDocumentSettingKey($type, 'hide_price'));
|
||||
$hide_amount = setting($this->getDocumentSettingKey($type, 'hide_amount'));
|
||||
|
||||
$html = view('modals.documents.item_columns', compact(
|
||||
'type',
|
||||
@ -117,7 +117,7 @@ class DocumentItemColumns extends Controller
|
||||
}
|
||||
|
||||
foreach ($fields as $key => $value) {
|
||||
$real_key = $this->getSettingKey($type, $key);
|
||||
$real_key = $this->getDocumentSettingKey($type, $key);
|
||||
|
||||
// Don't process unwanted keys
|
||||
if (in_array($key, $this->skip_keys)) {
|
||||
|
Reference in New Issue
Block a user