';
+ $linkback = ''.$langs->trans("BackToList").'';
- $linkback = ''.$langs->trans("BackToList").'';
+ // Ref
+ print '| '.$langs->trans("Ref").' | ';
+ print '';
+ print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref');
+ print ' | ';
+ print '
';
- // Ref
- print '| '.$langs->trans("Ref").' | ';
- print '';
- print $form->showrefnav($object, 'ref', $linkback, 1, 'ref', 'ref');
- print ' | ';
- print '
';
+ // Ref supplier
+ print '| ';
+ print $form->editfieldkey("RefSupplier",'ref_supplier',$langs->trans($object->ref_supplier),$object,$user->rights->fournisseur->commande->creer);
+ print ' | ';
+ print $form->editfieldval("RefSupplier",'ref_supplier',$langs->trans($object->ref_supplier),$object,$user->rights->fournisseur->commande->creer);
+ print ' |
';
- // Ref supplier
- print '| ';
- print $form->editfieldkey("RefSupplier",'ref_supplier',$langs->trans($object->ref_supplier),$object,$user->rights->fournisseur->commande->creer);
- print ' | ';
- print $form->editfieldval("RefSupplier",'ref_supplier',$langs->trans($object->ref_supplier),$object,$user->rights->fournisseur->commande->creer);
- print ' |
';
+ // Fournisseur
+ print '| '.$langs->trans("Supplier")." | ";
+ print ''.$object->thirdparty->getNomUrl(1,'supplier').' | ';
+ print '
';
- // Fournisseur
- print '| '.$langs->trans("Supplier")." | ";
- print ''.$object->thirdparty->getNomUrl(1,'supplier').' | ';
- print '
';
+ // Statut
+ print '';
+ print '| '.$langs->trans("Status").' | ';
+ print '';
+ print $object->getLibStatut(4);
+ print " |
";
- // Statut
- print '';
- print '| '.$langs->trans("Status").' | ';
- print '';
- print $object->getLibStatut(4);
- print " |
";
+ // Date
+ if ($object->methode_commande_id > 0)
+ {
+ print '| '.$langs->trans("Date").' | ';
+ if ($object->date_commande)
+ {
+ print dol_print_date($object->date_commande,"dayhourtext")."\n";
+ }
+ print " |
";
- // Date
- if ($object->methode_commande_id > 0)
- {
- print '| '.$langs->trans("Date").' | ';
- if ($object->date_commande)
- {
- print dol_print_date($object->date_commande,"dayhourtext")."\n";
- }
- print " |
";
+ if ($object->methode_commande)
+ {
+ print '| '.$langs->trans("Method").' | '.$object->getInputMethod().' |
';
+ }
+ }
- if ($object->methode_commande)
- {
- print '| '.$langs->trans("Method").' | '.$object->getInputMethod().' |
';
- }
- }
+ // Author
+ print '| '.$langs->trans("AuthorRequest").' | ';
+ print ''.$author->getNomUrl(1).' | ';
+ print '
';
- // Author
- print '| '.$langs->trans("AuthorRequest").' | ';
- print ''.$author->getNomUrl(1).' | ';
- print '
';
+ // Conditions de reglement par defaut
+ $langs->load('bills');
+ $form = new Form($db);
+ print '| ';
+ print '';
+ print ' | ';
+ if ($action == 'editconditions')
+ {
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id,'cond_reglement_id');
+ }
+ else
+ {
+ $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id,'none');
+ }
+ print " | ";
+ print '
';
- // Conditions de reglement par defaut
- $langs->load('bills');
- $form = new Form($db);
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editconditions')
- {
- $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id,'cond_reglement_id');
- }
- else
- {
- $form->form_conditions_reglement($_SERVER['PHP_SELF'].'?id='.$object->id, $object->cond_reglement_id,'none');
- }
- print " | ";
- print '
';
+ // Mode of payment
+ $langs->load('bills');
+ $form = new Form($db);
+ print '| ';
+ print '';
+ print ' | ';
+ if ($action == 'editmode')
+ {
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
+ }
+ else
+ {
+ $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
+ }
+ print ' |
';
- // Mode of payment
- $langs->load('bills');
- $form = new Form($db);
- print '| ';
- print '';
- print ' | ';
- if ($action == 'editmode')
- {
- $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'mode_reglement_id');
- }
- else
- {
- $form->form_modes_reglement($_SERVER['PHP_SELF'].'?id='.$object->id,$object->mode_reglement_id,'none');
- }
- print ' |
';
+ // Delivery date planed
+ print '';
+ print '| ';
+ print $langs->trans('DateDeliveryPlanned');
+ print ' | ';
- // Delivery date planed
- print ' | ';
- print '';
+ print ' | ';
+ if ($action == 'editdate_livraison')
+ {
+ print '';
+ }
+ else
+ {
+ print $object->date_livraison ? dol_print_date($object->date_livraison,'daytext') : ' ';
+ }
+ print ' | ';
- if ($action != 'editdate_livraison') print 'id.'">'.img_edit($langs->trans('SetDeliveryDate'),1).' | ';
- print ' ';
- print ' | ';
- if ($action == 'editdate_livraison')
- {
- print '';
- }
- else
- {
- print $object->date_livraison ? dol_print_date($object->date_livraison,'daytext') : ' ';
- }
- print ' | ';
+ // Project
+ if (! empty($conf->projet->enabled))
+ {
+ $langs->load('projects');
+ print '
| ';
+ print '';
+ print ' | ';
+ //print "$object->id, $object->socid, $object->fk_project";
+ if ($action == 'classify')
+ {
+ $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS)?$object->socid:'-1', $object->fk_project, 'projectid');
+ }
+ else
+ {
+ $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
+ }
+ print ' | ';
+ print '
';
+ }
- // Project
- if (! empty($conf->projet->enabled))
- {
- $langs->load('projects');
- print '| ';
- print '';
- print ' | ';
- //print "$object->id, $object->socid, $object->fk_project";
- if ($action == 'classify')
- {
- $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, empty($conf->global->PROJECT_CAN_ALWAYS_LINK_TO_ALL_SUPPLIERS)?$object->socid:'-1', $object->fk_project, 'projectid');
- }
- else
- {
- $form->form_project($_SERVER['PHP_SELF'].'?id='.$object->id, $object->socid, $object->fk_project, 'none');
- }
- print ' | ';
- print '
';
- }
+ // Other attributes
+ $parameters=array('socid'=>$socid, 'colspan' => ' colspan="3"');
+ $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
- // Other attributes
- $parameters=array('socid'=>$socid, 'colspan' => ' colspan="3"');
- $reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
+ // Ligne de 3 colonnes
+ print '| '.$langs->trans("AmountHT").' | ';
+ print ''.price($object->total_ht).' | ';
+ print ''.$langs->trans("Currency".$conf->currency).' |
';
- // Ligne de 3 colonnes
- print '| '.$langs->trans("AmountHT").' | ';
- print ''.price($object->total_ht).' | ';
- print ''.$langs->trans("Currency".$conf->currency).' |
';
+ print '| '.$langs->trans("AmountVAT").' | '.price($object->total_tva).' | ';
+ print ''.$langs->trans("Currency".$conf->currency).' |
';
- print '| '.$langs->trans("AmountVAT").' | '.price($object->total_tva).' | ';
- print ''.$langs->trans("Currency".$conf->currency).' |
';
+ // Amount Local Taxes
+ if ($mysoc->country_code=='ES')
+ {
+ if ($mysoc->localtax1_assuj=="1") //Localtax1 RE
+ {
+ print '| '.$langs->transcountry("AmountLT1",$mysoc->country_code).' | ';
+ print ''.price($object->total_localtax1).' | ';
+ print ''.$langs->trans("Currency".$conf->currency).' |
';
+ }
+ if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF
+ {
+ print '| '.$langs->transcountry("AmountLT2",$mysoc->country_code).' | ';
+ print ''.price($object->total_localtax2).' | ';
+ print ''.$langs->trans("Currency".$conf->currency).' |
';
+ }
+ }
+ print '| '.$langs->trans("AmountTTC").' | '.price($object->total_ttc).' | ';
+ print ''.$langs->trans("Currency".$conf->currency).' |
';
- // Amount Local Taxes
- if ($mysoc->country_code=='ES')
- {
- if ($mysoc->localtax1_assuj=="1") //Localtax1 RE
- {
- print '| '.$langs->transcountry("AmountLT1",$mysoc->country_code).' | ';
- print ''.price($object->total_localtax1).' | ';
- print ''.$langs->trans("Currency".$conf->currency).' |
';
- }
- if ($mysoc->localtax2_assuj=="1") //Localtax2 IRPF
- {
- print '| '.$langs->transcountry("AmountLT2",$mysoc->country_code).' | ';
- print ''.price($object->total_localtax2).' | ';
- print ''.$langs->trans("Currency".$conf->currency).' |
';
- }
- }
- print '| '.$langs->trans("AmountTTC").' | '.price($object->total_ttc).' | ';
- print ''.$langs->trans("Currency".$conf->currency).' |
';
+ print "