diff --git a/application/views/Report_purchase_inward.php b/application/views/Report_purchase_inward.php index 25f92f75..ce1ee7e2 100755 --- a/application/views/Report_purchase_inward.php +++ b/application/views/Report_purchase_inward.php @@ -1,510 +1,566 @@ - - - - -
- -
-

-
Siddharth Industries - Add New Receipt and Payment
-

-
- -
-
- Back -
-
-
- -
- - -
- - - -
- -
-
- - -
- -
-
- Select Account type:

- RECEIPT         - PAYMENT - - -
-
-
-
- Account Name Select: *

- -
-
- - -
-
- - Date:*

- - -
- -
- -
-
- - AAA*

- - -
- -
-
-
-
-
-
- GST -
-
-
- -
-
-
- Total Amount:* - - -
-
-
-
-
-
- Description: - - -
-
- File Upload: - your image
- -
-
-
- - - - - - -
-
-
-
- load->helper('form'); - $error = $this->session->flashdata('error'); - if($error) - { - ?> -
- - session->flashdata('error'); ?> -
- - session->flashdata('success'); - if($success) - { - ?> -
- - session->flashdata('success'); ?> -
- - -
-
- ', '
'); ?> -
-
-
-
-
- - - - if(towhome == '') - { - errorflag++; - } - - if(gstcheck == true) - { - - if((merchant == '') || (mergst == '') || (Invoiceno == '') || (beforegst == '') || (sgst == '') || (cgst == '') || (igst == '')) - { - errorflag++; - } - else - { - // calculation part - - } - - - } - // alert(errorflag); - if(errorflag != 0) - { - alert("Please Provide All Details..!"); - return false; - } - - - $('#addIncomeExpense').submit(); - + + + +
+
+
+ +
+ +
+
+

Inward Details

+ input->post('client_name')){ + $cl=$this->input->post('client_name'); + echo $cl; + echo ' '.' '; + } + if($this->input->post('item_name')){ + $it=$this->input->post('item_name'); + echo $it; + echo ' '.' '; + } + + if($this->input->post('financialyear')){ + $ab=$this->input->post('financialyear'); + echo '('.$ab.')'; + echo ' '; + + } + if($this->input->post('month')){ + $m=$this->input->post('month'); + echo '('.$m.')'; + echo ' '; + } + if($this->input->post('from_date') && $this->input->post('to_date')){ + $frm = $this->input->post('from_date'); + $t = $this->input->post('to_date'); + echo $frm.'-to-'.$t; + } + + ?>

+
+ - data = JSON.parse(data); - $.each(data,function(i,arr){ - supplier_gstno = arr.GSTNO; - }); - $("#merchantgst").val(supplier_gstno); - } - } - }); - } - } +
+ +
+ +
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + + + +
+
+ + +
+ +
+ + + + +
+ +
+

+ + +
+
+
+ + + +
+ + + *Insurance field not included + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PO NoDateTimeMaterial NameCategorySupplier NameQtyUOMRate  ()Value  ()Exchange RateSGST  ()CGST  ()IGST  ()Discount  ()Freight  ()Package  ()Total  ()
+ pono;?> + created_date;?>created_time;?>material_name;?>category;?>supplier_name;?>quantity); + echo round($rel->quantity);?>UOM;?>rate; + echo $rel->rate;?>value; + echo $rel->value;?>exchange_rate; + echo $rel->exchange_rate;?>sgst; + echo $rel->sgst;?>cgst; + echo $rel->cgst;?>igst; + echo $rel->igst;?>discount; + echo $rel->discount;?>freight; + echo $rel->freight;?>Package; + echo $rel->Package;?>total,2); + ?> + file)){ ?> + total,2,'.','');?> + total,2,'.',''); + } + ?> + +
AccountCode;?>Date;?>AccountName;?>type.'-'.$cb->category;?>Suppliername;?>Value; + echo $cb->Value;?>sgst; + echo $cb->sgst;?>cgst; + echo $cb->cgst;?>igst; + echo $cb->igst;?>Total,2); + ?> + file)){ ?> + Total,2,'.','');?> + Total,2,'.',''); + } + ?> + +
Total      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ +
+ +
+
+
+ + + + + + + + + \ No newline at end of file + + + + \ No newline at end of file diff --git a/application/views/addnewIncomeExpense.php b/application/views/addnewIncomeExpense.php index 491f4382..25f92f75 100755 --- a/application/views/addnewIncomeExpense.php +++ b/application/views/addnewIncomeExpense.php @@ -1,11 +1,6 @@ - - + +

-
Siddharth Industries - Add New Receipt and Payment
- +
Siddharth Industries - Add New Receipt and Payment

@@ -160,11 +156,9 @@ function loadAccountType(id)
- Account Name Select: *

+ Account Name Select: *

@@ -173,7 +167,7 @@ function loadAccountType(id)
- Date:*

+ Date:*

@@ -213,15 +207,16 @@ function loadAccountType(id)
- - -
- - Merchant Name: - - -
- +
+ Merchant Name: +
+ + + +
+
@@ -306,7 +301,7 @@ function loadAccountType(id)
File Upload: your image
- +
@@ -475,4 +470,41 @@ $('#myradio2').click(function(){ $('#towhom').text('Paid To:'); }); +$(document).ready(function(){ + + $('#merchant').autocomplete({ + + onSearchStart: function (query) { + $('#merchant').autocomplete("option", "minLength", 0); + }, + + serviceUrl: "cashbook/autocomplete", + onSelect: function (suggestion) { + + var data = suggestion.SupplierName; + var selectedvalue = $('input[name=merchant]').val(); + if(selectedvalue != ' ' ) + { + + $.ajax({ + data:{id:selectedvalue}, + type:"POST", + url:"cashbook/getSupplierDtls", + success:function(data) { + var supplier_gstno = ''; + if(data != '') + { + + data = JSON.parse(data); + $.each(data,function(i,arr){ + supplier_gstno = arr.GSTNO; + }); + $("#merchantgst").val(supplier_gstno); + } + } + }); + } + } + }); +}); \ No newline at end of file