File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 33
44## Unreleased
55
6+ * NEW Add Profid (SIRET) in company profile. Ask to fill it if mandatory (For France).
67* NEW Remove automatically ending / in directory name in setup of package(this avoid errors and headach in setup phase)
78* NEW Reorganize menu for reseller and module providers
89* NEW Add option SELLYOURSAAS_DASHBOARD_OFF to disallow login/access to dashboard
Original file line number Diff line number Diff line change 185185
186186 print '<div class="form-group"><br>
187187 <label> ' .$ langs ->transcountry ("ProfId1Short " , $ mythirdpartyaccount ->country_code ).'</label> ' ;
188- if ($ mandatoryprofid && ! empty ( $ mythirdpartyaccount -> idprof1 ) && empty ($ mythirdpartyaccount ->idprof1 )) {
188+ if ($ mandatoryprofid && empty ($ mythirdpartyaccount ->idprof1 )) {
189189 print img_warning ($ langs ->trans ("Mandatory " ), '' , 'hideifnoprof ' );
190190 }
191191
Original file line number Diff line number Diff line change 124124
125125 print '</div></div></div> ' ;
126126} else {
127- // Define if mandatory contact info are set
127+ // Define if mandatory contact information are complete
128128 $ mandatoryInfoAreNotSet = ((!empty ($ mythirdpartyaccount ->tva_assuj ) && empty ($ mythirdpartyaccount ->tva_intra ) && !getDolGlobalString ('SELLYOURSAAS_ENABLE_FREE_PAYMENT_MODE ' ))
129129 || empty ($ mythirdpartyaccount ->array_options ['options_firstname ' ])
130- || empty ($ mythirdpartyaccount ->array_options ['options_lastname ' ]));
130+ || empty ($ mythirdpartyaccount ->array_options ['options_lastname ' ])
131+ || ($ mythirdpartyaccount ->country_code == 'FR ' && empty ($ mythirdpartyaccount ->idprof1 ))
132+ );
131133
132134 print '
133135 <div class="row" id="choosechannel">
You can’t perform that action at this time.
0 commit comments