issues fixed
This commit is contained in:
parent
c3233bbd13
commit
ef7c0ca459
@ -49,7 +49,7 @@ define('ROLE_ACCOUNTS', '8');*/
|
||||
|
||||
|
||||
/***** USER DESIGNATION ******/
|
||||
define('SECURITY', 'SECURITY');
|
||||
//define('SECURITY', 'SECURITY');
|
||||
|
||||
define('SEGMENT', 2);
|
||||
|
||||
@ -139,6 +139,7 @@ define('FINANCE', 'DEP10');
|
||||
define('PURCHASE', 'DEP11');
|
||||
define('MANAGEMENT', 'DEP12');
|
||||
define('HR', 'DEP13');
|
||||
define('SECURITY', 'DEP14');
|
||||
define('SYSTEM_ADMIN', '1');
|
||||
/* PO Type */
|
||||
define('REVENUE', 'REVENUE');
|
||||
|
||||
@ -197,8 +197,8 @@
|
||||
</div>
|
||||
<div class="col-md-4">
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<img id="slip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/>
|
||||
<img id="receiptslip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,this.id);" id="receiptfile" name="myfile" accept="image/*"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -302,8 +302,8 @@
|
||||
</div></div>
|
||||
|
||||
<div class="col-md-3"><div class="form-group">
|
||||
<b><span for="Decription"><b>Account Description:</b></span><span style="color:red">*</span>
|
||||
<input type="text" class="form-control" required style="text-align:right;" id="subdescription1" name="mydata1[subdescription1]" requried>
|
||||
<b><span for="Decription"><b>Account Description:</b></span>
|
||||
<input type="text" class="form-control" style="text-align:right;" id="subdescription1" name="mydata1[subdescription1]" requried>
|
||||
</div></div>
|
||||
|
||||
<div class="col-md-3"><div class="form-group">
|
||||
@ -338,10 +338,12 @@
|
||||
<textarea class="form-control" id="Paymentdescription" name="Paymentdescription" >
|
||||
</textarea>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<b><span for="fileupload">File Upload:</span></b>
|
||||
<img id="slip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/>
|
||||
<!-- <b><span for="fileupload">File Upload:</span></b> -->
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<img id="paymentslip" alt="your image" style="width: 139px;"/><br/>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,this.id);" id="paymentfile" name="myfile" accept="image/*"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -423,25 +425,39 @@ $("#PaymentDate").datepicker({
|
||||
|
||||
});
|
||||
|
||||
function readURL(input) {
|
||||
|
||||
function readURL(input,id) {
|
||||
|
||||
//alert(id);
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function (e) {
|
||||
$('#slip')
|
||||
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
//alert(e.target.result);
|
||||
}
|
||||
else{
|
||||
$('#paymentslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
}
|
||||
// alert(e.target.result);
|
||||
};
|
||||
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
$('#slip').val(input.files[0]['name']);
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip').val(input.files[0]['name']);}
|
||||
else{
|
||||
$('#paymentslip').val(input.files[0]['name']);}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
@ -718,13 +734,12 @@ function add_more()
|
||||
$('#Paymentaccode1').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#subdescription1').val() == '')
|
||||
{
|
||||
alert("Provide Account description..!");
|
||||
$('#subdescription1').focus();
|
||||
return false;
|
||||
|
||||
}
|
||||
// else if($('#subdescription1').val() == '')
|
||||
// {
|
||||
// alert("Provide Account description..!");
|
||||
// $('#subdescription1').focus();
|
||||
// return false;
|
||||
// }
|
||||
else if($('#Paymentamount1').val() == '')
|
||||
{
|
||||
alert("Provide Amount data..!");
|
||||
|
||||
@ -213,12 +213,12 @@ if(!empty($PaymentMultiple))
|
||||
</div>
|
||||
<div class="col-md-4" style="border:0px solid;">
|
||||
|
||||
<img id="receipt" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
<img id="receiptslip" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
|
||||
<input type="button" onclick="DeleteRow();"class="btn btn-primary" value="Delete" />
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="recepitfile" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
@ -442,10 +442,10 @@ if(!empty($PaymentMultiple))
|
||||
</div>
|
||||
<div class="col-md-4" style="border:0px solid;">
|
||||
|
||||
<img id="receipt" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
<img id="paymentslip" src="<?php echo $final ?>" alt="No Receipt Available" style="width: 139px;height:139px;"/><br/>
|
||||
<input type="button" onclick="DeleteRow();"class="btn btn-primary" value="Delete" />
|
||||
<b><span for="Description">File Upload:</span></b>
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this);" id="file" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
<input type='file' input accept=".JPG,.PNG" onchange="paymentreadURL(this);" id="paymentfile" name="myfile" accept="image/*"/ value="<?php echo $document; ?>">
|
||||
|
||||
</div>
|
||||
<div>
|
||||
@ -573,14 +573,46 @@ if(type == "RECEIPT")
|
||||
});
|
||||
|
||||
|
||||
function readURL(input) {
|
||||
function readURL(input,id) {
|
||||
|
||||
//alert(id);
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function (e) {
|
||||
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
}
|
||||
else{
|
||||
$('#paymentslip')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
}
|
||||
// alert(e.target.result);
|
||||
};
|
||||
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
if(id == "receiptfile"){
|
||||
$('#receiptslip').val(input.files[0]['name']);}
|
||||
else{
|
||||
$('#paymentslip').val(input.files[0]['name']);}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function paymentreadURL(input) {
|
||||
|
||||
|
||||
if (input.files && input.files[0]) {
|
||||
var reader = new FileReader();
|
||||
|
||||
reader.onload = function (e) {
|
||||
$('#receipt')
|
||||
$('#payment')
|
||||
.attr('src', e.target.result)
|
||||
.width(100)
|
||||
.height(100);
|
||||
@ -588,10 +620,11 @@ function readURL(input) {
|
||||
};
|
||||
|
||||
reader.readAsDataURL(input.files[0]);
|
||||
$('#receipt').val(input.files[0]['name']);
|
||||
$('#payment').val(input.files[0]['name']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function isNumberKey(evt)
|
||||
{
|
||||
var charCode = (evt.which) ? evt.which : evt.keyCode;
|
||||
@ -793,7 +826,7 @@ $.ajax({
|
||||
{
|
||||
$('#content').loader('hide');
|
||||
alert('Delete Successfully');
|
||||
$('#receipt').attr('src', '');
|
||||
$('#receiptslip').attr('src', '');
|
||||
//window.location ="cashbook/incomeExpenseList";
|
||||
|
||||
}
|
||||
@ -901,13 +934,13 @@ function add_more()
|
||||
$('#Paymentaccode1').focus();
|
||||
return false;
|
||||
}
|
||||
else if($('#subdescription1').val() == '')
|
||||
{
|
||||
alert("Provide Account description..!");
|
||||
$('#subdescription1').focus();
|
||||
return false;
|
||||
// else if($('#subdescription1').val() == '')
|
||||
// {
|
||||
// alert("Provide Account description..!");
|
||||
// $('#subdescription1').focus();
|
||||
// return false;
|
||||
|
||||
}
|
||||
// }
|
||||
else if($('#Paymentamount1').val() == '')
|
||||
{
|
||||
alert("Provide Amount data..!");
|
||||
@ -934,7 +967,7 @@ div.innerHTML='<div class="col-md-12"><div class="col-md-3"><div class="form-gro
|
||||
'</div></div>'+
|
||||
'<div class="col-md-3"><div class="form-group">'+
|
||||
'<span for="Decription"><b>Account Description:</b></span> '+
|
||||
'<input type="text" class="form-control required" style="text-align:right;" id="subdescription'+counterConstant+'" name="mydata'+counterConstant+'[subdescription'+counterConstant+']">'+
|
||||
'<input type="text" class="form-control" style="text-align:right;" id="subdescription'+counterConstant+'" name="mydata'+counterConstant+'[subdescription'+counterConstant+']">'+
|
||||
'</div></div>'+
|
||||
'<div class="col-md-3"><div class="form-group">'+
|
||||
'<span for="amount"><b>Amount(₹):</b></span> '+
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -43,7 +43,7 @@
|
||||
<tr>
|
||||
<td><?php echo '<a href="'.$base.'cashbook/incomeExpenseList/'.$l->id.'">'.$l->type.'</a>';?></td>
|
||||
<td style="text-align:right;"><?php echo date_format(date_create($l->date),'d-m-Y');?></td>
|
||||
<td><?php if($l->type == 'PAYMENT' && $l->account_code == '999') { echo " "; } else {echo $l->name;}?></td>
|
||||
<td><?php if($l->type == 'PAYMENT' && $l->account_code == '999') { echo $l->description; } else {echo $l->name;}?></td>
|
||||
<td style="text-align:right;"><?php echo $l->total;?></td>
|
||||
<td><?php echo $l->description;?></td>
|
||||
<td>
|
||||
|
||||
BIN
uploads/Igrfiles/avatar.png
Executable file
BIN
uploads/Igrfiles/avatar.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
BIN
uploads/cashbook/avatar.png
Executable file
BIN
uploads/cashbook/avatar.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 27 KiB |
Loading…
Reference in New Issue
Block a user