From 1f05f68a9db8b80b9877e23637a4e28eacbd54d8 Mon Sep 17 00:00:00 2001 From: "venbatechnologies@gmail.com" Date: Tue, 22 Aug 2017 18:45:49 +0530 Subject: [PATCH] pdf fixes -header logo, status(draft),alignment issues --- application/logs/log-2017-08-21.php | 0 application/logs/log-2017-08-22.php | 44 +++++++++++++++++++ .../third_party/dompdf/lib/fonts/log.htm | 2 +- application/views/capitalpopdf.php | 12 ++--- application/views/importpopdf.php | 12 ++--- application/views/revenuepopdf.php | 40 +++++++---------- application/views/servicepopdf.php | 10 ++--- 7 files changed, 79 insertions(+), 41 deletions(-) mode change 100644 => 100755 application/logs/log-2017-08-21.php mode change 100644 => 100755 application/logs/log-2017-08-22.php diff --git a/application/logs/log-2017-08-21.php b/application/logs/log-2017-08-21.php old mode 100644 new mode 100755 diff --git a/application/logs/log-2017-08-22.php b/application/logs/log-2017-08-22.php old mode 100644 new mode 100755 index 54cf460a..434251a8 --- a/application/logs/log-2017-08-22.php +++ b/application/logs/log-2017-08-22.php @@ -107,3 +107,47 @@ ERROR - 2017-08-22 08:28:08 --> Severity: Warning --> explode() expects paramet ERROR - 2017-08-22 08:28:22 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/ssss/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 ERROR - 2017-08-22 08:29:20 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/ssss/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 ERROR - 2017-08-22 08:29:40 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/ssss/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 14:51:22 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/22augcheckin/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38 +ERROR - 2017-08-22 14:53:57 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 14:55:28 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 14:57:02 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 14:58:29 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 14:59:33 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 14:59:48 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Undefined variable: tax /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:03:44 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:03:44 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:05:40 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/22augcheckin/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: tax /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: tax /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:05:53 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:06:25 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 263 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Undefined variable: tax /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Undefined variable: l /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:09:36 --> Severity: Notice --> Trying to get property of non-object /opt/lampp/htdocs/22augcheckin/siddharth_application/application/views/revenuepopdf.php 265 +ERROR - 2017-08-22 15:09:36 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:09:39 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:09:43 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:09:53 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/siddharth_application/application/third_party/dompdf/include/style.cls.php 948 +ERROR - 2017-08-22 15:10:01 --> Severity: Warning --> explode() expects parameter 2 to be string, array given /opt/lampp/htdocs/22augcheckin/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 6929ae34..6113ac35 100755 --- a/application/third_party/dompdf/lib/fonts/log.htm +++ b/application/third_party/dompdf/lib/fonts/log.htm @@ -1,4 +1,4 @@ -6,144 KB 464.5061 ms
+6,144 KB 141.9919 ms

A PHP Error was encountered

diff --git a/application/views/capitalpopdf.php b/application/views/capitalpopdf.php index 6824afe3..22a4cceb 100755 --- a/application/views/capitalpopdf.php +++ b/application/views/capitalpopdf.php @@ -105,7 +105,7 @@
- + - +

- +

PO No:

Date:

@@ -136,8 +136,8 @@

Supplier :

-
-DISPATCH INSTRUCTION / SCHEDULE BY:

+
+DISPATCH INSTRUCTION / SCHEDULE BY:

diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php index c997a2b3..ae002330 100755 --- a/application/views/importpopdf.php +++ b/application/views/importpopdf.php @@ -116,7 +116,7 @@
- + - +

- +

PO No:

Date:

@@ -147,8 +147,8 @@

Supplier :

-
-DELIVERY DATE / SCHEDULE BY:

+
+DELIVERY DATE / SCHEDULE BY:

diff --git a/application/views/revenuepopdf.php b/application/views/revenuepopdf.php index a1e8c315..a3e8b80a 100755 --- a/application/views/revenuepopdf.php +++ b/application/views/revenuepopdf.php @@ -108,7 +108,7 @@
- + - +

- +

PO NO:

Date:

@@ -139,8 +139,8 @@

Supplier :

-
-DELIVERY DATE / SCHEDULE BY:

+
+DELIVERY DATE / SCHEDULE BY:

@@ -253,6 +253,16 @@ Quantity ; ?> Rate ; ?> + +DiscountType == 'PERCENTAGE'){$type="%";}else if($record->DiscountType == 'LUMP SUM'){$type="LS";}else if($record->DiscountType == 'NIL'){$type='';} echo $record->DiscountValue . $type;?> + +IGST."%";?> +SGST."%";?> +CGST."%";?> +PackagingType == 'PERCENTAGE'){$type="%";}else if($record->PackagingType == 'LUMP SUM'){$type="LS";}else if($record->PackagingType == 'NIL'){$type='';} echo $record->PackagingValue . $type;?> + +FreightType == 'PER TRIP'){$type="TRIP"; echo $record->FreightValue ."*" . $record->NoOfTrip . $type;}else{ if($record->FreightType == 'LUMP SUM'){$type="LS";}else if($record->FreightType == 'NIL'){$type='';}else if($record->FreightType == 'PER UOM'){$type='UOM';}else if($record->FreightType == 'PERCENTAGE'){$type='%';} echo $record->PackagingValue . $type;}?> + BasicValue; @@ -270,23 +280,7 @@ $OrderValue = (( $SubTotalAmount + $AfterCGST +$AfterIGST+$AfterSGST +$Insurance +$AfterFreightValue+$AfterPackaging) - $AfterDiscount) ; }?> - - -DiscountType == 'PERCENTAGE'){$type="%";}else if($l->DiscountType == 'LUMP SUM'){$type="LS";}else if($l->DiscountType == 'NIL'){$type='';} echo $l->DiscountValue . $type;?> - -IGST."%";?> -SGST."%";?> -CGST."%";?> -PackagingType == 'PERCENTAGE'){$type="%";}else if($l->PackagingType == 'LUMP SUM'){$type="LS";}else if($l->PackagingType == 'NIL'){$type='';} echo $l->PackagingValue . $type;?> - -FreightType == 'PER TRIP'){$type="TRIP"; echo $l->FreightValue ."*" . $l->NoOfTrip . $type;}else{ if($l->FreightType == 'LUMP SUM'){$type="LS";}else if($l->FreightType == 'NIL'){$type='';}else if($l->FreightType == 'PER UOM'){$type='UOM';}else if($l->FreightType == 'PERCENTAGE'){$type='%';} echo $l->PackagingValue . $type;}?> - - + diff --git a/application/views/servicepopdf.php b/application/views/servicepopdf.php index 7534292c..0981f756 100755 --- a/application/views/servicepopdf.php +++ b/application/views/servicepopdf.php @@ -117,13 +117,13 @@ - + - - @@ -133,8 +133,8 @@

Supplier :

- - + +
+

+

PO No:

Date:


DELIVERY DATE / SCHEDULE BY:


DELIVERY DATE / SCHEDULE BY: