Dbut 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 $mode_reglement_id;
var $mode_reglement_code;
var $adresse_livraison_id;
// Pour board
var $nbtodo;

View File

@ -84,17 +84,18 @@ if ($_POST['action'] == 'add' && $user->rights->commande->creer)
$commande = new Commande($db);
$commande->soc_id = $_POST['soc_id'];
$commande->date_commande = $datecommande;
$commande->note = $_POST['note'];
$commande->source = $_POST['source_id'];
$commande->projetid = $_POST['projetid'];
$commande->remise_percent = $_POST['remise_percent'];
$commande->ref_client = $_POST['ref_client'];
$commande->modelpdf = $_POST['model'];
$commande->cond_reglement_id = $_POST['cond_reglement_id'];
$commande->mode_reglement_id = $_POST['mode_reglement_id'];
$commande->date_livraison = $datelivraison;
$commande->soc_id = $_POST['soc_id'];
$commande->date_commande = $datecommande;
$commande->note = $_POST['note'];
$commande->source = $_POST['source_id'];
$commande->projetid = $_POST['projetid'];
$commande->remise_percent = $_POST['remise_percent'];
$commande->ref_client = $_POST['ref_client'];
$commande->modelpdf = $_POST['model'];
$commande->cond_reglement_id = $_POST['cond_reglement_id'];
$commande->mode_reglement_id = $_POST['mode_reglement_id'];
$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['idprod2'],$_POST['qty2'],$_POST['remise_percent2']);

View File

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