From 6ea9f0cd23549d9b4e387cfcf823cf683800589f Mon Sep 17 00:00:00 2001 From: saravanakumar_kandasami Date: Fri, 9 Jun 2017 11:15:22 +0530 Subject: [PATCH] pdf added for po and IGR screen --- .../controllers/inwardgateregister.php | 56 ++++ application/controllers/purchaseorder.php | 25 +- application/views/capitalpopdf.php | 102 ++++-- application/views/capitalpurchaseorder.php | 9 +- application/views/importpo.php | 11 +- application/views/importpopdf.php | 88 +++-- application/views/includes/header.php | 6 + application/views/inwardgateregister.php | 302 ++++++++++++++++++ 8 files changed, 541 insertions(+), 58 deletions(-) create mode 100644 application/controllers/inwardgateregister.php create mode 100644 application/views/inwardgateregister.php diff --git a/application/controllers/inwardgateregister.php b/application/controllers/inwardgateregister.php new file mode 100644 index 00000000..5239ffac --- /dev/null +++ b/application/controllers/inwardgateregister.php @@ -0,0 +1,56 @@ +load->model('supplier_model'); + $this->load->library('session'); + $this->load->library('form_validation'); + $this->isLoggedIn(); + } + /** + * This function used to load the first screen of the user + */ + public function index() + { + $this->global['pageTitle'] = 'Siddharth : Inward Gate Register'; + + $this->loadViews("inwardgateregister", $this->global, NULL , NULL); + } + function inwardgateregister() + { + $this->global['pageTitle'] = 'Siddharth : Inward Gate Register'; + + $this->loadViews("inwardgateregister", $this->global, NULL , NULL); + } + function inwardgateposhow() + { + $this->global['pageTitle'] = 'Siddharth : Inward PO Show'; + + $this->loadViews("inwardgateposhow", $this->global, NULL , NULL); + } + + + function pageNotFound() + { + $this->global['pageTitle'] = 'Siddharth : 404 - Page Not Found'; + + $this->loadViews("404", $this->global, NULL, NULL); + } +} + +?> \ No newline at end of file diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php index d99ee2fb..c746ad38 100755 --- a/application/controllers/purchaseorder.php +++ b/application/controllers/purchaseorder.php @@ -164,7 +164,11 @@ class purchaseorder extends BaseController else if($ReqType == IMPORT) { $ViewName = 'importpo'; - } + } + else if($ReqType == CAPITAL) + { + $ViewName = 'capitalpurchaseorder'; + } $this->loadViews($ViewName, $this->global,$data, NULL); } } @@ -184,7 +188,24 @@ class purchaseorder extends BaseController $this ->revenuepoprint($PONO); } - } + } + + function CreaterevenuePOPrint() + { + $this->load->View("revenuepopdf", NULL); + } + function CreateservicePOPrint() + { + $this->load->View("servicepopdf", NULL); + } + function CreateimportPOPrint() + { + $this->load->View("importpopdf", NULL); + } + function CreatecapitalPOPrint() + { + $this->load->View("capitalpopdf", NULL); + } //To View/Update Purchase Order function EditPurchaseOrder() { diff --git a/application/views/capitalpopdf.php b/application/views/capitalpopdf.php index 7dde224f..0e87ef12 100755 --- a/application/views/capitalpopdf.php +++ b/application/views/capitalpopdf.php @@ -6,26 +6,50 @@

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

- - - +
+ + + + + +
+

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
+ + + + + + + + + + + + + + + +
Service TaxEducess TaxSec Higher Educess TaxKrishi Kalyan taxSwachh Bharat tax
100120500200100
+ - - - - - - + + + + + + + + + + + + + @@ -35,7 +59,14 @@ + + + + + + + @@ -47,25 +78,44 @@ + + + + + + +
# Item and Description Qty Rate per unitExcise DutyVatGSTCSTOther TaxesAmount (Rs)Landing ChargeHigh Seas Sales chargeCustom dutyCustom duty- Edu.cessCustom duty-Sec & Hig Edu cessExcise dutyExcise duty- Edu.cessExcise duty-Sec & Hig Edu cessAdditional Excise dutyGross duty payableAvailable Modvat -set-off on importGross expenses due to custom dutyTotal Amount(INR)
1500 1000 130010012050010001300 70013007000 200 1,23,800
5000 10000 130001001205001000130070001300 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

+ + + + + + + + + + + + + + + + + +

Landing Charge (Rs):5500

High Seas Sales charge (Rs):11000

Custom duty (Rs):14300

Custom duty- Edu.cess (Rs):14300

Custom duty-Sec & Hig Edu cess (Rs) :7700

Excise duty (Rs) :2200

Excise duty- Edu.cess (Rs):1300

Excise duty-Sec & Hig Edu cess (Rs):14300

Additional Excise duty (Rs) :7700

Gross duty payable (Rs) :2200

Available Modvat -set-off on import (Rs):1300

Gross expenses due to custom duty (Rs):14300



+
+
+

Sub Total (INR):13,61,800

+
\ No newline at end of file diff --git a/application/views/capitalpurchaseorder.php b/application/views/capitalpurchaseorder.php index 49e7894d..323fea22 100755 --- a/application/views/capitalpurchaseorder.php +++ b/application/views/capitalpurchaseorder.php @@ -46,7 +46,14 @@
-

Siddharth Industries - Capital Purchase Order

+
+
+

Siddharth Industries - Capital Purchase Order

+
+

+ Print +
+
diff --git a/application/views/importpo.php b/application/views/importpo.php index 0d13a393..d5591af6 100755 --- a/application/views/importpo.php +++ b/application/views/importpo.php @@ -73,7 +73,14 @@ if(!empty($MaxPODate))
-

Siddharth Industries - Import Purchase Order

+
+
+

Siddharth Industries - Import Purchase Order

+
+

+ Print +
+
@@ -1347,7 +1354,7 @@ if(!empty($MaxPODate)) + +
+ +
+

+
Siddharth Industries - Inward Gate Register
+

+
+

+
+
+
+
+ Add IGR +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Documentation NoS.NODatePO NOSupplier nameInvoice NoDate of InvoiceItem CodeMaterialQuantityVechicle NoSignature
DOC000112/6/2017PO0034DR EnterprisesInv1232328/6/2017Sand12wast sand1000kgsTN 34 G 5434DREN
DOC000226/6/2017PO0035DR EnterprisesInv12325515/6/2017Sand12wast sand1000kgsTN 34 G 5434DREN
+
+
+
+ + +
+
+ \ No newline at end of file