OSC-3: bon de livraison modifiable $action = tep_db_prepare_input($HTTP_GET_VARS['action']); $customer_print = $_POST['customer_print']; if ( ! isset($action) || $action == "" ) { $action="edit"; } $display_mode = tep_db_prepare_input($HTTP_POST_VARS['display_mode']); if ( ! isset($display_mode) || $display_mode == "" ) { $display_mode="O"; } // -> OSC-89: ajout de l'intitulé du type de bon de livraison dans le titre $packinglist_title = tep_db_prepare_input($HTTP_POST_VARS['packinglist_title']); if ( ! isset($packinglist_title) ) { $packinglist_title=INVOICE_TEXT; } // <- OSC-89: ajout de l'intitulé du type de bon de livraison dans le titre // <- OSC-3 ?> > <?php echo TITLE; ?> OSC-3: Bon de livraison modifiable ?> "; echo tep_draw_form('packingslip', FILENAME_ORDERS_PACKINGSLIP, "oID=$oID" . '&action=preview', 'post', 'target="_blank"'); // -> OSC-89: ajout de l'intitulé du type de bon de livraison dans le titre if ($display_mode=='O') { $packinglist_title = QT_ORDERED_TITLE; } else if ($display_mode=='S') { $packinglist_title = QT_SENT_TITLE; } else if ($display_mode=='R') { $packinglist_title = QT_REMAIN_TITLE; } else { $packinglist_title = QT_RAZ_TITLE; } echo ' "; // <- OSC-89: ajout de l'intitulé du type de bon de livraison dans le titre } ?>
0000020: design avec nouveau logo v2 ?> OSC-3: Bon de livraison modifiable ?>
Tel: 03 88 96 61 24

OSC-3: Bon de livraison modifiable ?> OSC-89: ajout de l'intitulé du type de bon de livraison dans le titre ?>
billing['format_id'], $order->billing, 1, ' ', '
'); ?>
customer['telephone']; ?>
customer['email_address'] . '">' . $order->customer['email_address'] . ''; ?>
delivery['format_id'], $order->delivery, 1, '', '
'); ?>
customer['telephone']; ?>
info['payment_method']; ?>
info['orders_comments']; ?>
"; echo tep_draw_form('display_form', FILENAME_ORDERS_PACKINGSLIP, "oID=$oID"); $checked = ($display_mode=='O')?"checked":""; echo '  ' . htmlentities(QT_ORDERED_DISPLAY_MODE_TEXT, ENT_QUOTES | ENT_IGNORE, "UTF-8") . '' . '  '; $checked = ($display_mode=='S')?"checked":""; echo '  ' . htmlentities(QT_SENT_DISPLAY_MODE_TEXT, ENT_QUOTES | ENT_IGNORE, "UTF-8") . '' . '  '; $checked = ($display_mode=='R')?"checked":""; echo '  ' . htmlentities(QT_REMAIN_DISPLAY_MODE_TEXT, ENT_QUOTES | ENT_IGNORE, "UTF-8") . '' . '  '; $checked = ($display_mode=='0')?"checked":""; echo '  ' . htmlentities(QT_RAZ_DISPLAY_MODE_TEXT, ENT_QUOTES | ENT_IGNORE, "UTF-8") . '' . '  '; echo ''; echo "
' . "  TITRE DU DOCUMENT : " . tep_draw_input_field('packinglist_title', $packinglist_title, 'size="50"') . "
Zone'; } ?> set_location_and_sort_products_by_location(); for ($i=0, $n=sizeof($order->products); $i<$n; $i++) { $product_displayed = true; // par défaut on affiche ce produit if ( $action == "preview" ) { if($HTTP_POST_VARS['product_quantity']) { $value = $HTTP_POST_VARS['product_quantity'][$i]; } if ( ! isset($value) || $value == "" ) { $value = "bad=" . $order->products[$i]['qty'] ; } if ( $value == 0 ) { $product_displayed = false; } // on n'affiche pas les qtés à 0 if ( $product_displayed ) { if ($customer_print !='customer_print') { echo ' ' . "\n" .''; } echo'' . "\n" .''. ' " . ' ' . "\n" . ' ' . "\n" . ' ' . "\n"; } } ?>
' . $order->products[$i]['location'] . '' . $value . ' x ' . $order->products[$i]['name']; } } else { $qty = $order->products[$i]['qty']; $qty_sent = $order->products[$i]['qty_sent']; if ( $qty_sent == "" ) { $qty_sent = $qty; } // si qty_sent == NULL, on considere que la quantité_envoyée == quantité_commandée if ( $display_mode == "O" ) { $value = $qty; } else if ( $display_mode == "S" ) { $value = $qty_sent; } else if ( $display_mode == "R" ) { $value = (int)$qty - (int)$qty_sent; } else { $value = "0"; } echo '
' . $order->products[$i]['location'] . '' . "' . $order->products[$i]['name']; } if ( $product_displayed ) { if (isset($order->products[$i]['attributes']) && (sizeof($order->products[$i]['attributes']) > 0)) { for ($j=0, $k=sizeof($order->products[$i]['attributes']); $j<$k; $j++) { echo '
  - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value']; echo ''; } } echo '
' . $order->products[$i]['model'] . '
OSC-3: Bon de livraison modifiable ?>
" . tep_image_submit('button_preview.gif') ."
"; */ } ?> Impression client (sans les emplacements) '; echo "

"; } ?>
OSC-14: gestion des emplacements : tri par emplacement require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>