New: New way to edit contracts and line of contracts
This commit is contained in:
parent
3ee13de002
commit
f160ccd112
@ -802,7 +802,7 @@ else
|
||||
print '<td> </td>';
|
||||
}
|
||||
// Icon update et delete (statut contrat 0=brouillon,1=valid<69>,2=ferm<72>)
|
||||
print '<td align="center" nowrap>';
|
||||
print '<td align="right" nowrap="nowrap">';
|
||||
if ($contrat->statut != 2 && $user->rights->contrat->creer)
|
||||
{
|
||||
print '<a href="fiche.php?id='.$id.'&action=editline&rowid='.$objp->rowid.'">';
|
||||
@ -898,7 +898,14 @@ else
|
||||
{
|
||||
dolibarr_print_error($db);
|
||||
}
|
||||
|
||||
|
||||
if ($contrat->statut > 0)
|
||||
{
|
||||
print '<tr '.$bc[false].'>';
|
||||
print '<td colspan="6"><hr></td>';
|
||||
print "</tr>\n";
|
||||
}
|
||||
|
||||
print "</table>";
|
||||
|
||||
|
||||
@ -911,7 +918,7 @@ else
|
||||
$dateactstart = dolibarr_mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
|
||||
$dateactend = dolibarr_mktime(12, 0 , 0, $_POST["endmonth"], $_POST["endday"], $_POST["endyear"]);
|
||||
$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$contrat->id."&ligne=".$_GET["ligne"]."&date=".$dateactstart."&dateend=".$dateactend,$langs->trans("ActivateService"),$langs->trans("ConfirmActivateService",strftime("%A %d %B %Y", $dateactstart)),"confirm_active");
|
||||
//print '<br />';
|
||||
print '<table class="noborder" width="100%"><tr '.$bc[false].' height="6"><td></td></tr></table>';
|
||||
}
|
||||
|
||||
/*
|
||||
@ -923,7 +930,7 @@ else
|
||||
$dateactstart = dolibarr_mktime(12, 0 , 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
|
||||
$dateactend = dolibarr_mktime(12, 0 , 0, $_POST["endmonth"], $_POST["endday"], $_POST["endyear"]);
|
||||
$html->form_confirm($_SERVER["PHP_SELF"]."?id=".$contrat->id."&ligne=".$_GET["ligne"]."&date=".$dateactstart."&dateend=".$dateactend,$langs->trans("CloseService"),$langs->trans("ConfirmCloseService",strftime("%A %d %B %Y", $dateactend)),"confirm_closeline");
|
||||
//print '<br />';
|
||||
print '<table class="noborder" width="100%"><tr '.$bc[false].' height="6"><td></td></tr></table>';
|
||||
}
|
||||
|
||||
// Area with activation info
|
||||
@ -931,14 +938,21 @@ else
|
||||
{
|
||||
print '<table class="noborder" width="100%">';
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>'.$langs->trans("Activation").'</td>';
|
||||
print '<td width="30"> </td>';
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr '.$bc[false].'>';
|
||||
print '<td>'.$langs->trans("Status").': '.$contrat->lignes[$cursorline-1]->getLibStatut(4).'</td>';
|
||||
print '<td width="30"> </td>';
|
||||
print '<td>'.$langs->trans("ServiceStatus").': '.$contrat->lignes[$cursorline-1]->getLibStatut(4).'</td>';
|
||||
print '<td width="30" align="right">';
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
if ($contrat->statut > 0 && $_REQUEST["action"] != 'activateline' && $_REQUEST["action"] != 'unactivateline')
|
||||
{
|
||||
$action='activateline';
|
||||
if ($objp->statut == 4) $action='unactivateline';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$contrat->id.'&ligne='.$contrat->lignes[$cursorline-1]->id.'&action='.$action.'">';
|
||||
print img_edit();
|
||||
print '</a>';
|
||||
}
|
||||
}
|
||||
print '</td>';
|
||||
print "</tr>\n";
|
||||
|
||||
print '<tr '.$bc[false].'>';
|
||||
@ -967,17 +981,8 @@ else
|
||||
|
||||
// Statut
|
||||
print '<td align="center">';
|
||||
if ($user->societe_id == 0)
|
||||
{
|
||||
if ($contrat->statut > 0 && $_REQUEST["action"] != 'activateline' && $_REQUEST["action"] != 'unactivateline')
|
||||
{
|
||||
$action='activateline';
|
||||
if ($objp->statut == 4) $action='unactivateline';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$contrat->id.'&ligne='.$contrat->lignes[$cursorline-1]->id.'&action='.$action.'">';
|
||||
print img_edit();
|
||||
print '</a>';
|
||||
}
|
||||
}
|
||||
print ' ';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
print '</table>';
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ AddContract=Add contract
|
||||
SearchAContract=Search a contract
|
||||
DeleteAContract=Delete a contract
|
||||
CloseAContract=Close a contract
|
||||
ConfirmDeleteAContract=Are you sure you want to delete this contract ?
|
||||
ConfirmDeleteAContract=Are you sure you want to delete this contract and all its services ?
|
||||
ConfirmValidateContract=Are you sure you want to validate this contract ?
|
||||
ConfirmCloseContract=Are you sure you want to close this contract ?
|
||||
ConfirmCloseService=Are you sure you want to close this service with date <b>%s</b> ?
|
||||
@ -64,6 +64,7 @@ CloseService=Close service
|
||||
ServicesNomberShort=%s service(s)
|
||||
RunningServices=Running services
|
||||
BoardRunningServices=Expired running services
|
||||
ServiceStatus=Status of service
|
||||
##### Types de contacts #####
|
||||
TypeContact_contrat_internal_SALESREPSIGN=Sales representative signing contract
|
||||
TypeContact_contrat_internal_SALESREPFOLL=Sales representative following-up contract
|
||||
|
||||
@ -28,7 +28,7 @@ AddContract=Cr
|
||||
SearchAContract=Rechercher un contrat
|
||||
DeleteAContract=Supprimer un contract
|
||||
CloseAContract=Cloturer un contract
|
||||
ConfirmDeleteAContract=Etes-vous sûr de vouloir supprimer ce contrat ?
|
||||
ConfirmDeleteAContract=Etes-vous sûr de vouloir supprimer ce contrat et tous ses services ?
|
||||
ConfirmValidateContract=Etes-vous sûr de vouloir valider ce contrat ?
|
||||
ConfirmCloseContract=Etes-vous sûr de vouloir cloturer ce contrat ?
|
||||
ConfirmCloseService=Etes-vous sûr de vouloir fermer ce service à la date du <b>%s</b> ?
|
||||
@ -64,6 +64,7 @@ CloseService=Fermer service
|
||||
ServicesNomberShort=%s service(s)
|
||||
RunningServices=Services actifs
|
||||
BoardRunningServices=Services actifs expirés
|
||||
ServiceStatus=Statut du service
|
||||
##### Types de contacts #####
|
||||
TypeContact_contrat_internal_SALESREPSIGN=Commercial signataire du contrat
|
||||
TypeContact_contrat_internal_SALESREPFOLL=Commercial suivi du contrat
|
||||
|
||||
Loading…
Reference in New Issue
Block a user