예제 #1
0
                 $oi_content .= '<h3 class="notice">Download Original Invoice: <a href="print/print-file.php?type=pclnmde&amp;fn=' . $pcl_filename . '" target="_blank" title="Click to download PCL file">' . $pcl_filename . '</a></h3>';
             } else {
                 $oi_content .= '<h3 class="red">Invoice not yet received</h3>';
             }
         }
     } else {
         $oi_content .= '<h3 class="red">Order from before we started using PCL for NM.DE</h3>';
     }
 } elseif ($order['jng_sp_id'] == '2') {
     $invoice = new payone_invoice();
     $invoice->retrieveDetail('S', $order_id);
     if (count($invoice->detail) == 0) {
         $oi_content = '<h2>Payone Invoice<h2>';
         $oi_content .= '<h3 class="red">No Payone Invoice created for this order yet</h3>';
     } else {
         $invoice->getReceipts();
         $invoice->getReminders();
         $amount_refund = $invoice->detail['invoice_amount_overpayment'] + $invoice->detail['invoice_amount_overpayment_canceled'];
         $amount_fines = $invoice->detail['invoice_amount_fines'] - $invoice->detail['invoice_amount_fines_canceled'];
         if ($worst_status <= 8) {
             $content .= '<p style="color:gray;">Download Invoice button will be available after products are sent to customer</p>';
         } elseif (statusIsCancelled($worst_status)) {
             $content .= '<p style="color:gray;">No Invoice for canceled order</p>';
         } else {
             $content .= '<span><a href="print/delivery-document.php?id=' . $order_id . '" target="_blank"></a><input type="button" id="dlinvoice" value="Download Invoice" title="Click here to Download Invoice"/></span><br /><br />';
         }
         $oi_content = '<h2>Payone Invoice ' . $invoice->detail['invoice_no'] . '<h2>';
         $oi_content .= '<div style="float:left;">';
         $oi_content .= '<div style="margin-bottom:20px;"><table class="form" border="0" cellpadding="0" cellspacing="0">';
         $oi_content .= '<tr><td class="label">Invoice Id</td><td>' . $invoice->detail['invoice_id'] . '</td></tr>';
         $oi_content .= '<tr><td>Payone TXID</td><td>' . $invoice->detail['payone_txid'] . '</td></tr>';