From 91abc8081dbf9d30dd9e631f6e886eec211ff606 Mon Sep 17 00:00:00 2001 From: Karl Cordes Date: Thu, 7 Apr 2011 12:27:18 +1000 Subject: [PATCH] Added print view to invoices --- views/invoices/print_view.ctp | 77 +++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 views/invoices/print_view.ctp diff --git a/views/invoices/print_view.ctp b/views/invoices/print_view.ctp new file mode 100644 index 00000000..0ecf1c6d --- /dev/null +++ b/views/invoices/print_view.ctp @@ -0,0 +1,77 @@ +
+

+ + + + + + + + + + + + + + + + + > + + + + + + + + + "; + } + else { + echo "PAID"; + echo ""; + echo ""; + } + + + + ?> + + + + + + + +
Issue DateDue DateInvoice NumberJob NumberEnquiry NumberCustomerPaidPayment ReceivedUser
+ toUnix($invoice['Invoice']['issue_date'])); ?> + + toUnix($invoice['Invoice']['due_date'])); ?> + + + + link($invoice['Job']['title'], array('controller'=>'jobs', 'action'=>'view', $invoice['Invoice']['job_id'])); ?> + + link($invoice['Enquiry']['title'], array('controller' => 'enquiries', 'action' => 'view', $invoice['Enquiry']['id'])); ?> + + link($invoice['Customer']['name'], array('controller'=>'customers', 'action'=>'view', $invoice['Customer']['id'])); ?> + + "; + echo ""; + echo "N/A"; + echo ""; + echo date('j M Y',$time->toUnix($invoice['Invoice']['payment_received_date'])); + echo " + link($invoice['User']['username'], array('controller' => 'users', 'action' => 'view', $invoice['User']['id'])); ?> +
+
\ No newline at end of file