update customre

This commit is contained in:
Aung Myo
2017-06-22 11:58:16 +06:30
parent 54526230aa
commit 187caa5253
7 changed files with 26 additions and 17 deletions

View File

@@ -298,7 +298,7 @@ $(document).ready(function(){
// bind customer to order or sale
$("#customer").on('click', function(){
var sale = $('#sale_id').val();
if (sale!="") {
if (sale) {
var sale_id = sale
}else{
var sale_id = $('#save_order_id').attr('data-order');