diff --git a/application/controllers/batchcard.php b/application/controllers/batchcard.php
index 4e6a0cfa..83793281 100755
--- a/application/controllers/batchcard.php
+++ b/application/controllers/batchcard.php
@@ -614,8 +614,11 @@ class batchcard extends BaseController
if ($this->input->post('btn_submit')) {
$prod = $this->input->post('item_name');
$frm = $this->input->post('from_date');
- $t = $this->input->post('to_date');
- $data['material']=$this->batchcard_model->getMaterial_history($prod,$frm,$t);
+ $t = $this->input->post('to_date');
+
+ $data['material']=$this->batchcard_model->getMaterial_history($prod,$frm,$t);
+
+
}
$data['material_name']=$this->batchcard_model->material_name();
//$data['firstinvoice'] = $this->batchcard_model->selectquery();
diff --git a/application/controllers/purchaseorder.php b/application/controllers/purchaseorder.php
index 33e5cbdd..04a6ff6e 100755
--- a/application/controllers/purchaseorder.php
+++ b/application/controllers/purchaseorder.php
@@ -3591,7 +3591,7 @@ function uploadfile()
if(!empty($_FILES['file']['name']))
{
$config['upload_path'] = 'uploads/BillFiles/';
- $config['allowed_types'] = 'docx|pdf|doc|png|jpg';
+ $config['allowed_types'] = '*';
//$config['file_name'] = $_FILES['file']['name'];
$config['file_name'] = str_replace(" ","",$_FILES['file']['name']);
diff --git a/application/controllers/servicepurchaseorder.php b/application/controllers/servicepurchaseorder.php
index 47a839ec..f1b49c23 100755
--- a/application/controllers/servicepurchaseorder.php
+++ b/application/controllers/servicepurchaseorder.php
@@ -561,7 +561,7 @@ function uploadfile()
if(!empty($_FILES['file']['name']))
{
$config['upload_path'] = 'uploads/BillFiles/';
- $config['allowed_types'] = 'docx|pdf|doc|png|jpg';
+ $config['allowed_types'] = '*';
//$config['file_name'] = $_FILES['file']['name'];
$config['file_name'] = str_replace(" ","",$_FILES['file']['name']);
//print_r($config) ;
diff --git a/application/models/inwardgateregister_model.php b/application/models/inwardgateregister_model.php
index 822efbbe..5fbe65f5 100755
--- a/application/models/inwardgateregister_model.php
+++ b/application/models/inwardgateregister_model.php
@@ -133,7 +133,6 @@ class inwardgateregister_model extends CI_Model
$this->db->join('T_OGR_Master OGM ', 'POM.PONO = OGM.PONO_INV','left');
$this->db->where('POM.Status',PO_RELEASED);
$this->db->where('POM.POType !=',SERVICE);
- $this->db->or_where('POM.Status',IGR_CREATED);
$this->db->or_where('POM.Status',MRIR_CREATED);
$this->db->or_where('POM.Status',MRIR_APPROVED);
$this->db->or_where('POM.Status',OGR_COMPLETE);
diff --git a/application/views/404.php b/application/views/404.php
old mode 100755
new mode 100644
diff --git a/application/views/addnewIncomeExpense.php b/application/views/addnewIncomeExpense.php
index f16a0b04..454b84ef 100755
--- a/application/views/addnewIncomeExpense.php
+++ b/application/views/addnewIncomeExpense.php
@@ -95,6 +95,14 @@
Received From:*
+
+
+ Select Supplier: *
+
+
+
@@ -371,6 +379,8 @@ $(function() {
var t = [];
var ex = [];
var inc = [];
+ var supp =[];
+
$('#SGST').val('0.00');
$('#CGST').val('0.00');
$('#IGST').val('0.00');
@@ -401,9 +411,12 @@ $('#Recepitaccode').append(options);
}
});
+supp = ;
+ $.each(supp,function(s,supp){
+ $("#supplier").append( $('').val(supp.SupplierID).html(supp.SupplierID+' - '+supp.SupplierName));
+});
-
-
+
$('#gst').click(function(){
$('#gstarea').toggle();
});
@@ -518,6 +531,7 @@ function loadAccountType(id)
\ No newline at end of file
diff --git a/application/views/editRawmaterial.php b/application/views/editRawmaterial.php
index 2116839a..d4eb9de4 100755
--- a/application/views/editRawmaterial.php
+++ b/application/views/editRawmaterial.php
@@ -16,7 +16,9 @@ $IsActive = '';
$openstock='';
$date='';
$reorder='';
+$total = 0;
+$date_today = date("Y-m-d");
if(!empty($materialDetails))
{
foreach ($materialDetails as $MD)
@@ -34,8 +36,9 @@ if(!empty($materialDetails))
$RMCode = $MD->RMCode;
$HSNcode = $MD->HSNCODE;
$openstock=$MD->stock;
- $openstockdate=new DateTime($MD->stockdate);
- $date = $openstockdate->format('d-m-Y');
+ //$openstockdate=new DateTime($MD->stockdate);
+ //$date = $openstockdate->format('d-m-Y');
+ $date=$MD->stockdate;
$reorder=$MD->reorder;
$chk = $MD->IsActive;
@@ -57,7 +60,40 @@ if(!empty($currentstock))
$x = $openstock;
$y = $currentstock;
- $total= $x + $y;
+ $todaydateyear = date('Y', strtotime($date_today));
+ $todaydatemonth = date('m', strtotime($date_today));
+ $todaydatedate = date('d', strtotime($date_today));
+
+ $openstockdateyear = date('Y', strtotime($date));
+ $parts = explode('-',$date);
+ $openstockdatemonth = $parts[1];
+ $openstockdatedate = $parts[2];
+
+
+ if($openstockdateyear==$todaydateyear)
+ {
+ if($openstockdatemonth<=03)
+ {
+ $total= $y==''?'0':$y;
+
+
+ }
+
+ else
+ {
+ $total= $x + $y;
+ }
+
+ }
+ else if($openstockdateyear<$todaydateyear)
+ {
+ //$total= $y;
+ $total= $y==''?'0':$y;
+ }
+ else if($openstockdateyear>$todaydateyear)
+ {
+ $total= $x + $y;
+ }
}
diff --git a/assets/dist/img/RI_logo_dark.png b/assets/dist/img/RI_logo_dark.png
new file mode 100644
index 00000000..13d42d46
Binary files /dev/null and b/assets/dist/img/RI_logo_dark.png differ
diff --git a/assets/dist/img/RI_logo_light.png b/assets/dist/img/RI_logo_light.png
new file mode 100644
index 00000000..d46aaca2
Binary files /dev/null and b/assets/dist/img/RI_logo_light.png differ
diff --git a/uploads/Igrfiles/1.jpg b/uploads/Igrfiles/1.jpg
deleted file mode 100644
index 8ff7f014..00000000
Binary files a/uploads/Igrfiles/1.jpg and /dev/null differ
diff --git a/uploads/Igrfiles/19_mar_riadblist.png b/uploads/Igrfiles/19_mar_riadblist.png
deleted file mode 100644
index 6d94118d..00000000
Binary files a/uploads/Igrfiles/19_mar_riadblist.png and /dev/null differ
diff --git a/uploads/Igrfiles/19_mar_riadblist1.png b/uploads/Igrfiles/19_mar_riadblist1.png
deleted file mode 100644
index 07cd7710..00000000
Binary files a/uploads/Igrfiles/19_mar_riadblist1.png and /dev/null differ