@@ -36,6 +36,8 @@ public function edit()
3636 $ currency = $ this ->settingService ->get ('currency ' );
3737 $ timezoneSetting = $ this ->settingService ->get ('timezone ' );
3838 $ logoFile = $ this ->settingService ->get ('logo_file ' );
39+ $ leadPrefix = $ this ->settingService ->get ('lead_prefix ' );
40+ $ dealPrefix = $ this ->settingService ->get ('deal_prefix ' );
3941 $ quotePrefix = $ this ->settingService ->get ('quote_prefix ' );
4042 $ orderPrefix = $ this ->settingService ->get ('order_prefix ' );
4143 $ invoicePrefix = $ this ->settingService ->get ('invoice_prefix ' );
@@ -62,6 +64,8 @@ public function edit()
6264 'currency ' => $ currency ,
6365 'timezoneSetting ' => $ timezoneSetting ,
6466 'logoFile ' => $ logoFile ,
67+ 'leadPrefix ' => $ leadPrefix ,
68+ 'dealPrefix ' => $ dealPrefix ,
6569 'quotePrefix ' => $ quotePrefix ,
6670 'orderPrefix ' => $ orderPrefix ,
6771 'invoicePrefix ' => $ invoicePrefix ,
@@ -112,6 +116,14 @@ public function update(UpdateSettingRequest $request)
112116 $ this ->settingService ->set ('tax_rate ' , $ request ->tax_rate );
113117 }
114118
119+ if ($ request ->lead_prefix ) {
120+ $ this ->settingService ->set ('lead_prefix ' , $ request ->lead_prefix );
121+ }
122+
123+ if ($ request ->deal_prefix ) {
124+ $ this ->settingService ->set ('deal_prefix ' , $ request ->deal_prefix );
125+ }
126+
115127 if ($ request ->quote_prefix ) {
116128 $ this ->settingService ->set ('quote_prefix ' , $ request ->quote_prefix );
117129 }
0 commit comments