diff --git a/application/logs/log-2017-09-27.php b/application/logs/log-2017-09-27.php
old mode 100644
new mode 100755
diff --git a/application/logs/log-2017-09-29.php b/application/logs/log-2017-09-29.php
new file mode 100644
index 00000000..03753dd5
--- /dev/null
+++ b/application/logs/log-2017-09-29.php
@@ -0,0 +1,80 @@
+
+
+ERROR - 2017-09-29 09:55:37 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/system/database/drivers/mysqli/mysqli_result.php 38
+ERROR - 2017-09-29 09:55:48 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:55:48 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:55:54 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:55:54 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:12 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:12 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:36 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:36 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:37 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:37 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:37 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$DiscountType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 738
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$PackagingType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 739
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Notice --> Undefined property: stdClass::$FreightType /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/views/revenuepopdf.php 782
+ERROR - 2017-09-29 09:56:39 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:56:39 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:15 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:15 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:16 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:16 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:51 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:51 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:55 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:55 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:56 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
+ERROR - 2017-09-29 09:57:56 --> Severity: Warning --> DOMXPath::query(): Invalid expression /opt/lampp/htdocs/29septsundayfinalpdf/siddharth_application/application/third_party/dompdf/include/stylesheet.cls.php 697
diff --git a/application/third_party/dompdf/lib/fonts/Helvetica.afm.php b/application/third_party/dompdf/lib/fonts/Helvetica.afm.php
index f58cc543..a9c925de 100755
--- a/application/third_party/dompdf/lib/fonts/Helvetica.afm.php
+++ b/application/third_party/dompdf/lib/fonts/Helvetica.afm.php
@@ -566,5 +566,5 @@
),
'CIDtoGID_Compressed' => true,
'CIDtoGID' => 'eJwDAAAAAAE=',
- '_version_' => 4,
+ '_version_' => 6,
);
\ No newline at end of file
diff --git a/application/third_party/dompdf/lib/fonts/log.htm b/application/third_party/dompdf/lib/fonts/log.htm
index 0ba4a1fe..7b800ba3 100755
--- a/application/third_party/dompdf/lib/fonts/log.htm
+++ b/application/third_party/dompdf/lib/fonts/log.htm
@@ -1 +1 @@
-4,096 KB 987.1099 ms
\ No newline at end of file
+18,432 KB 563.9040 ms
\ No newline at end of file
diff --git a/application/views/capitalpopdf.php b/application/views/capitalpopdf.php
index a82b1cce..5b52dc0c 100755
--- a/application/views/capitalpopdf.php
+++ b/application/views/capitalpopdf.php
@@ -1,675 +1,691 @@
CompanyName;
- $CompanyAddress = $CO->Address;
- $companyEmail=$CO->EmailAddress;
- $companyGst=$CO->GSTNO;
- $companyPan=$CO->PAN;
- $companyWebsit=$CO->companyWebsite;
- $CompanyStateCode=$CO->StateCode;
- }
- }
- foreach ($GetPoFormat[0] as $For)
- {
- $PONO = $For;
-
- }
-
- if(!empty($POItem))
- {
-
- foreach ($POItem as $PO)
- {
-
- $ReqNo=$PO->ReqNo;
-
- $postatus= $PO->Status;
-
- $SuplierName = $PO->SupplierName;
- $SuplierAddress = $PO->Address;
- $DeliveryAddress = $PO->DeliveryAddress;
- $advance=$PO->AdvanceAmount;
- $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
- $Podt = $dt->format('d-m-Y');
- if($PO->DeliveryOption=='1'){
- $DeliveryDate = '';
- $DeliverySchedule = $PO->DeliverySchedule;
- $dispatch="";
- }
- else if($PO->DeliveryOption=='0'){
- $dispatch="";
- $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
- $DeliveryDate = $dtDe->format('d-m-Y');
- $DeliverySchedule = '';
- }else if($PO->DeliveryOption=='2'){
- $DeliveryDate='';
- $DeliverySchedule = '';
- $dispatch=$PO->Import_DispatchDetails;
- }
- $ServiceDescription =$PO->ServiceDescription;
- $finCap=$PO->Fincap;
- $modShp=$PO->Mode_Of_Shipment;
- $insNo=$PO->InsuranceNumber;
-
- $supRef=$PO->Supplier_Reference;
- $supOfferNo=$PO->Supplier_Offer_No;
- $supplierEmail=$PO->EmailAddress;
- $supplierGst=$PO->GSTNO;
- $supplierPan=$PO->PAN;
- $supplierContact=$PO->ContactNumber;
- $ourRef=$PO->Other_Reference;
- $supplierVendor=$PO->SupplierID;
- $CostCenterCode=$PO->CostCenterCode;
-
- $PaymentTerms=$PO->PaymentTerms;
- if($PaymentTerms=='Others'){
- $PaymentOtherDescription=$PO->PaymentOtherDescription;
- }
- $CapitalRange=$PO->CapitalRange;
- $TotalOrderValue=$PO->TotalOrderValue;
-
- }
- }
-
-
- $currencyCode ='';
- $currencyName='';
- if(!empty($CurrencySymbol))
- {
- foreach ($CurrencySymbol as $Curr)
- {
-
- $currencyCode = $Curr->FontCode2000;
- $currencyName = $Curr->Currency_Code;
-
-
- }
-
- }
+ $TotalCgst1='-';
+ $PONO = '';
+ $postatus ='';
+ $CompanyAddress = '';
+ $CompanyName = '';
+ $CompanyStateCode='';
+ $SuplierName = '';
+ $SuplierAddress = '';
+ $DeliveryAddress = '';
+ $Podt = '';
+ $DeliveryDate ='';
+ $ServiceDescription = '';
+ $index=0;
+ $dispatch="";
+ $PaymentDays='';
+ $PayableAT='';
+ $PaymentTerms='';
+ $PaymentOtherDescription='';
+ $DeliverySchedule='';
+ $advance=0;
+ $finCap='';
+ $modShp='';
+ $insNo='';
+ $insNo='';
+ $supRef='';
+ $supOfferNo='';
+ $companyEmail='';
+ $companyGst='';
+ $companyPan='';
+ $companyWebsit='';
+ $supplierEmail='';
+ $supplierGst='';
+ $supplierPan='';
+ $supplierContact='';
+ $supplierVendor='';
+ $TotalCgst=0;
+ $TotalSgst=0;
+ $TotalIgst=0;
+ $TotalDiscount=0;
+ $TotalOtherAllowance=0;
+ $TotalFreight=0;
+ $CapitalRange='';
+ $ourRef='';
+ if(!empty($CompanyDetails))
+ {
+ foreach ($CompanyDetails as $CO)
+ {
+ $CompanyName = $CO->CompanyName;
+ $CompanyAddress = $CO->Address;
+ $companyEmail=$CO->EmailAddress;
+ $companyGst=$CO->GSTNO;
+ $companyPan=$CO->PAN;
+ $companyWebsit=$CO->companyWebsite;
+ $CompanyStateCode=$CO->StateCode;
+ }
+ }
+ foreach ($GetPoFormat[0] as $For)
+ {
+ $PONO = $For;
+
+ }
+
+ if(!empty($POItem))
+ {
+
+ foreach ($POItem as $PO)
+ {
+
+ $ReqNo=$PO->ReqNo;
+
+ $postatus= $PO->Status;
+
+ $SuplierName = $PO->SupplierName;
+ $SuplierAddress = $PO->Address;
+ $DeliveryAddress = $PO->DeliveryAddress;
+ $advance=$PO->AdvanceAmount;
+ $dt = new DateTime($PO->PODate, new DateTimeZone('Asia/Kolkata'));
+ $Podt = $dt->format('d-m-Y');
+ if($PO->DeliveryOption=='1'){
+ $DeliveryDate = '';
+ $DeliverySchedule = $PO->DeliverySchedule;
+ $dispatch="";
+ }
+ else if($PO->DeliveryOption=='0'){
+ $dispatch="";
+ $dtDe = new DateTime($PO->DeliveryDate, new DateTimeZone('Asia/Kolkata'));
+ $DeliveryDate = $dtDe->format('d-m-Y');
+ $DeliverySchedule = '';
+ }else if($PO->DeliveryOption=='2'){
+ $DeliveryDate='';
+ $DeliverySchedule = '';
+ $dispatch=$PO->Import_DispatchDetails;
+ }
+ $ServiceDescription =$PO->ServiceDescription;
+ $finCap=$PO->Fincap;
+ $modShp=$PO->Mode_Of_Shipment;
+ $insNo=$PO->InsuranceNumber;
+
+ $supRef=$PO->Supplier_Reference;
+ $supOfferNo=$PO->Supplier_Offer_No;
+ $supplierEmail=$PO->EmailAddress;
+ $supplierGst=$PO->GSTNO;
+ $supplierPan=$PO->PAN;
+ $supplierContact=$PO->ContactNumber;
+ $ourRef=$PO->Other_Reference;
+ $supplierVendor=$PO->SupplierID;
+ $CostCenterCode=$PO->CostCenterCode;
+
+ $PaymentTerms=$PO->PaymentTerms;
+ if($PaymentTerms=='Others'){
+ $PaymentTerms=$PO->PaymentOtherDescription;
+ }
+
+ $CapitalRange=$PO->CapitalRange;
+ $TotalOrderValue=$PO->TotalOrderValue;
+
+ }
+ }
+
+
+ $currencyCode ='';
+ $currencyName='';
+ if(!empty($CurrencySymbol))
+ {
+ foreach ($CurrencySymbol as $Curr)
+ {
-
-
-
-?>
-
+ $currencyCode = $Curr->FontCode2000;
+ $currencyName = $Curr->Currency_Code;
+
+
+ }
+
+ }
+
+
+
+
+ ?>
-
SI/PUR/R 02 |
- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- - -
|
-
- Purchase Order No: - - |
-
- PO Date : - - |
-
- |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
- Supplier's Offer No: - |
- Our Reference : | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Shipped From: Vendor code: - - - - - - - -
|
-
- Shipped To: State code: |
- Delivery : |
-
+
+
-
-|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
+ SI/PUR/R 02
+ |
+ |||||||||||||||
|
+ Purchase Order No + + |
+
+ PO Date + + |
+ ||||||||||||||
|
+ Supplier's Offer No + + |
+ Our Reference + + |
+ ||||||||||||||
|
+ Shipped From Vendor code: + + + + +
|
+ Shipped To State code: + + |
+ Delivery/ Dispatch Instruction : + + |
+ |||||||||||||
| Indent : | +
+
|
+
+
|
+
+
|
+
+
|
+
+
|
+
+
+
+
+
+ ||||||||||
| Contact : | +Email : | +Mode of Shipment: | +Insurance : | +||||||||||||
+ ParentPO != ''){ + $i++; + } + } + } + + if($i>0){ + ?> + + + Tax and other details: + + + +
Order value in words: