?> > <td class="paymentContent" align="left"><?php echo $so->payment[$a]['number']; ?> </td> <td class="paymentContent" align="left"><?php echo $so->payment[$a]['name']; ?> </td> <td class="paymentContent" align="right"><strong><?php echo $currencies->format($so->payment[$a]['amount']); ?> </strong></td> <td class="paymentContent" align="center"><?php echo $so->full_type($so->payment[$a]['type']); ?> </td> <td class="paymentContent" align="center"><?php echo zen_datetime_short($so->payment[$a]['posted']); ?> </td> <td class="paymentContent" align="center"><?php echo zen_datetime_short($so->payment[$a]['modified']); ?> </td> <td align="right"><?php $so->button_update('payment', $so->payment[$a]['index']); $so->button_delete('payment', $so->payment[$a]['index']); ?> </td>
if ($so->payment) { for($a = 0; $a < sizeof($so->payment); $a++) { if ($a != 0) { ?> <tr> <td><?php echo zen_draw_separator('pixel_trans.gif', '1', '5'); ?></td> </tr> <?php } $original_grand_total_paid =$original_grand_total_paid + $so->payment[$a]['amount']; ?> <tr class="paymentRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" <?php echo 'onclick="popupWindow(\'' . zen_href_link(FILENAME_SUPER_PAYMENTS, 'oID=' . $so->oID . '&payment_mode=payment&index=' . $so->payment[$a]['index'] . '&action=my_update', 'NONSSL') . '\', \'scrollbars=yes,resizable=yes,width=400,height=300,screenX=150,screenY=100,top=100,left=150\')"'; ?>> <td class="paymentContent" align="left"><?php echo $so->payment[$a]['number']; ?></td> <td class="paymentContent" align="left"><?php echo $so->payment[$a]['name']; ?></td> <td class="paymentContent" align="right"><strong><?php echo $currencies->format($so->payment[$a]['amount']); ?></strong></td> <td class="paymentContent" align="center"><?php echo $so->full_type($so->payment[$a]['type']); ?></td> <td class="paymentContent" align="left"><?php echo zen_datetime_short($so->payment[$a]['posted']); ?></td> <td class="paymentContent" align="left"><?php echo zen_datetime_short($so->payment[$a]['modified']); ?></td> <td class="paymentContent" align="right"><?php $so->button_update('payment', $so->payment[$a]['index']); $so->button_delete('payment', $so->payment[$a]['index']);?></td> </tr> <?php if ($so->refund) { for($b = 0; $b < sizeof($so->refund); $b++) { if ($so->refund[$b]['payment'] == $so->payment[$a]['index']) { ?> <tr class="refundRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)" <?php echo 'onclick="popupWindow(\'' . zen_href_link(FILENAME_SUPER_PAYMENTS, 'oID=' . $so->oID . '&payment_mode=refund&index=' . $so->refund[$b]['index'] . '&action=my_update', 'NONSSL') . '\', \'scrollbars=yes,resizable=yes,width=400,height=300,screenX=150,screenY=100,top=100,left=150\')"'; ?>> <td class="refundContent" align="left"><?php echo $so->refund[$b]['number']; ?></td> <td class="refundContent" align="left"><?php echo $so->refund[$b]['name']; ?></td> <td class="refundContent" align="right"><strong><?php echo '-' . $currencies->format($so->refund[$b]['amount']); ?></strong></td> <td class="refundContent" align="center"><?php echo $so->full_type($so->refund[$b]['type']); ?></td>
} // ctp: end dummy this up to create so classes for all orders in range. This will ensure all paypal if ($target == 'payments' || $target == 'both') { $payment_query = "SELECT * FROM " . TABLE_SO_PAYMENTS . " p\n LEFT JOIN " . TABLE_ORDERS . " o\n ON p.orders_id = o.orders_id\n WHERE date_posted BETWEEN '" . $sd . "' AND DATE_ADD('" . $ed . "', INTERVAL 1 DAY)\n ORDER BY payment_type asc"; $payment = $db->Execute($payment_query); if (zen_not_null($payment->fields['orders_id'])) { $so = new super_order($payment->fields['orders_id']); // instantiated once simply for the full_type() function $current_type = strtoupper($payment->fields['payment_type']); $num_of_types++; $sub_total = 0; $sub_count = 0; ?> <tr> <td colspan="7" class="dataTableContent" align="center"><strong><?php echo zen_draw_separator() . $so->full_type($current_type) . zen_draw_separator(); ?> </strong></td> </tr> <?php //_TODO make this into a do/while loop so that the final sub_total values can be displayed while (!$payment->EOF) { if ($current_type != strtoupper($payment->fields['payment_type'])) { // print subtotal line & count for type ?> <tr class="dataTableRowUnique" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)"> <td class="dataTableContent" colspan="3" align="left"><strong><?php echo sprintf(TABLE_SUB_COUNT, $so->full_type($current_type)) . $sub_count; ?> </strong></td> <td class="dataTableContent" colspan="4" align="right"><strong><?php
<td class="main" width="50%" align="right"><?php echo TEXT_PAYMENT_AMOUNT; ?> </td> <td class="main" width="50%" align="left"><strong><?php echo $payment_info->fields['payment_amount']; ?> </strong></td> </tr> <tr> <td class="main" width="50%" align="right"><?php echo TEXT_PAYMENT_TYPE; ?> </td> <td class="main" width="50%" align="left"><strong><?php echo $so->full_type($payment_info->fields['payment_type']); ?> </strong></td> </tr> <tr> <td class="main" width="50%" align="right"><?php echo TEXT_ATTACHED_PO; ?> </td> <td class="main" width="50%" align="left"><strong><?php echo $payment_info->fields['purchase_order_id'] == 0 ? TEXT_NONE : $payment_info->fields['po_number']; ?> </strong></td> </tr> <?php break;