';
-
+
// Ref
print '| ' . $langs->trans('Ref') . ' | ' . $langs->trans('Draft') . ' |
';
-
+
// Ref supplier
print '| ' . $langs->trans('RefSupplier') . ' | | ';
print '
';
-
+
// Third party
print '| ' . $langs->trans('Customer') . ' | ';
print $soc->getNomUrl(1);
print '';
print ' | ';
print '
' . "\n";
-
+
// Date invoice
print '| ' . $langs->trans('Date') . ' | ';
$html->select_date('', '', '', '', '', "add", 1, 1);
@@ -330,13 +330,13 @@ if ($action == 'create' && empty($mesgs)) {
// Project
if (! empty($conf->projet->enabled)) {
$formproject = new FormProjets($db);
-
+
$langs->load('projects');
print ' |
| ' . $langs->trans('Project') . ' | ';
$formproject->select_projects($soc->id, $projectid, 'projectid');
print ' |
';
}
-
+
$objectsrc = new CommandeFournisseur($db);
$listoforders = array ();
foreach ( $selected as $sel ) {
@@ -345,30 +345,30 @@ if ($action == 'create' && empty($mesgs)) {
$listoforders[] = $objectsrc->ref;
}
}
-
+
// Other attributes
$parameters = array (
'objectsrc' => $objectsrc,
'idsrc' => $listoforders,
- 'colspan' => ' colspan="3"'
+ 'colspan' => ' colspan="3"'
);
$reshook = $hookmanager->executeHooks('formObjectOptions', $parameters, $object, $action); // Note that $action and $object may have been modified by hook
-
+
// Modele PDF
print '| ' . $langs->trans('Model') . ' | ';
print '';
$liste = ModelePDFSuppliersInvoices::liste_modeles($db);
print $html->selectarray('model', $liste, $conf->global->INVOICE_SUPPLIER_ADDON_PDF);
print " |
";
-
+
// Public note
print '';
print '| ' . $langs->trans('NotePublic') . ' | ';
print '';
print ' |
';
// Private note
if (empty($user->societe_id)) {
@@ -376,22 +376,22 @@ if ($action == 'create' && empty($mesgs)) {
print '' . $langs->trans('NotePrivate') . ' | ';
print '';
print ' | ';
}
-
+
print '
';
-
+
while ( $i < $n ) {
print '