From d72d407ed3c8d52820b6cf5972c85ecf9f34cd67 Mon Sep 17 00:00:00 2001 From: saravanakumar_kandasami Date: Tue, 23 May 2017 18:39:40 +0530 Subject: [PATCH] po pdf --- application/controllers/purchaseorder.php | 136 ++++++- application/logs/log-2017-05-23.php | 67 ++++ .../third_party/dompdf/lib/fonts/log.htm | 11 +- application/views/capitalpopdf.php | 71 ++++ application/views/importpo.php | 336 ++++++++++-------- application/views/importpopdf.php | 72 ++++ application/views/includes/pdffooter.php | 4 +- application/views/includes/pdfheader.php | 9 +- application/views/revenuepopdf.php | 76 ++++ application/views/servicePurchaseorder.php | 5 +- application/views/servicepopdf.php | 73 ++++ 11 files changed, 710 insertions(+), 150 deletions(-) create mode 100644 application/logs/log-2017-05-23.php create mode 100644 application/views/capitalpopdf.php create mode 100644 application/views/importpopdf.php create mode 100644 application/views/revenuepopdf.php create mode 100644 application/views/servicepopdf.php diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index ac6c08f1..aab74518 100644 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -107,10 +107,14 @@ class purchaseorder extends BaseController { $ViewName = 'Purchaseorder'; } - else //if($ReqType == SERVICE) + else if($ReqType == SERVICE) { $ViewName = 'servicePurchaseorder'; - } + } + else //if($ReqType == IMPORT) + { + $ViewName = 'importpo'; + } $this->loadViews($ViewName, $this->global,$data, NULL); } @@ -611,6 +615,134 @@ class purchaseorder extends BaseController } + public function revenuepoprint() { + // Load all views as normal + + + //$PONO = $_GET['PO']; + + //$data['PODetail'] = $this->purchaseorder_model->getPurchaseOrder($PONO); + //$data['POLineItem'] = $this->purchaseorder_model->getPOLineItem($PONO); + //$this->global['pageTitle'] = 'Purchase Order Report'; + + // Add header to pdf + $this->load->view('includes/pdfheader'); + + // Load the pdf page with multiviews + $this->load->View("revenuepopdf", NULL); + + // Add header to pdf + $this->load->view('includes/pdffooter'); + + // Get output html + $php = $this->output->get_output(); + + // Load library + $this->load->library('dompdf_gen'); + + // Convert to PDF + $this->dompdf->load_html($php); + $this->dompdf->render(); + $data['Attachment'] = FALSE; + $this->dompdf->stream("RevenuePOReport.pdf",$data,$php); + +} + public function servicepoprint() { + // Load all views as normal + + + //$PONO = $_GET['PO']; + + //$data['PODetail'] = $this->purchaseorder_model->getPurchaseOrder($PONO); + //$data['POLineItem'] = $this->purchaseorder_model->getPOLineItem($PONO); + //$this->global['pageTitle'] = 'Purchase Order Report'; + + // Add header to pdf + $this->load->view('includes/pdfheader'); + + // Load the pdf page with multiviews + $this->load->View("servicepopdf", NULL); + + // Add header to pdf + $this->load->view('includes/pdffooter'); + + // Get output html + $php = $this->output->get_output(); + + // Load library + $this->load->library('dompdf_gen'); + + // Convert to PDF + $this->dompdf->load_html($php); + $this->dompdf->render(); + $data['Attachment'] = FALSE; + $this->dompdf->stream("ServicePOReport.pdf",$data,$php); + +} + public function importpoprint() { + // Load all views as normal + + + //$PONO = $_GET['PO']; + + //$data['PODetail'] = $this->purchaseorder_model->getPurchaseOrder($PONO); + //$data['POLineItem'] = $this->purchaseorder_model->getPOLineItem($PONO); + //$this->global['pageTitle'] = 'Purchase Order Report'; + + // Add header to pdf + $this->load->view('includes/pdfheader'); + + // Load the pdf page with multiviews + $this->load->View("importpopdf", NULL); + + // Add header to pdf + $this->load->view('includes/pdffooter'); + + // Get output html + $php = $this->output->get_output(); + + // Load library + $this->load->library('dompdf_gen'); + + // Convert to PDF + $this->dompdf->load_html($php); + $this->dompdf->render(); + $data['Attachment'] = FALSE; + $this->dompdf->stream("ImportPOReport.pdf",$data,$php); + +} + public function capitalpoprint() { + // Load all views as normal + + + //$PONO = $_GET['PO']; + + //$data['PODetail'] = $this->purchaseorder_model->getPurchaseOrder($PONO); + //$data['POLineItem'] = $this->purchaseorder_model->getPOLineItem($PONO); + //$this->global['pageTitle'] = 'Purchase Order Report'; + + // Add header to pdf + $this->load->view('includes/pdfheader'); + + // Load the pdf page with multiviews + $this->load->View("capitalpopdf", NULL); + + // Add header to pdf + $this->load->view('includes/pdffooter'); + + // Get output html + $php = $this->output->get_output(); + + // Load library + $this->load->library('dompdf_gen'); + + // Convert to PDF + $this->dompdf->load_html($php); + $this->dompdf->render(); + $data['Attachment'] = FALSE; + $this->dompdf->stream("CapitalPOReport.pdf",$data,$php); + +} function pageNotFound() { $this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found'; diff --git a/application/logs/log-2017-05-23.php b/application/logs/log-2017-05-23.php new file mode 100644 index 00000000..9ed78018 --- /dev/null +++ b/application/logs/log-2017-05-23.php @@ -0,0 +1,67 @@ + + +ERROR - 2017-05-23 08:56:51 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:15:03 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:18:52 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:25:20 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:30:45 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:33:14 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:35:56 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:44:38 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:51:39 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:51:39 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:51:39 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:54:34 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:54:51 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:55:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 09:57:56 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 10:00:07 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 10:00:48 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 10:01:25 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 10:57:35 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 10:58:22 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 10:59:23 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:00:30 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:01:04 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:02:08 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:17:38 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:17:48 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:20:50 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:21:19 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:23:58 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:26:14 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:28:52 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:29:34 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:29:41 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:31:02 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:31:28 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:34:24 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:35:26 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:35:49 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:36:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:37:00 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:37:49 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:38:19 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:39:08 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:39:40 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:40:12 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:40:38 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:40:54 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:45:28 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:45:41 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:50:35 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:57:40 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 11:58:42 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:00:42 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:01:11 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:02:13 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:04:07 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:05:03 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:05:34 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:08:37 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:09:38 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:09:50 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:11:15 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:13:47 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:15:12 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 +ERROR - 2017-05-23 12:15:55 --> Severity: Warning --> explode() expects parameter 2 to be string, array given C:\xampp\htdocs\siddharth_application\application\third_party\dompdf\include\style.cls.php 948 diff --git a/application/third_party/dompdf/lib/fonts/log.htm b/application/third_party/dompdf/lib/fonts/log.htm index fe81ecc6..5d7d56be 100644 --- a/application/third_party/dompdf/lib/fonts/log.htm +++ b/application/third_party/dompdf/lib/fonts/log.htm @@ -1 +1,10 @@ -4,096 KB 677.2780 ms
\ No newline at end of file +2,048 KB 474.9031 ms
+ +

