From 0d089703da49f06a8d30c4f7ccfd599a925aa55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Wed, 1 Dec 2021 18:51:34 +0300 Subject: [PATCH] close #2329 Fixed: Invoice/Bill edit missing notes and footer --- app/Abstracts/View/Components/DocumentForm.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/Abstracts/View/Components/DocumentForm.php b/app/Abstracts/View/Components/DocumentForm.php index ebb65f5bd..daaf64966 100644 --- a/app/Abstracts/View/Components/DocumentForm.php +++ b/app/Abstracts/View/Components/DocumentForm.php @@ -1039,6 +1039,10 @@ abstract class DocumentForm extends Base return $footerSetting; } + if (!empty($this->document)) { + return $this->document->footer; + } + return setting($this->getSettingKey($this->type, 'footer')); } @@ -1048,6 +1052,10 @@ abstract class DocumentForm extends Base return $notesSetting; } + if (!empty($this->document)) { + return $this->document->notes; + } + return setting($this->getSettingKey($this->type, 'notes')); }