Début ajout de la gestion des adresses de livraison

This commit is contained in:
Regis Houssin 2006-04-21 15:49:50 +00:00
parent d624c3ec6c
commit 5418622c17
3 changed files with 14 additions and 12 deletions

View File

@ -47,6 +47,7 @@ class Commande
var $cond_reglement_code; var $cond_reglement_code;
var $mode_reglement_id; var $mode_reglement_id;
var $mode_reglement_code; var $mode_reglement_code;
var $adresse_livraison_id;
// Pour board // Pour board
var $nbtodo; var $nbtodo;

View File

@ -95,6 +95,7 @@ if ($_POST['action'] == 'add' && $user->rights->commande->creer)
$commande->cond_reglement_id = $_POST['cond_reglement_id']; $commande->cond_reglement_id = $_POST['cond_reglement_id'];
$commande->mode_reglement_id = $_POST['mode_reglement_id']; $commande->mode_reglement_id = $_POST['mode_reglement_id'];
$commande->date_livraison = $datelivraison; $commande->date_livraison = $datelivraison;
$commande->adresse_livraison_id = $_POST['adresse_livraison_id'];
$commande->add_product($_POST['idprod1'],$_POST['qty1'],$_POST['remise_percent1']); $commande->add_product($_POST['idprod1'],$_POST['qty1'],$_POST['remise_percent1']);
$commande->add_product($_POST['idprod2'],$_POST['qty2'],$_POST['remise_percent2']); $commande->add_product($_POST['idprod2'],$_POST['qty2'],$_POST['remise_percent2']);

View File

@ -1595,7 +1595,7 @@ class Form
print '<input type="hidden" name="socid" value="'.$socid.'">'; print '<input type="hidden" name="socid" value="'.$socid.'">';
print '<table class="noborder" cellpadding="0" cellspacing="0">'; print '<table class="noborder" cellpadding="0" cellspacing="0">';
print '<tr><td>'; print '<tr><td>';
$this->select_adresse_livraison($selected, $_POST['socid'], $htmlname); $this->select_adresse_livraison($selected, $_GET['socid'], $htmlname);
print '</td>'; print '</td>';
print '<td align="left"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>'; print '<td align="left"><input type="submit" class="button" value="'.$langs->trans("Modify").'"></td>';
print '</tr></table></form>'; print '</tr></table></form>';