update print

This commit is contained in:
Aung Myo
2017-06-08 16:52:50 +06:30
parent 26598e2731
commit ea4f50e779
10 changed files with 372 additions and 86 deletions

View File

@@ -22,6 +22,13 @@ $(document).ready(function(){
var receipt_no=$(this).find(".orders-receipt-no").text();
var unique_id=$(this).find(".orders-id").text();
//for customer button
if(unique_id.charAt(0) == 'S'){
$("#customer").removeAttr('disabled');
}else{
$("#customer").attr('disabled','disabled');
}
var cashier="";
var receipt_date="";
var sub_total=0;
@@ -96,6 +103,12 @@ $(document).ready(function(){
window.location.href = '/origami/sale/'+ sale_id + "/payment"
return false;
});
$('#customer').click(function() {
var sale_id=$(".selected-item").find(".orders-id").text();
window.location.href = '/crm/customers/'+ sale_id + "/assign_sale_id"
return false;
});
});