finished customer to sale assign in crm
This commit is contained in:
@@ -206,15 +206,14 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div><p id="sale" value=""></p>
|
||||
<!-- Column Three -->
|
||||
<div class="col-lg-1 col-md-1 col-sm-1">
|
||||
<!-- Waiter Buttons -->
|
||||
<button type="button" class="btn btn-primary btn-lg btn-block" disabled>Add Order</button>
|
||||
<button type="button" class="btn btn-primary btn-lg btn-block" disabled>Edit</button>
|
||||
<button type="button" class="btn btn-primary btn-lg btn-block" disabled>Move</button>
|
||||
<button type="button" class="btn btn-primary btn-lg btn-block" disabled>Customer</button>
|
||||
<button type="button" id="customer" value="SAL-000000000001" class="btn btn-primary btn-lg btn-block">Customer</button>
|
||||
<button type="button" id="request_bills" class="btn btn-primary btn-lg btn-block">Req.Bill</button>
|
||||
<!-- Cashier Buttons -->
|
||||
<button type="button" class="btn btn-primary btn-lg btn-block">Discount</button>
|
||||
@@ -242,6 +241,7 @@ function callOrderDetails(sale_order_id){
|
||||
url = "origami/"+sale_order_id.split("_")[1]
|
||||
data_val = { sale_id: sale_order_id.split("_")[1]}
|
||||
$("#pay").prop('disabled',false);
|
||||
$("#customer").prop('disabled',false);
|
||||
$("#request_bills").prop('disabled',true);
|
||||
}else{
|
||||
order_id = sale_order_id.split("_")[1]
|
||||
@@ -249,6 +249,7 @@ function callOrderDetails(sale_order_id){
|
||||
data_val = { order_id: sale_order_id.split("_")[1]}
|
||||
$("#request_bills").prop('disabled',false);
|
||||
$("#pay").prop('disabled',true);
|
||||
$("#customer").prop('disabled',true);
|
||||
}
|
||||
|
||||
table_or_order_id = order_id
|
||||
@@ -347,6 +348,12 @@ $( document ).ready(function() {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#customer').click(function() {
|
||||
var sale_id = $(this).val();
|
||||
window.location.href = '/crm/customers/'+ sale_id + "/assign_sale_id"
|
||||
return false;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user