Example #1
0
     $action = 'presend';
 }
 if ($action != 'prerelance' && $action != 'presend') {
     print '<div class="fichecenter"><div class="fichehalfleft">';
     print '<a name="builddoc"></a>';
     // ancre
     // Documents generes
     $filename = dol_sanitizeFileName($object->ref);
     $filedir = $conf->facture->dir_output . '/' . dol_sanitizeFileName($object->ref);
     $urlsource = $_SERVER['PHP_SELF'] . '?facid=' . $object->id;
     $genallowed = $user->rights->facture->creer;
     $delallowed = $user->rights->facture->supprimer;
     print $formfile->showdocuments('facture', $filename, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang);
     $somethingshown = $formfile->numoffiles;
     // Linked object block
     $somethingshown = $form->showLinkedObjectBlock($object);
     // Show links to link elements
     $linktoelem = $form->showLinkToObjectBlock($object, array('order'));
     if ($linktoelem) {
         print '<br>' . $linktoelem;
     }
     // Link for paypal payment
     if (!empty($conf->paypal->enabled) && $object->statut != 0) {
         include_once DOL_DOCUMENT_ROOT . '/paypal/lib/paypal.lib.php';
         print showPaypalPaymentUrl('invoice', $object->ref);
     }
     print '</div><div class="fichehalfright"><div class="ficheaddleft">';
     // List of actions on element
     include_once DOL_DOCUMENT_ROOT . '/core/class/html.formactions.class.php';
     $formactions = new FormActions($db);
     $somethingshown = $formactions->showactions($object, 'invoice', $socid);
Example #2
0
      * Documents generated
      */
     $objectref = dol_sanitizeFileName($object->ref);
     $filedir = $conf->expedition->dir_output . "/receipt/" . $objectref;
     $urlsource = $_SERVER["PHP_SELF"] . "?id=" . $object->id;
     $genallowed = $user->rights->expedition->livraison->creer;
     $delallowed = $user->rights->expedition->livraison->supprimer;
     $somethingshown = $formfile->show_documents('livraison', $objectref, $filedir, $urlsource, $genallowed, $delallowed, $object->modelpdf, 1, 0, 0, 28, 0, '', '', '', $soc->default_lang);
     /*
      * Linked object block (of linked shipment)
      */
     if ($object->origin == 'expedition') {
         $shipment = new Expedition($db);
         $shipment->fetch($object->origin_id);
         // Linked object block
         $somethingshown = $form->showLinkedObjectBlock($shipment);
         // Show links to link elements
         //$linktoelem = $form->showLinkToObjectBlock($shipment);
         //if ($linktoelem) print '<br>'.$linktoelem;
     }
     print '</td><td valign="top" width="50%">';
     // Rien a droite
     print '</td></tr></table>';
     if ($expedition->origin_id) {
         print '<br>';
         //show_list_sending_receive($expedition->origin,$expedition->origin_id," AND e.rowid <> ".$expedition->id);
         show_list_sending_receive($expedition->origin, $expedition->origin_id);
     }
 } else {
     /* Expedition non trouvee */
     print "Expedition inexistante ou acces refuse";