Beispiel #1
0
        $shipping->trueWeight = trim($_REQUEST["trueWeight"]);
    }
    if ($action == 'settrueWidth') {
        $shipping->trueWidth = trim($_REQUEST["trueWidth"]);
    }
    if ($action == 'settrueHeight') {
        $shipping->trueHeight = trim($_REQUEST["trueHeight"]);
    }
    if ($action == 'settrueDepth') {
        $shipping->trueDepth = trim($_REQUEST["trueDepth"]);
    }
    if ($action == 'setexpedition_method_id') {
        $shipping->expedition_method_id = trim($_REQUEST["expedition_method_id"]);
    }
    if (!$error) {
        if ($shipping->update($user) >= 0) {
            Header("Location: fiche.php?id=" . $shipping->id);
            exit;
        }
        $mesg = $shipping->error;
    }
    $mesg = '<div class="error">' . $mesg . '</div>';
    $action = "";
}
/*
 * Build doc
 */
if ($action == 'builddoc') {
    require_once DOL_DOCUMENT_ROOT . "/includes/modules/expedition/pdf/ModelePdfExpedition.class.php";
    // Sauvegarde le dernier modele choisi pour generer un document
    $shipment = new Expedition($db);