[CORE] correction de nom de fonction pour un appel correct (#new_ask_price).

This commit is contained in:
phf 2015-01-29 10:41:46 +01:00
parent a58899d354
commit 77e4619fe2
4 changed files with 9 additions and 9 deletions

View File

@ -149,7 +149,7 @@ $formother = new FormOther($db);
if ($object->id > 0) if ($object->id > 0)
{ {
$head = propal_prepare_head($object); $head = askpricesupplier_prepare_head($object);
dol_fiche_head($head, 'contact', $langs->trans("CommRequest"), 0, 'askpricesupplier'); dol_fiche_head($head, 'contact', $langs->trans("CommRequest"), 0, 'askpricesupplier');
/* /*
@ -198,7 +198,7 @@ if ($object->id > 0)
} }
else else
{ {
$formother->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,$object->socid,'none','propal',$object->id); $formother->form_address($_SERVER['PHP_SELF'].'?id='.$object->id,$object->fk_delivery_address,$object->socid,'none','askpricesupplier',$object->id);
} }
print '</td></tr>'; print '</td></tr>';
} }

View File

@ -85,9 +85,9 @@ $form = new Form($db);
if ($object->id > 0) if ($object->id > 0)
{ {
$upload_dir = $conf->propal->dir_output.'/'.dol_sanitizeFileName($object->ref); $upload_dir = $conf->askpricesupplier->dir_output.'/'.dol_sanitizeFileName($object->ref);
$head = propal_prepare_head($object); $head = askpricesupplier_prepare_head($object);
dol_fiche_head($head, 'document', $langs->trans('CommRequest'), 0, 'askpricesupplier'); dol_fiche_head($head, 'document', $langs->trans('CommRequest'), 0, 'askpricesupplier');
// Construit liste des fichiers // Construit liste des fichiers

View File

@ -49,7 +49,7 @@ $object = new AskPriceSupplier($db);
$object->fetch($id); $object->fetch($id);
$object->fetch_thirdparty(); $object->fetch_thirdparty();
$head = propal_prepare_head($object); $head = askpricesupplier_prepare_head($object);
dol_fiche_head($head, 'info', $langs->trans('CommRequest'), 0, 'askpricesupplier'); dol_fiche_head($head, 'info', $langs->trans('CommRequest'), 0, 'askpricesupplier');
$object->info($object->id); $object->info($object->id);

View File

@ -41,7 +41,7 @@ $action=GETPOST('action','alpha');
if ($user->societe_id) $socid=$user->societe_id; if ($user->societe_id) $socid=$user->societe_id;
$result = restrictedArea($user, 'askpricesupplier', $id, 'askpricesupplier'); $result = restrictedArea($user, 'askpricesupplier', $id, 'askpricesupplier');
$object = new Propal($db); $object = new AskPriceSupplier($db);
@ -49,7 +49,7 @@ $object = new Propal($db);
/* Actions */ /* Actions */
/******************************************************************************/ /******************************************************************************/
$permissionnote=$user->rights->propale->creer; // Used by the include of actions_setnotes.inc.php $permissionnote=$user->rights->askpricesupplier->creer; // Used by the include of actions_setnotes.inc.php
include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not includ_once include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include, not includ_once
@ -74,7 +74,7 @@ if ($id > 0 || ! empty($ref))
$societe = new Societe($db); $societe = new Societe($db);
if ( $societe->fetch($object->socid) ) if ( $societe->fetch($object->socid) )
{ {
$head = propal_prepare_head($object); $head = askpricesupplier_prepare_head($object);
dol_fiche_head($head, 'note', $langs->trans('CommRequest'), 0, 'askpricesupplier'); dol_fiche_head($head, 'note', $langs->trans('CommRequest'), 0, 'askpricesupplier');
print '<table class="border" width="100%">'; print '<table class="border" width="100%">';
@ -126,7 +126,7 @@ if ($id > 0 || ! empty($ref))
if ($object->fin_validite) if ($object->fin_validite)
{ {
print dol_print_date($object->fin_validite,'daytext'); print dol_print_date($object->fin_validite,'daytext');
if ($object->statut == 1 && $object->fin_validite < ($now - $conf->propal->cloture->warning_delay)) print img_warning($langs->trans("Late")); if ($object->statut == 1 && $object->fin_validite < ($now - $conf->askpricesupplier->cloture->warning_delay)) print img_warning($langs->trans("Late"));
} }
else else
{ {