merged with crm

This commit is contained in:
Yan
2017-06-08 19:04:48 +06:30
12 changed files with 163 additions and 98 deletions

View File

@@ -26,6 +26,13 @@ $(document).ready(function(){
// Enable/Disable Button
control_button(order_status);
//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;
@@ -147,6 +154,12 @@ $(document).ready(function(){
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;
});
});
/* For Receipt - Calculate discount or tax */