Fix: function not found
This commit is contained in:
parent
1d4d2a2c08
commit
99c1b5fe88
@ -1336,7 +1336,7 @@ else
|
||||
{
|
||||
if ($commande->statut > 0)
|
||||
{
|
||||
print $langs->trans("CompanyHasAbsoluteDiscount",$absolute_discount,$langs->transnoentities("Currency".$conf->monnaie));
|
||||
print $langs->trans("CompanyHasAbsoluteDiscount",price($absolute_discount),$langs->transnoentities("Currency".$conf->monnaie));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -1441,7 +1441,7 @@ else
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('PaymentMode');
|
||||
print '</td>';
|
||||
if ($_GET['action'] != 'editmode') print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editmode&id='.$commande->id.'">'.img_edit($langs->trans('SetMode'),1).'</a></td>';
|
||||
if ($_GET['action'] != 'editmode' && $commande->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editmode&id='.$commande->id.'">'.img_edit($langs->trans('SetMode'),1).'</a></td>';
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="2">';
|
||||
if ($_GET['action'] == 'editmode')
|
||||
|
||||
@ -398,6 +398,7 @@ class CommonObject
|
||||
$address = new Societe($this->db);
|
||||
$result=$address->fetch_adresse_livraison($deliveryaddressid);
|
||||
$this->deliveryaddress = $address;
|
||||
$this->adresse = $adresse;
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@ -54,6 +54,14 @@ $result=restrictedArea($user,'commande',$comid,'');
|
||||
* Actions
|
||||
*/
|
||||
|
||||
// Categorisation dans projet
|
||||
if ($_POST['action'] == 'classin')
|
||||
{
|
||||
$commande = new Commande($db);
|
||||
$commande->fetch($_GET['id']);
|
||||
$commande->setProject($_POST['projetid']);
|
||||
}
|
||||
|
||||
if ($_GET["action"] == 'facturee')
|
||||
{
|
||||
$commande = new Commande($db);
|
||||
@ -316,7 +324,7 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('Project');
|
||||
print '</td>';
|
||||
if ($_GET['action'] != 'classer' && $commande->brouillon) print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=classer&id='.$commande->id.'">'.img_edit($langs->trans('SetProject')).'</a></td>';
|
||||
if ($_GET['action'] != 'classer') print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=classer&id='.$commande->id.'">'.img_edit($langs->trans('SetProject')).'</a></td>';
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="2">';
|
||||
if ($_GET['action'] == 'classer')
|
||||
|
||||
@ -58,6 +58,15 @@ $error = $user->load_entrepots();
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
|
||||
// Categorisation dans projet
|
||||
if ($_POST['action'] == 'classin')
|
||||
{
|
||||
$commande = new Commande($db);
|
||||
$commande->fetch($_GET['id']);
|
||||
$commande->setProject($_POST['projetid']);
|
||||
}
|
||||
|
||||
if ($_POST["action"] == 'confirm_cloture' && $_POST["confirm"] == 'yes')
|
||||
{
|
||||
$commande = new Commande($db);
|
||||
@ -306,7 +315,7 @@ if ($id > 0 || ! empty($ref))
|
||||
$html->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$commande->id,$commande->cond_reglement_id,'none');
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
// Mode of payment
|
||||
print '<tr><td height="10">';
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
@ -333,7 +342,7 @@ if ($id > 0 || ! empty($ref))
|
||||
print '<table class="nobordernopadding" width="100%"><tr><td>';
|
||||
print $langs->trans('Project');
|
||||
print '</td>';
|
||||
if ($_GET['action'] != 'classer' && $commande->brouillon) print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=classer&id='.$commande->id.'">'.img_edit($langs->trans('SetProject')).'</a></td>';
|
||||
if ($_GET['action'] != 'classer') print '<td align="right"><a href="'.$_SERVER['PHP_SELF'].'?action=classer&id='.$commande->id.'">'.img_edit($langs->trans('SetProject')).'</a></td>';
|
||||
print '</tr></table>';
|
||||
print '</td><td colspan="2">';
|
||||
if ($_GET['action'] == 'classer')
|
||||
|
||||
@ -282,13 +282,13 @@ if ($_GET["action"] == 'create')
|
||||
// Date
|
||||
print "<tr><td>".$langs->trans("Date")."</td>";
|
||||
print '<td colspan="3">'.dol_print_date($object->date,"day")."</td></tr>\n";
|
||||
|
||||
|
||||
// Delivery address
|
||||
print '<tr><td>'.$langs->trans('DeliveryAddress').'</td>';
|
||||
print '<td colspan="3">';
|
||||
if (!empty($object->fk_delivery_address))
|
||||
{
|
||||
$expedition->fetch_adresse_livraison($object->fk_delivery_address);
|
||||
$object->fetch_adresse_livraison($object->fk_delivery_address);
|
||||
print '<a href='.DOL_URL_ROOT.'/comm/adresse_livraison.php?socid='.$expedition->deliveryaddress->socid.'&id='.$expedition->deliveryaddress->id.'&action=edit&origin='.$origin.'&originid='.$origin_id.'>'.$expedition->deliveryaddress->label.'</a>';
|
||||
}
|
||||
print '</td></tr>'."\n";
|
||||
@ -343,7 +343,7 @@ if ($_GET["action"] == 'create')
|
||||
* Lignes de commandes
|
||||
*
|
||||
*/
|
||||
print '<br><table class="noborder" width="100%">';
|
||||
print '<br><table class="nobordernopadding" width="100%">';
|
||||
|
||||
//$lignes = $object->fetch_lines(1);
|
||||
$numAsked = sizeof($object->lignes);
|
||||
@ -647,7 +647,7 @@ else
|
||||
print '<tr><td>'.$langs->trans("Date").'</td>';
|
||||
print '<td colspan="3">'.dol_print_date($expedition->date,"daytext")."</td>\n";
|
||||
print '</tr>';
|
||||
|
||||
|
||||
// Delivery address
|
||||
print '<tr><td>'.$langs->trans('DeliveryAddress').'</td>';
|
||||
print '<td colspan="3">';
|
||||
|
||||
@ -627,19 +627,6 @@ class Livraison extends CommonObject
|
||||
$this->$object->fetch($this->origin_id);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
function fetch_adresse_livraison($id)
|
||||
{
|
||||
$idadresse = $id;
|
||||
$adresse = new Societe($this->db);
|
||||
$adresse->fetch_adresse_livraison($idadresse);
|
||||
$this->adresse = $adresse;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user