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
Severity: Warning
+Message: explode() expects parameter 2 to be string, array given
+Filename: include/style.cls.php
+Line Number: 948
+ +
+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.
|
+ Vendor Address |
+ Delivery To |
+
+
| # | +Item and Description | +Qty | +Rate per unit | +Excise Duty | +Vat | +GST | +CST | +Other Taxes | +Amount (Rs) | +
|---|---|---|---|---|---|---|---|---|---|
| 1 | +Resin - (A grade) | +100 | +120 | +500 | +1000 | +1300 | +700 | +200 | +1,23,800 | +
| 2 | +Dry Sand - (A grade) | +1000 | +1200 | +5000 | +10000 | +13000 | +7000 | +2000 | +12,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 |
+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.
|
+ Vendor Address |
+ Delivery To |
+
+
| # | +Item and Description | +Qty | +Rate per unit | +Excise Duty | +Vat | +GST | +CST | +Other Taxes | +Amount (Rs) | +
|---|---|---|---|---|---|---|---|---|---|
| 1 | +Resin - (A grade) | +100 | +120 | +500 | +1000 | +1300 | +700 | +200 | +1,23,800 | +
| 2 | +Dry Sand - (A grade) | +1000 | +1200 | +5000 | +10000 | +13000 | +7000 | +2000 | +12,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 |
SIDDHARTH INDUSTRIES | + | + |
+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.
|
+ Vendor Address |
+ Delivery To |
+
+
| # | +Item and Description | +Qty | +Rate per unit | +Excise Duty | +Vat | +GST | +CST | +Other Taxes | +Amount (Rs) | +
|---|---|---|---|---|---|---|---|---|---|
| 1 | +Resin - (A grade) | +100 | +120 | +500 | +1000 | +1300 | +700 | +200 | +1,23,800 | +
| 2 | +Dry Sand - (A grade) | +1000 | +1200 | +5000 | +10000 | +13000 | +7000 | +2000 | +12,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
+
+Siddharth Industries
Survey No: 168/1C3,Pennalur Pet Road,
Goonipalyam village,Uthukottai Taluk,
Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026.
|
+ Vendor Address |
+ Delivery To |
+
+
| # | +Item and Description | +Qty | +Rate per unit | +Excide Duty | +Vat | +GST | +CST | +Other Taxes | +Amount (Rs) | +
|---|---|---|---|---|---|---|---|---|---|
| 1 | +Resin - (A grade) | +100 | +120 | +500 | +1000 | +1300 | +700 | +200 | +1,23,800 | +
| 2 | +Dry Sand - (A grade) | +1000 | +1200 | +5000 | +10000 | +13000 | +7000 | +2000 | +12,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 |