1154 |
if ($_GET['action'] == 'valid') |
if ($_GET['action'] == 'valid') |
1155 |
{ |
{ |
1156 |
$numfa = facture_get_num($soc); |
$numfa = facture_get_num($soc); |
1157 |
$html->form_confirm('facture.php?facid='.$fac->id,$langs->trans('ValidateBill'),$langs->trans('ConfirmValidateBill',$numfa),'confirm_valid'); |
$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ValidateBill'),$langs->trans('ConfirmValidateBill',$numfa),'confirm_valid'); |
1158 |
print '<br />'; |
print '<br />'; |
1159 |
} |
} |
1160 |
|
|
1163 |
*/ |
*/ |
1164 |
if ($_GET['action'] == 'payed') |
if ($_GET['action'] == 'payed') |
1165 |
{ |
{ |
1166 |
$html->form_confirm('facture.php?facid='.$fac->id,$langs->trans('ClassifyPayed'),$langs->trans('ConfirmClassifyPayedBill',$fac->ref),'confirm_payed'); |
$html->form_confirm($_SERVER["PHP_SELF"].'?facid='.$fac->id,$langs->trans('ClassifyPayed'),$langs->trans('ConfirmClassifyPayedBill',$fac->ref),'confirm_payed'); |
1167 |
print '<br />'; |
print '<br />'; |
1168 |
} |
} |
1169 |
|
|
1180 |
* Facture |
* Facture |
1181 |
*/ |
*/ |
1182 |
print '<table class="border" width="100%">'; |
print '<table class="border" width="100%">'; |
1183 |
|
|
1184 |
|
// Société |
1185 |
print '<tr><td>'.$langs->trans('Company').'</td>'; |
print '<tr><td>'.$langs->trans('Company').'</td>'; |
1186 |
print '<td colspan="5">'; |
print '<td colspan="5">'; |
1187 |
print '<a href="fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>'; |
print '<a href="fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>'; |
1188 |
|
print '</tr>'; |
1189 |
|
|
1190 |
|
// Dates |
1191 |
print '<tr><td>'.$langs->trans('Date').'</td>'; |
print '<tr><td>'.$langs->trans('Date').'</td>'; |
1192 |
print '<td colspan="3">'.dolibarr_print_date($fac->date,'%A %d %B %Y').'</td>'; |
print '<td colspan="3">'.dolibarr_print_date($fac->date,'%A %d %B %Y').'</td>'; |
1193 |
print '<td>'.$langs->trans('DateClosing').'</td><td>' . dolibarr_print_date($fac->date_lim_reglement,'%A %d %B %Y'); |
print '<td>'.$langs->trans('DateClosing').'</td><td>' . dolibarr_print_date($fac->date_lim_reglement,'%A %d %B %Y'); |
1199 |
print '<table class="nobordernopadding" width="100%"><tr><td>'; |
print '<table class="nobordernopadding" width="100%"><tr><td>'; |
1200 |
print $langs->trans('PaymentConditions'); |
print $langs->trans('PaymentConditions'); |
1201 |
print '</td>'; |
print '</td>'; |
1202 |
if ($_GET['action'] != 'editconditions' && $fac->brouillon) print '<td align="right"><a href="facture.php?action=editconditions&facid='.$fac->id.'">'.img_edit($langs->trans('SetConditions'),1).'</a></td>'; |
if ($_GET['action'] != 'editconditions' && $fac->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editconditions&facid='.$fac->id.'">'.img_edit($langs->trans('SetConditions'),1).'</a></td>'; |
1203 |
print '</tr></table>'; |
print '</tr></table>'; |
1204 |
print '</td><td colspan="3">'; |
print '</td><td colspan="3">'; |
1205 |
if ($_GET['action'] == 'editconditions') |
if ($_GET['action'] == 'editconditions') |
1215 |
print '<table class="nobordernopadding" width="100%"><tr><td>'; |
print '<table class="nobordernopadding" width="100%"><tr><td>'; |
1216 |
print $langs->trans('PaymentMode'); |
print $langs->trans('PaymentMode'); |
1217 |
print '</td>'; |
print '</td>'; |
1218 |
if ($_GET['action'] != 'editmode' && $fac->brouillon) print '<td align="right"><a href="facture.php?action=editmode&facid='.$fac->id.'">'.img_edit($langs->trans('SetMode'),1).'</a></td>'; |
if ($_GET['action'] != 'editmode' && $fac->brouillon) print '<td align="right"><a href="'.$_SERVER["PHP_SELF"].'?action=editmode&facid='.$fac->id.'">'.img_edit($langs->trans('SetMode'),1).'</a></td>'; |
1219 |
print '</tr></table>'; |
print '</tr></table>'; |
1220 |
print '</td><td width="25%">'; |
print '</td><td width="25%">'; |
1221 |
if ($_GET['action'] == 'editmode') |
if ($_GET['action'] == 'editmode') |