Possibilit d'ajouter des contacts une facture durant tout son cycle de vie (pas seulement en brouillon)

This commit is contained in:
Laurent Destailleur 2005-12-03 16:56:04 +00:00
parent 5bb3e46186
commit bffc2d4db3
3 changed files with 11 additions and 4 deletions

View File

@ -629,6 +629,8 @@ if ($_GET['action'] == 'create')
print '<input type="hidden" name="socid" value="'.$soc->id.'">' ."\n";
print '<table class="border" width="100%">';
// Reference
print '<tr><td>'.$langs->trans('Ref').'</td><td colspan="2">'.$langs->trans('Draft').'</td></tr>';
print '<input name="facnumber" type="hidden" value="provisoire">';
@ -1144,6 +1146,9 @@ else
*/
print '<table class="border" width="100%">';
// Reference
print '<tr><td width="20%">'.$langs->trans('Ref').'</td><td colspan="5">'.$fac->ref.'</td></tr>';
// Société
print '<tr><td>'.$langs->trans('Company').'</td>';
print '<td colspan="5">';

View File

@ -93,7 +93,7 @@ function select_societes_for_newconcat($facture, $selected = '', $htmlname = 'ne
function select_type_contact($facture, $defValue, $htmlname = 'type', $source)
{
$lesTypes = $facture->liste_type_contact($source);
print '<select size="0" name="'.$htmlname.'">';
print '<select class="flat" name="'.$htmlname.'">';
foreach($lesTypes as $key=>$value)
{
print '<option value="'.$key.'">'.$value.'</option>';
@ -232,7 +232,7 @@ if ($id > 0)
print '<table class="border" width="100%">';
// Reference du facture
print '<tr><td width="25%">'.$langs->trans("Ref").'</td><td colspan="3">';
print '<tr><td width="20%">'.$langs->trans("Ref").'</td><td colspan="3">';
print $facture->ref;
print "</td></tr>";
@ -255,9 +255,8 @@ if ($id > 0)
/*
* Ajouter une ligne de contact
* Non affiché en mode modification de ligne
* ou si facture validée.
*/
if ($facture->statut <= 0 && $_GET["action"] != 'editline' && $user->rights->facture->creer)
if ($_GET["action"] != 'editline' && $user->rights->facture->creer)
{
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("Source").'</td>';

View File

@ -83,6 +83,9 @@ if ($_GET["facid"])
print '<table class="border" width="100%">';
// Reference
print '<tr><td width="20%">'.$langs->trans('Ref').'</td><td colspan="5">'.$fac->ref.'</td></tr>';
print '<tr><td>'.$langs->trans("Company").'</td>';
print '<td colspan="3">';
print '<a href="'.DOL_URL_ROOT.'/compta/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';