OSB enhancements to date
This commit is contained in:
7
modules/export/views/export/payment/body.php
Normal file
7
modules/export/views/export/payment/body.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<tr class="<?php echo $i ? 'odd' : 'even'; ?>">
|
||||
<td><?php echo $payment->display('date_payment'); ?></td>
|
||||
<td><?php printf('%s (%s)',$payment->checkout->name,$payment->checkout->id); ?></td>
|
||||
<td><?php echo $payment->display('total_amt'); ?></td>
|
||||
<td><?php echo $payment->account->name(); ?></td>
|
||||
<td><?php echo Form::checkbox('payment_id[]',$payment->id); ?></td>
|
||||
</tr>
|
12
modules/export/views/export/payment/header.php
Normal file
12
modules/export/views/export/payment/header.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<tr>
|
||||
<td colspan="3"><?php echo Form::select('plugin',$plugins); ?></td>
|
||||
<td colspan="2" style="text-align: right;"><?php echo Form::submit('submit','export'); ?></td>
|
||||
</tr>
|
||||
<!-- // @todo To translate -->
|
||||
<tr>
|
||||
<td class="heading">Date</td>
|
||||
<td class="heading">Method</td>
|
||||
<td class="heading">Pay/Amount</td>
|
||||
<td class="heading">Customer</td>
|
||||
<td class="heading">Export</td>
|
||||
</tr>
|
28
modules/export/views/invoices.php
Normal file
28
modules/export/views/invoices.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
echo '<b>'.__FILE__.'</b><br/>';
|
||||
echo Form::open();
|
||||
echo Form::select('plugin',$plugins);
|
||||
|
||||
echo '<table>';
|
||||
echo '<tr>';
|
||||
printf('<td class="heading">%s</td>','Date');
|
||||
printf('<td class="heading">%s</td>','Invoice');
|
||||
printf('<td class="heading">%s</td>','Customer');
|
||||
printf('<td class="heading">%s</td>','Method');
|
||||
printf('<td class="heading">%s</td>','Export');
|
||||
echo '</tr>';
|
||||
|
||||
$c = 0;
|
||||
foreach ($invoices as $invoice) {
|
||||
printf('<tr class="%s">',(++$c%2==0?'even':'odd'));
|
||||
printf('<td>%s</td><td>%s</td><td>%s %s (%s)</td><td>%s [%s/%s]</td><td><input type="checkbox" name="invoiceid[]" value="%s" /></td>',
|
||||
$invoice->date_orig,$invoice->id,
|
||||
$invoice->account->first_name,$invoice->account->last_name,$invoice->account->company,'paymentmethod',$invoice->total_amt,$invoice->due_date,
|
||||
$invoice->id);
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
echo '</table>';
|
||||
echo Form::close();
|
||||
echo '<PRE>';print_r($invoice);
|
||||
?>
|
Reference in New Issue
Block a user