|
2474 | 2474 | <li class="nav-item'.(($mode == 'mycustomerinstances' || $mode == 'mycustomerbilling') ? ' active' : '').' dropdown"> |
2475 | 2475 | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-suitcase"></i> '.$langs->trans("ResellerArea").'</a> |
2476 | 2476 | <ul class="dropdown-menu">'; |
| 2477 | + // My reseller tools |
| 2478 | + print '<li><a class="dropdown-item" href="'.$_SERVER["PHP_SELF"].'?mode=myresellertools"><i class="fa fa-tools pictofixedwidth"></i> '.$langs->trans("MyResellerTools").'</a></li>'; |
| 2479 | + // Divider |
| 2480 | + print '<li class="dropdown-divider"></li>'; |
2477 | 2481 | // My customers instance |
2478 | 2482 | print '<li><a class="dropdown-item" href="'.$_SERVER["PHP_SELF"].'?mode=mycustomerinstances"><i class="fa fa-server pictofixedwidth"></i> '.$langs->trans("MyCustomersInstances").'</a></li>'; |
2479 | 2483 | // Divider |
|
2491 | 2495 | <li class="nav-item'.(($mode == 'mymodulecustomerinstances' || $mode == 'mymodulecustomerbilling') ? ' active' : '').' dropdown"> |
2492 | 2496 | <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#"><i class="fa fa-suitcase"></i> '.$langs->trans("ModuleProviderArea").'</a> |
2493 | 2497 | <ul class="dropdown-menu">'; |
| 2498 | + // My module provider tools |
| 2499 | + print '<li><a class="dropdown-item" href="'.$_SERVER["PHP_SELF"].'?mode=mymoduleprovidertools"><i class="fa fa-tools pictofixedwidth"></i> '.$langs->trans("MyModuleProviderTools").'</a></li>'; |
| 2500 | + // Divider |
| 2501 | + print '<li class="dropdown-divider"></li>'; |
2494 | 2502 | // Module provider stats |
2495 | 2503 | print '<li><a class="dropdown-item" href="'.$_SERVER["PHP_SELF"].'?mode=mymodulecustomerinstances"><i class="fa fa-server pictofixedwidth"></i> '.$langs->trans("MyModuleCustomersInstances").'</a></li>'; |
2496 | 2504 | // Divider |
@@ -2842,141 +2850,145 @@ |
2842 | 2850 | } |
2843 | 2851 |
|
2844 | 2852 |
|
2845 | | -// Show resellection section |
2846 | | -if ($mythirdpartyaccount->isareseller && !in_array($mode, array('mymodulecustomerinstances', 'mymodulecustomerbilling'))) { |
| 2853 | +// Show reseller section |
| 2854 | +if ($mythirdpartyaccount->isareseller && in_array($mode, array('dashboard', 'myresellertools'))) { |
2847 | 2855 | print ' |
2848 | 2856 | <!-- Info reseller --> |
2849 | 2857 | <div class="note note-info"> |
2850 | 2858 | <h4 class="block"><span class="fa fa-briefcase"></span> '.$langs->trans("YouAreAReseller").'.</h4> |
2851 | 2859 | '; |
2852 | | - print '<span class="opacitymedium">'.$langs->trans("YourURLToCreateNewInstance").':</span><br>'; |
2853 | 2860 |
|
2854 | | - $sellyoursaasaccounturl = getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL'); |
2855 | | - $sellyoursaasaccounturl = preg_replace('/'.preg_quote(getDomainFromURL(getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL'), 1), '/').'/', getDomainFromURL($_SERVER["SERVER_NAME"], 1), $sellyoursaasaccounturl); |
| 2861 | + if (in_array($mode, array('myresellertools'))) { |
| 2862 | + print '<span class="opacitymedium">'.$langs->trans("YourURLToCreateNewInstance").':</span><br>'; |
2856 | 2863 |
|
2857 | | - $urlforpartner = $sellyoursaasaccounturl.'/register.php?partner='.$mythirdpartyaccount->id.'&partnerkey='.md5($mythirdpartyaccount->name_alias); |
2858 | | - print '<input type="text" class="quatrevingtpercent" id="urlforpartner" name="urlforpartner" value="'.$urlforpartner.'" spellcheck="false">'; |
2859 | | - print ajax_autoselect("urlforpartner"); |
| 2864 | + $sellyoursaasaccounturl = getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL'); |
| 2865 | + $sellyoursaasaccounturl = preg_replace('/'.preg_quote(getDomainFromURL(getDolGlobalString('SELLYOURSAAS_ACCOUNT_URL'), 1), '/').'/', getDomainFromURL($_SERVER["SERVER_NAME"], 1), $sellyoursaasaccounturl); |
2860 | 2866 |
|
2861 | | - print '<script type="text/javascript" language="javascript"> |
2862 | | - jQuery(document).ready(function() { |
2863 | | - jQuery("#spanmorereselleroptions").click(function() { |
2864 | | - console.log("Click on spanmorereselleroptions"); |
2865 | | - jQuery("#divmorereselleroptions").toggle(); |
2866 | | - }); |
2867 | | - jQuery("#divmorereselleroptions").toggle(); |
2868 | | - }); |
2869 | | - </script>'; |
| 2867 | + $urlforpartner = $sellyoursaasaccounturl.'/register.php?partner='.$mythirdpartyaccount->id.'&partnerkey='.md5($mythirdpartyaccount->name_alias); |
| 2868 | + print '<input type="text" class="quatrevingtpercent" id="urlforpartner" name="urlforpartner" value="'.$urlforpartner.'" spellcheck="false">'; |
| 2869 | + print ajax_autoselect("urlforpartner"); |
2870 | 2870 |
|
2871 | | - print '<br><a class="small" id="spanmorereselleroptions" href="#" style="color: #888">'.$langs->trans("OtherOptionsAndParameters").'... <span class="fa fa-angle-down"></span></a><br>'; |
2872 | | - print '<div id="divmorereselleroptions" style="display: hidden" class="small">'; |
2873 | | - if (is_array($arrayofplans) && count($arrayofplans) > 1) { |
2874 | | - print '&plan=XXX : '; |
2875 | | - print '<span class="opacitymedium">'.$langs->trans("ToForcePlan").', '.$langs->trans("whereXXXcanbe").' '.join(', ', $arrayofplanscode).'</span><br>'; |
2876 | | - } |
2877 | | - print '&extcss=mycssurl : <span class="opacitymedium">'.$langs->trans("YouCanUseCSSParameter").'. '.$langs->trans("AnExampleIsAvailableWith").' &extcss='.$sellyoursaasaccounturl.'/dist/css/alt-myaccount-example.css</span><br>'; |
2878 | | - print '&disablecustomeremail=1 : <span class="opacitymedium">'.$langs->trans("ToDisableEmailThatConfirmsRegistration").'</span>'; |
2879 | | - |
2880 | | - print '</div>'; |
2881 | | - |
2882 | | - if (getDolGlobalInt("SELLYOURSAAS_RESELLER_ALLOW_CUSTOM_PRICE")) { |
2883 | | - print '<br>'; |
2884 | | - print '<span class="opacitymedium small">'.$langs->trans("ForcePricesOfInstances").'</span>'; |
2885 | | - print '<form action="'.$_SERVER["PHP_SELF"].'" name="modifyresellerprices" method="POST" >'; |
2886 | | - print '<input type="hidden" name="action" value="updateforcepriceinstance">'; |
2887 | | - print '<input type="hidden" name="token" value="'.newToken().'">'; |
2888 | | - print '<div class="div-table-responsive">'; |
2889 | | - print '<table class="noborder small centpercent background-white padding">'; |
2890 | | - print '<tr class="liste_titre"><th>'; |
2891 | | - print $langs->trans("Label"); |
2892 | | - print '</th>'; |
2893 | | - print '<th>'; |
2894 | | - print $langs->trans("FixPrice"); |
2895 | | - print ' ('.$langs->trans("HT").')'; |
2896 | | - print '</th>'; |
2897 | | - print '<th>'; |
2898 | | - print $langs->trans("PricePerUsers"); |
2899 | | - print ' ('.$langs->trans("HT").')'; |
2900 | | - print '</th>'; |
2901 | | - for ($i=0; $i < $maxcptoptions; $i++) { |
| 2871 | + print '<script type="text/javascript" language="javascript"> |
| 2872 | + jQuery(document).ready(function() { |
| 2873 | + jQuery("#spanmorereselleroptions").click(function() { |
| 2874 | + console.log("Click on spanmorereselleroptions"); |
| 2875 | + jQuery("#divmorereselleroptions").toggle(); |
| 2876 | + }); |
| 2877 | + jQuery("#divmorereselleroptions").toggle(); |
| 2878 | + }); |
| 2879 | + </script>'; |
| 2880 | + |
| 2881 | + print '<br><a class="small" id="spanmorereselleroptions" href="#" style="color: #888">'.$langs->trans("OtherOptionsAndParameters").'... <span class="fa fa-angle-down"></span></a><br>'; |
| 2882 | + print '<div id="divmorereselleroptions" style="display: hidden" class="small">'; |
| 2883 | + if (is_array($arrayofplans) && count($arrayofplans) > 1) { |
| 2884 | + print '&plan=XXX : '; |
| 2885 | + print '<span class="opacitymedium">'.$langs->trans("ToForcePlan").', '.$langs->trans("whereXXXcanbe").' '.join(', ', $arrayofplanscode).'</span><br>'; |
| 2886 | + } |
| 2887 | + print '&extcss=mycssurl : <span class="opacitymedium">'.$langs->trans("YouCanUseCSSParameter").'. '.$langs->trans("AnExampleIsAvailableWith").' &extcss='.$sellyoursaasaccounturl.'/dist/css/alt-myaccount-example.css</span><br>'; |
| 2888 | + print '&disablecustomeremail=1 : <span class="opacitymedium">'.$langs->trans("ToDisableEmailThatConfirmsRegistration").'</span>'; |
| 2889 | + |
| 2890 | + print '</div>'; |
| 2891 | + |
| 2892 | + if (getDolGlobalInt("SELLYOURSAAS_RESELLER_ALLOW_CUSTOM_PRICE")) { |
| 2893 | + print '<br>'; |
| 2894 | + print '<span class="opacitymedium small">'.$langs->trans("ForcePricesOfInstances").'</span>'; |
| 2895 | + print '<form action="'.$_SERVER["PHP_SELF"].'" name="modifyresellerprices" method="POST" >'; |
| 2896 | + print '<input type="hidden" name="action" value="updateforcepriceinstance">'; |
| 2897 | + print '<input type="hidden" name="token" value="'.newToken().'">'; |
| 2898 | + print '<div class="div-table-responsive">'; |
| 2899 | + print '<table class="noborder small centpercent background-white padding">'; |
| 2900 | + print '<tr class="liste_titre"><th>'; |
| 2901 | + print $langs->trans("Label"); |
| 2902 | + print '</th>'; |
2902 | 2903 | print '<th>'; |
2903 | | - print $langs->trans("OptionForcePrice", $i+1); |
| 2904 | + print $langs->trans("FixPrice"); |
| 2905 | + print ' ('.$langs->trans("HT").')'; |
2904 | 2906 | print '</th>'; |
2905 | | - } |
2906 | | - print '<th>'; |
2907 | | - print '</th>'; |
2908 | | - print '</tr>'; |
2909 | | - |
2910 | | - // Ajout Options price change |
2911 | | - foreach ($arrayofplansmodifyprice as $key => $value) { |
2912 | | - print '<tr class="field_'.$key.' oddeven">'; |
2913 | | - print '<td class="maxwidth150 tdoverflowmax200" title="'.dol_escape_htmltag($value['label']).'">'; |
2914 | | - print $value["label"]; |
2915 | | - print '</td> '; |
2916 | | - if ($action == 'editproperty' && $key == $propertykey) { |
2917 | | - print '<input type="hidden" name="priceproductid" value="'.$key.'">'; |
2918 | | - print '<td>'; |
2919 | | - print '<input class="flat field_price maxwidth50" type="text" id="field_price_'.$mythirdpartyaccount->id."_".$key.'" name="field_price_'.$mythirdpartyaccount->id."_".$key.'" value="'.(price(getDolGlobalString("SELLYOURSAAS_RESELLER_FIX_PRICE_".$mythirdpartyaccount->id."_".$key) ?: $value["price"]).'"><span>').$langs->getCurrencySymbol($conf->currency).'<span>'; |
2920 | | - print '</td>'; |
2921 | | - print '<td>'; |
2922 | | - if (isset($value["priceuser"])) { |
2923 | | - print '<input class="flat field_price maxwidth50" type="text" id="field_priceuser_'.$mythirdpartyaccount->id."_".$key.'" name="field_priceuser_'.$mythirdpartyaccount->id."_".$key.'"value="'.(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_PER_USER_".$mythirdpartyaccount->id."_".$key) ?: $value["priceuser"]).'"><span>').$langs->getCurrencySymbol($conf->currency).'</span>'; |
2924 | | - } |
2925 | | - print '</td>'; |
2926 | | - if (isset($value["options"])) { |
2927 | | - foreach ($value["options"] as $id => $data) { |
2928 | | - print '<td>'; |
2929 | | - print '<input class="flat field_price maxwidth50" type="text" id="field_price_option_'.$id.'_'.$mythirdpartyaccount->id."_".$key.'" name="field_price_option_'.$id.'_'.$mythirdpartyaccount->id."_".$key.'"value="'.(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_OPTION_".$id."_".$mythirdpartyaccount->id."_".$key) ?: $data["price"]).'"><span>').$langs->getCurrencySymbol($conf->currency).'</span>'; |
2930 | | - print '</td>'; |
2931 | | - } |
2932 | | - } else { |
2933 | | - for ($i=0; $i < $maxcptoptions; $i++) { |
2934 | | - print '<td></td>'; |
| 2907 | + print '<th>'; |
| 2908 | + print $langs->trans("PricePerUsers"); |
| 2909 | + print ' ('.$langs->trans("HT").')'; |
| 2910 | + print '</th>'; |
| 2911 | + for ($i=0; $i < $maxcptoptions; $i++) { |
| 2912 | + print '<th>'; |
| 2913 | + print $langs->trans("OptionForcePrice", $i+1); |
| 2914 | + print '</th>'; |
| 2915 | + } |
| 2916 | + print '<th>'; |
| 2917 | + print '</th>'; |
| 2918 | + print '</tr>'; |
| 2919 | + |
| 2920 | + // Ajout Options price change |
| 2921 | + foreach ($arrayofplansmodifyprice as $key => $value) { |
| 2922 | + print '<tr class="field_'.$key.' oddeven">'; |
| 2923 | + print '<td class="maxwidth150 tdoverflowmax200" title="'.dol_escape_htmltag($value['label']).'">'; |
| 2924 | + print $value["label"]; |
| 2925 | + print '</td> '; |
| 2926 | + if ($action == 'editproperty' && $key == $propertykey) { |
| 2927 | + print '<input type="hidden" name="priceproductid" value="'.$key.'">'; |
| 2928 | + print '<td>'; |
| 2929 | + print '<input class="flat field_price maxwidth50" type="text" id="field_price_'.$mythirdpartyaccount->id."_".$key.'" name="field_price_'.$mythirdpartyaccount->id."_".$key.'" value="'.(price(getDolGlobalString("SELLYOURSAAS_RESELLER_FIX_PRICE_".$mythirdpartyaccount->id."_".$key) ?: $value["price"]).'"><span>').$langs->getCurrencySymbol($conf->currency).'<span>'; |
| 2930 | + print '</td>'; |
| 2931 | + print '<td>'; |
| 2932 | + if (isset($value["priceuser"])) { |
| 2933 | + print '<input class="flat field_price maxwidth50" type="text" id="field_priceuser_'.$mythirdpartyaccount->id."_".$key.'" name="field_priceuser_'.$mythirdpartyaccount->id."_".$key.'"value="'.(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_PER_USER_".$mythirdpartyaccount->id."_".$key) ?: $value["priceuser"]).'"><span>').$langs->getCurrencySymbol($conf->currency).'</span>'; |
2935 | 2934 | } |
2936 | | - } |
2937 | | - print '<td class="center maxwidth100">'; |
2938 | | - print '<input class="button smallpaddingimp btn green-haze btn-circle" type="submit" name="edit" value="'.$langs->trans("Save").'" style="margin: 2px;">'; |
2939 | | - print '<input class="button button-cancel smallpaddingimp btn green-haze btn-circle" type="submit" name="cancel" value="'.$langs->trans("Cancel").'">'; |
2940 | | - print '</td>'; |
2941 | | - } else { |
2942 | | - print '<td>'; |
2943 | | - print '<span>'; |
2944 | | - print dol_escape_htmltag(price(getDolGlobalString("SELLYOURSAAS_RESELLER_FIX_PRICE_".$mythirdpartyaccount->id."_".$key) ?: $value["price"])).$langs->getCurrencySymbol($conf->currency).' '; |
2945 | | - print '</span>'; |
2946 | | - print '</td>'; |
2947 | | - print '<td>'; |
2948 | | - if (isset($value["priceuser"])) { |
2949 | | - print dol_escape_htmltag(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_PER_USER_".$mythirdpartyaccount->id."_".$key) ?: $value["priceuser"])).$langs->getCurrencySymbol($conf->currency); |
2950 | | - } |
2951 | | - print '</td>'; |
2952 | | - if (isset($value["options"])) { |
2953 | | - foreach ($value["options"] as $id => $data) { |
2954 | | - print '<td>'; |
2955 | | - print dol_escape_htmltag(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_OPTION_".$id."_".$mythirdpartyaccount->id."_".$key) ?: $data["price"])).$langs->getCurrencySymbol($conf->currency); |
2956 | | - print '</td>'; |
| 2935 | + print '</td>'; |
| 2936 | + if (isset($value["options"])) { |
| 2937 | + foreach ($value["options"] as $id => $data) { |
| 2938 | + print '<td>'; |
| 2939 | + print '<input class="flat field_price maxwidth50" type="text" id="field_price_option_'.$id.'_'.$mythirdpartyaccount->id."_".$key.'" name="field_price_option_'.$id.'_'.$mythirdpartyaccount->id."_".$key.'"value="'.(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_OPTION_".$id."_".$mythirdpartyaccount->id."_".$key) ?: $data["price"]).'"><span>').$langs->getCurrencySymbol($conf->currency).'</span>'; |
| 2940 | + print '</td>'; |
| 2941 | + } |
| 2942 | + } else { |
| 2943 | + for ($i=0; $i < $maxcptoptions; $i++) { |
| 2944 | + print '<td></td>'; |
| 2945 | + } |
2957 | 2946 | } |
| 2947 | + print '<td class="center maxwidth100">'; |
| 2948 | + print '<input class="button smallpaddingimp btn green-haze btn-circle" type="submit" name="edit" value="'.$langs->trans("Save").'" style="margin: 2px;">'; |
| 2949 | + print '<input class="button button-cancel smallpaddingimp btn green-haze btn-circle" type="submit" name="cancel" value="'.$langs->trans("Cancel").'">'; |
| 2950 | + print '</td>'; |
2958 | 2951 | } else { |
2959 | | - for ($i=0; $i < $maxcptoptions; $i++) { |
2960 | | - print '<td></td>'; |
| 2952 | + print '<td>'; |
| 2953 | + print '<span>'; |
| 2954 | + print dol_escape_htmltag(price(getDolGlobalString("SELLYOURSAAS_RESELLER_FIX_PRICE_".$mythirdpartyaccount->id."_".$key) ?: $value["price"])).$langs->getCurrencySymbol($conf->currency).' '; |
| 2955 | + print '</span>'; |
| 2956 | + print '</td>'; |
| 2957 | + print '<td>'; |
| 2958 | + if (isset($value["priceuser"])) { |
| 2959 | + print dol_escape_htmltag(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_PER_USER_".$mythirdpartyaccount->id."_".$key) ?: $value["priceuser"])).$langs->getCurrencySymbol($conf->currency); |
2961 | 2960 | } |
| 2961 | + print '</td>'; |
| 2962 | + if (isset($value["options"])) { |
| 2963 | + foreach ($value["options"] as $id => $data) { |
| 2964 | + print '<td>'; |
| 2965 | + print dol_escape_htmltag(price(getDolGlobalString("SELLYOURSAAS_RESELLER_PRICE_OPTION_".$id."_".$mythirdpartyaccount->id."_".$key) ?: $data["price"])).$langs->getCurrencySymbol($conf->currency); |
| 2966 | + print '</td>'; |
| 2967 | + } |
| 2968 | + } else { |
| 2969 | + for ($i=0; $i < $maxcptoptions; $i++) { |
| 2970 | + print '<td></td>'; |
| 2971 | + } |
| 2972 | + } |
| 2973 | + print '<td class="center">'; |
| 2974 | + print '<a class="editfielda reposition marginleftonly marginrighttonly paddingright paddingleft" href="'.$_SERVER["PHP_SELF"].'?action=editproperty&token='.newToken().'&propertykey='.urlencode($key).'">'.img_edit().'</a>'; |
| 2975 | + print '<a class="resetfielda reposition marginleftonly marginrighttonly paddingright paddingleft" href="'.$_SERVER["PHP_SELF"].'?action=resetproperty&token='.newToken().'&propertykey='.urlencode($key).'" title="'.dol_escape_htmltag($langs->trans("ResetToRecommendedValue")).'">'.img_picto('', 'eraser', 'class="paddingrightonly" style="color: #444;"').'</a>'; |
| 2976 | + print '</td>'; |
2962 | 2977 | } |
2963 | | - print '<td class="center">'; |
2964 | | - print '<a class="editfielda reposition marginleftonly marginrighttonly paddingright paddingleft" href="'.$_SERVER["PHP_SELF"].'?action=editproperty&token='.newToken().'&propertykey='.urlencode($key).'">'.img_edit().'</a>'; |
2965 | | - print '<a class="resetfielda reposition marginleftonly marginrighttonly paddingright paddingleft" href="'.$_SERVER["PHP_SELF"].'?action=resetproperty&token='.newToken().'&propertykey='.urlencode($key).'" title="'.dol_escape_htmltag($langs->trans("ResetToRecommendedValue")).'">'.img_picto('', 'eraser', 'class="paddingrightonly" style="color: #444;"').'</a>'; |
2966 | | - print '</td>'; |
| 2978 | + print '</tr>'; |
2967 | 2979 | } |
2968 | | - print '</tr>'; |
| 2980 | + print '</table></div>'; |
| 2981 | + |
| 2982 | + print '</form>'; |
2969 | 2983 | } |
2970 | | - print '</table></div>'; |
2971 | 2984 |
|
2972 | | - print '</form>'; |
| 2985 | + print '<br>'; |
| 2986 | + $urformycustomerinstances = '<strong>'.$langs->transnoentitiesnoconv("MyCustomersBilling").'</strong>'; |
| 2987 | + print str_replace('{s1}', $urformycustomerinstances, $langs->trans("YourCommissionsAppearsInMenu", $mythirdpartyaccount->array_options['options_commission'], '{s1}')); |
| 2988 | + } else { |
| 2989 | + print '<span class="opacitymedium">'.$langs->trans("GoToYourResellerMenuTogetInformation", $langs->transnoentitiesnoconv("ResellerArea")).'.</span><br>'; |
2973 | 2990 | } |
2974 | 2991 |
|
2975 | | - print '<br>'; |
2976 | | - $urformycustomerinstances = '<strong>'.$langs->transnoentitiesnoconv("MyCustomersBilling").'</strong>'; |
2977 | | - print str_replace('{s1}', $urformycustomerinstances, $langs->trans("YourCommissionsAppearsInMenu", $mythirdpartyaccount->array_options['options_commission'], '{s1}')); |
2978 | | - |
2979 | | - |
2980 | 2992 | print ' |
2981 | 2993 | </div> |
2982 | 2994 | '; |
|
2989 | 3001 |
|
2990 | 3002 |
|
2991 | 3003 | // Show module provider section |
2992 | | -if (!empty($mythirdpartyaccount->context['isamoduleprovider']) && !in_array($mode, array('mycustomerinstances', 'mycustomerbilling'))) { |
| 3004 | +if (!empty($mythirdpartyaccount->context['isamoduleprovider']) && in_array($mode, array('mymoduleprovidertools'))) { |
2993 | 3005 | print ' |
2994 | 3006 | <!-- Info module provider --> |
2995 | 3007 | <div class="note note-info"> |
|
3115 | 3127 |
|
3116 | 3128 |
|
3117 | 3129 | // Show warnings |
3118 | | - |
3119 | | -if (empty($welcomecid) && ! in_array($action, array('instanceverification', 'autoupgrade'))) { |
| 3130 | +if (empty($welcomecid) |
| 3131 | + && !in_array($mode, array('myresellertools', 'mycustomerinstances', 'mycustomerbilling', 'mymoduleprovidertools', 'mymodulecustomerinstances', 'mymodulecustomerbilling')) |
| 3132 | + && !in_array($action, array('instanceverification', 'autoupgrade'))) { |
3120 | 3133 | // Show warnings on invoice dispute |
3121 | 3134 | $sql = 'SELECT f.rowid, f.ref, f.datef, f.datec, f.date_lim_reglement as date_due, f.dispute_status, fe.invoicepaymentdisputed'; |
3122 | 3135 | $sql .= ' FROM '.MAIN_DB_PREFIX.'facture as f, '.MAIN_DB_PREFIX.'facture_extrafields as fe'; |
|
0 commit comments