From 9b07daabe535fca423252fc5096cdeaaf50f254d Mon Sep 17 00:00:00 2001
From: "venbatechnologies@gmail.com"
Date: Wed, 21 Jun 2017 16:36:46 +0530
Subject: [PATCH] importpo pdf fixed
---
application/controllers/purchaseorder.php | 2 --
application/views/editimportpo.php | 4 ++++
application/views/importpo.php | 7 +++++--
application/views/importpopdf.php | 22 ++++++++++++++--------
4 files changed, 23 insertions(+), 12 deletions(-)
diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php
index e1597c0e..9433bc14 100755
--- a/application/controllers/purchaseorder.php
+++ b/application/controllers/purchaseorder.php
@@ -302,8 +302,6 @@ class purchaseorder extends BaseController
$exRate=$Rate->ExchangeRate;
// $data[$Rate->ExchangeRate]=$Rate->ExchangeRate;
-
-
}
$data['ExchangeRate']=$exRate;
diff --git a/application/views/editimportpo.php b/application/views/editimportpo.php
index c1c7c8a3..4474d8c1 100755
--- a/application/views/editimportpo.php
+++ b/application/views/editimportpo.php
@@ -1833,6 +1833,10 @@ $('#drpSupplier').change(function() {
});
+$('#currencytype').change(function(){
+ $('#ExchangeRate').val('');
+});
+
$('#ReqNo').change(function() {
diff --git a/application/views/importpo.php b/application/views/importpo.php
index 7d01606f..69851c7a 100755
--- a/application/views/importpo.php
+++ b/application/views/importpo.php
@@ -1589,8 +1589,7 @@ $('#drpSupplier').change(function() {
}
});
-
- }
+ }
else
{
alert('Please select the SupplierID');
@@ -1600,6 +1599,10 @@ $('#drpSupplier').change(function() {
});
+$('#currencytype').change(function(){
+ $('#ExchangeRate').val('');
+});
+
$('#ReqNo').change(function() {
diff --git a/application/views/importpopdf.php b/application/views/importpopdf.php
index dabf1fe8..b5635f11 100755
--- a/application/views/importpopdf.php
+++ b/application/views/importpopdf.php
@@ -10,6 +10,7 @@
$Podt = '';
$DeliveryDate ='';
$ServiceDescription = '';
+ $index=0;
if(!empty($CompanyDetails))
{
@@ -45,18 +46,20 @@
-
+
-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. |
+Vendor Address :
- Delivery To Siddharth Industries Survey No: 168/1C3,Pennalur Pet Road, Goonipalyam village, Uthukottai Taluk,Tiruvallur Dist, Chennai,Tamilnadu,Pin code : 602026. |
-PO Date :2/5/2017 Delivery Date :10/5/2017 |
+Delivery To :
+
Delivery Date :
+
|
@@ -108,6 +111,9 @@
$RMCIncludingCustomersPerKG=0;
$AfterExciseDutySHCess=0;
$TotalOrderValue=0;
+ $index=0;
+
+
foreach($POItem as $record)
{
@@ -128,7 +134,9 @@
AfterCustomDuty ; ?> |
AfterExciseDuty ; ?> |
AfterExciseDutyEdCess ; ?> |
+AfterExciseDutySHCess ; ?> |
AfterCustomEdCess ; ?> |
+AfterCustomSHCess ; ?> |
AfterAddlExciseDuty ; ?> |
Grossdutypayable ; ?> |
AvailableModvat ; ?> |
@@ -136,8 +144,6 @@
purchaseratePerKG ; ?> |
CustomDutyExpensesPerKG ; ?> |
RMCIncludingCustomersPerKG ; ?> |
-AfterCustomSHCess ; ?> |
-AfterExciseDutySHCess ; ?> |
QuantityKG ; ?> |
TotalOrderValue; ?> |