A PHP Error was encountered

+ +

Severity: Warning

+

Message: explode() expects parameter 2 to be string, array given

+

Filename: include/style.cls.php

+

Line Number: 948

+ +
\ No newline at end of file diff --git a/application/views/capitalpopdf.php b/application/views/capitalpopdf.php new file mode 100644 index 00000000..7dde224f --- /dev/null +++ b/application/views/capitalpopdf.php @@ -0,0 +1,71 @@ + +
+

CAPITAL PURCHASE ORDER

+#PO0001
+
+ +

+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+ +
+

Vendor Address
DR Enterprices
Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

Delivery To
Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

+

Purchase Order Date :2/5/2017 , Delivery Date :10/5/2017

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Item and DescriptionQtyRate per unitExcise DutyVatGSTCSTOther TaxesAmount (Rs)
1Resin - (A grade)100120500100013007002001,23,800
2Dry Sand - (A grade)10001200500010000130007000200012,38,000
+
+ +

Sub Total (Rs):13,61,800

+
+ + +
+

Excise Duty (Rs):5500

+

Vat (Rs):11000

+

GST (Rs):14300

+

CST (Rs) :7700

+

Other Taxes (Rs) :2200

+

Total Amount (Rs):13,61,800

+
+
+ +
\ No newline at end of file diff --git a/application/views/importpo.php b/application/views/importpo.php index 04e3f8ab..5a9e7cb8 100644 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -1,6 +1,8 @@ + .modal{ + padding-right: 25% ! important; + } +
@@ -11,30 +13,29 @@
-
- -
- 'Requistion No'); - //print_r( $options); +
+ +
- if(!empty($POType)) + 'Selected Requisition Numbers'); + if(!empty($ReqList)) { - foreach ($SupplierName as $SID): + foreach ($ReqList as $SID): - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - + // print_r($SID->ReqNo); + $options[$SID->ReqNo] = $SID->ReqNo ."-". $SID->ReqBy; + $ReqType = $SID->ReqType; endforeach; - } - - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); + } + echo form_multiselect('RequistionNo', $options,set_value('RequistionNo'),'id="RequistionNo"' , 'required="true"'); - ?> -
-
-
- + ?> +
+
+
+
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); @@ -42,7 +43,32 @@ ?>
-
+
+
+
+
+ +
+ 'Select Supplier'); + //print_r( $options); + + if(!empty($Suplist)) + { + foreach ($Suplist as $SID): + + + $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; + + endforeach; + } + + echo form_dropdown('drpSupplier', $options,set_value('drpSupplier'),'id="drpSupplier"' ,'required="true"' ,'class="form-control select2'); + + ?> +
+
+
- -
- -
+
+ + 'Select Currency Type'); //print_r( $options); @@ -72,11 +97,9 @@ echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); ?> -
+
-
-
-
+
-
- -
- 'Supplier'); - //print_r( $options); - - if(!empty($POType)) - { - foreach ($SupplierName as $SID): - - - $options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName; - - endforeach; - } - - echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"'); - - ?> -
-
-
+ +
'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> + $data = array('name' => 'SupAddress','value' => set_value('SupAddress'),'id'=>'SupAddress', 'class' => 'form-control' ,'readonly' => 'true','required' => 'true' ,'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?>
-
- -
- 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity', 'class' => 'form-control' ,'required' => 'true'); - echo form_input($data); - ?> -
+
+ +
+ 'DeliveryAddr','value' => set_value('DeliveryAddr'),'id'=>'DeliveryAddr', 'class' => 'form-control' ,'required' => 'true' ,'rows' => '3', 'cols' => '40'); + echo Form_textarea($data); + ?> +
+
+
+ +
+ 'Deliverydt','value' => set_value('Deliverydt'),'id'=>'Deliverydt', 'class' => 'form-control datePicker' ,'required' => 'true'); + echo form_input($data); + ?> +
+
+ + + + +
+ + + +
-
+
-
+
- + -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
+
 R NoItem NameQuantityUOMRateTax %Total
 1001Waste SandTon100HighNo Change
 2002ResinLitre50HighChange
 3003ResinLitre100HighChange
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
SNoRequisition NoItem NameQuantityUOMRateBasic AmountTax AmountTotal Order AmountAction
1Req0004Sand100kgs10010000100011000Edit
2Req0008Sand150kgs10015000100016000Edit
3Req0016Resin100liter1001000050010500Edit
+
@@ -722,4 +761,17 @@
-
\ No newline at end of file +
+ \ No newline at end of file diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php new file mode 100644 index 00000000..ad758327 --- /dev/null +++ b/application/views/importpopdf.php @@ -0,0 +1,72 @@ + +
+

IMPORT PURCHASE ORDER

+#PO0001
+
+ +

+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+ +
+

Vendor Address
DR Enterprices
Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

Delivery To
Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

+

Purchase Order Date :2/5/2017 , Delivery Date :10/5/2017

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Item and DescriptionQtyRate per unitExcise DutyVatGSTCSTOther TaxesAmount (Rs)
1Resin - (A grade)100120500100013007002001,23,800
2Dry Sand - (A grade)10001200500010000130007000200012,38,000
+
+ +

Sub Total (Rs):13,61,800

+
+ + +
+

Excise Duty (Rs):5500

+

Vat (Rs):11000

+

GST (Rs):14300

+

CST (Rs) :7700

+

Other Taxes (Rs) :2200

+

Total Amount (Rs):13,61,800

+
+
+ + +
\ No newline at end of file diff --git a/application/views/includes/pdffooter.php b/application/views/includes/pdffooter.php index 5d476772..1d058fdb 100644 --- a/application/views/includes/pdffooter.php +++ b/application/views/includes/pdffooter.php @@ -1,5 +1,5 @@ -
Amount chargable (in words)



-
for Siddharth Industries


Authorised Signature
+
Amount chargable (in words)

+
for Siddharth Industries

Authorised Signature
This is Computer Generated Document
\ No newline at end of file diff --git a/application/views/includes/pdfheader.php b/application/views/includes/pdfheader.php index 5a9dcbb9..d8993d13 100644 --- a/application/views/includes/pdfheader.php +++ b/application/views/includes/pdfheader.php @@ -1,4 +1,9 @@
-

