Skip to content

Commit 48992a4

Browse files
committed
NEW Add warning on support page if contact info are not complete
1 parent 0a449af commit 48992a4

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

ChangeLog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
## Unreleased
55

6-
* NEW Add badge of number of deployment server.
7-
* NEW Add tab for events info on a deployment serer card.
6+
* NEW Add warning on support page if contact info are not complete
7+
* NEW Add badge with number of deployment server on tab title of deployment servers.
8+
* NEW Add the tab for histori of events info on a deployment server card.
89
* NEW Options to disable the apt unattended-upgrade. Such silent upgrade changes system files on disk making fight against intrusion detection more difficult.
910
* NEW Can for a server on a service.
1011
* NEW Search on firstname and last name of thirdparty with global search on contract.

langs/en_US/sellyoursaas.lang

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -770,6 +770,8 @@ ReasonUninstallOther=Other reason for uninstallation
770770
CommentOfUninstall=Uninstallation Comment
771771
SupportChannel=Support channel
772772
AskForSupport=Ask for support
773+
BeforeAskForSupport=Before doing your request, you should complete the mandatory information, marked by the %s flag on your profile.
774+
BeforeAskForSupport2=Click here to fill mandatory information.
773775
SELLYOURSAAS_ENABLE_SEPA_FOR_THIRDPARTYID=List of customers ID with SEPA payment enabled
774776
SELLYOURSAAS_ENABLE_SEPA=Enable SEPA payment
775777
SELLYOURSAAS_ENABLE_FREE_PAYMENT_MODE=Enable free payment mode

myaccount/tpl/support.tpl.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
$langs->load("ticket");
2525

26+
/**
27+
* @var Societe $mythirdpartyaccount
28+
* @var Conf $conf
29+
*/
2630
?>
2731
<!-- BEGIN PHP TEMPLATE support.tpl.php -->
2832
<?php
@@ -116,10 +120,19 @@
116120
117121
<div class="portlet-title">
118122
<div class="caption">';
123+
if ((!empty($mythirdpartyaccount->tva_assuj) && empty($mythirdpartyaccount->tva_intra))
124+
|| empty($mythirdpartyaccount->array_options['options_firstname'])
125+
|| empty($mythirdpartyaccount->array_options['options_lastname'])) {
126+
print $langs->trans('BeforeAskForSupport', img_warning('', '', '')).' ';
127+
print '<a href="/index.php?mode=myaccount">'.$langs->trans('BeforeAskForSupport2').'</a>';
128+
print '<br><br>';
129+
}
130+
119131
if (getDolGlobalString('SELLYOURSAAS_SUPPORT_SHOW_MESSAGE')) {
120132
print '<span>'.$langs->trans(getDolGlobalString('SELLYOURSAAS_SUPPORT_SHOW_MESSAGE')).'</span><br><br>';
121133
} else {
122-
print '<span class="opacitymedium"><br>'.$langs->trans("AskForSupport").'...</span><br><br>';
134+
print '<span class="opacitymedium"><br>'.$langs->trans("AskForSupport").'...</span><br>';
135+
print '<br>';
123136
}
124137

125138
print '<!-- form to select channel -->'."\n";

0 commit comments

Comments
 (0)