Works on address function
This commit is contained in:
parent
e07491e261
commit
c1fa8287ed
@ -223,7 +223,7 @@ if ($_POST['action'] == 'setdate_livraison')
|
||||
if ($result < 0) dol_print_error($db,$propal->error);
|
||||
}
|
||||
|
||||
if ($_POST['action'] == 'setdeliveryadress' && $user->rights->propale->creer)
|
||||
if ($_POST['action'] == 'setaddress' && $user->rights->propale->creer)
|
||||
{
|
||||
$propal = new Propal($db);
|
||||
$propal->fetch($_GET["id"]);
|
||||
@ -1247,11 +1247,11 @@ if ($id > 0 || ! empty($ref))
|
||||
print $langs->trans('DeliveryAddress');
|
||||
print '</td>';
|
||||
|
||||
if ($_GET['action'] != 'editdelivery_adress' && $propal->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editdelivery_adress&socid='.$propal->socid.'&id='.$propal->id.'">'.img_edit($langs->trans('SetDeliveryAddress'),1).'</a></td>';
|
||||
if ($_GET['action'] != 'editdelivery_address' && $propal->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editdelivery_address&socid='.$propal->socid.'&id='.$propal->id.'">'.img_edit($langs->trans('SetDeliveryAddress'),1).'</a></td>';
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="3">';
|
||||
|
||||
if ($_GET['action'] == 'editdelivery_adress')
|
||||
if ($_GET['action'] == 'editdelivery_address')
|
||||
{
|
||||
$html->form_address($_SERVER['PHP_SELF'].'?id='.$propal->id,$propal->fk_delivery_address,$_GET['socid'],'fk_address','propal',$propal->id);
|
||||
}
|
||||
|
||||
@ -311,7 +311,7 @@ if ($_POST['action'] == 'setdate_livraison' && $user->rights->commande->creer)
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST['action'] == 'setdeliveryadress' && $user->rights->commande->creer)
|
||||
if ($_POST['action'] == 'setaddress' && $user->rights->commande->creer)
|
||||
{
|
||||
$commande = new Commande($db);
|
||||
$commande->fetch($_GET['id']);
|
||||
|
||||
@ -93,7 +93,7 @@ if ($_POST['action'] == 'setdate_livraison' && $user->rights->commande->creer)
|
||||
}
|
||||
}
|
||||
|
||||
if ($_POST['action'] == 'setdeliveryadress' && $user->rights->commande->creer)
|
||||
if ($_POST['action'] == 'setaddress' && $user->rights->commande->creer)
|
||||
{
|
||||
$commande = new Commande($db);
|
||||
$commande->fetch($_GET['id']);
|
||||
|
||||
@ -2097,7 +2097,7 @@ class Form
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Affiche formulaire de selection de l'adresse de livraison
|
||||
* \brief Affiche formulaire de selection de l'adresse
|
||||
* \param page Page
|
||||
* \param selected Id condition pre-selectionne
|
||||
* \param htmlname Nom du formulaire select
|
||||
@ -2110,7 +2110,7 @@ class Form
|
||||
if ($htmlname != "none")
|
||||
{
|
||||
print '<form method="post" action="'.$page.'">';
|
||||
print '<input type="hidden" name="action" value="setdeliveryadress">';
|
||||
print '<input type="hidden" name="action" value="setaddress">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
||||
print '<tr><td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user