SIDDHARTH INDUSTRIES - PURCHASE ORDER

-

+ + + + + + +

SIDDHARTH INDUSTRIES


\ No newline at end of file diff --git a/application/views/revenuepopdf.php b/application/views/revenuepopdf.php new file mode 100644 index 00000000..069998d1 --- /dev/null +++ b/application/views/revenuepopdf.php @@ -0,0 +1,76 @@ + +
+

REVENUE PURCHASE ORDER

+#PO0001
+
+ +

+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+ +
+

Vendor Address
DR Enterprices
Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

Delivery To
Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

+

Purchase Order Date :2/5/2017 , Delivery Date :10/5/2017

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Item and DescriptionQtyRate per unitExcise DutyVatGSTCSTOther TaxesAmount (Rs)
1Resin - (A grade)100120500100013007002001,23,800
2Dry Sand - (A grade)10001200500010000130007000200012,38,000
+
+ +

Sub Total (Rs):13,61,800

+
+ + + +
+

Discount (Rs):5500

+

Vat (Rs):11000

+

Packaging (Rs):14300

+

Execise Duty (Rs) :7700

+

GST (RS) :1233

+

Insurance (Rs) : 2343

+

Freight (Rs) :344

+

Revenue Tax (Rs): 458

+

Other Taxes (Rs) :2200

+
+
+ +

Total Amount (Rs):13,61,800

+
\ No newline at end of file diff --git a/application/views/servicePurchaseorder.php b/application/views/servicePurchaseorder.php index c7ae5bb0..d8591aba 100644 --- a/application/views/servicePurchaseorder.php +++ b/application/views/servicePurchaseorder.php @@ -496,7 +496,10 @@ function clearEditTaxField()

Siddharth Industries - Service Purchase Order

- +
diff --git a/application/views/servicepopdf.php b/application/views/servicepopdf.php new file mode 100644 index 00000000..4d424ee3 --- /dev/null +++ b/application/views/servicepopdf.php @@ -0,0 +1,73 @@ + +
+

SERVICE PURCHASE ORDER

+#PO0001
+
+ +

+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+ +
+

Vendor Address
DR Enterprices
Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

Delivery To
Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.

+

+

Purchase Order Date :2/5/2017 , Delivery Date :10/5/2017

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
#Item and DescriptionQtyRate per unitExcide DutyVatGSTCSTOther TaxesAmount (Rs)
1Resin - (A grade)100120500100013007002001,23,800
2Dry Sand - (A grade)10001200500010000130007000200012,38,000
+
+ +

Sub Total (Rs):13,61,800

+
+ + +
+

Service Tax @14% (RS):190653

+

Edu. cess @2%(Rs) :27236

+

Sec & Higher cess @1% (Rs) :13618

+

Krishi kalyan Tax @5% (Rs) :68090

+

Swachh Barath Tax @5% (Rs) :68090

+

Total Amount (Rs):13,61,800

+
+
+ + + +
\ No newline at end of file