Modified in Close Cashier,Other Charges and Survey minus sugn

This commit is contained in:
San Wai Lwin
2018-06-07 11:02:23 +06:30
parent 86d3b60e9a
commit fb0e832ea6
3 changed files with 49 additions and 12 deletions

View File

@@ -96,9 +96,9 @@
<div class="form-horizontal">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div class="bottom-5">
<input type="text" id="other-charges-amount" name="other-charges-amount" class="form-control" placeholder="Amount" onkeypress="return isNumberKey(event);" />
<input type="number" id="other-charges-amount" name="other-charges-amount" class="form-control" placeholder="Amount" onkeypress="return isNumberKey(event);", onkeyup="otherCharges(this.value);" />
<br><span id="other-charges-amountErr" style="color:red;"></span>
</div>
</div>
<div class="bottom-5">
<textarea id="reasons" name="reasons" rows="2" class="form-control" placeholder="Reasons"></textarea>
</div>
@@ -208,7 +208,13 @@
</div>
</div>
<script type="text/javascript">
var cashier_type = "<%= @cashier_type %>";
function otherCharges(val){
var aa = parseInt(val);
if(isNaN(aa)) $("#other-charges-amount").val("");
}
var cashier_type = "<%= @cashier_type %>";
$(document).ready(function(){
setHeaderBreadCrumb(_OTHER_CHARGES_);