update table invoice

This commit is contained in:
Aung Myo
2018-01-24 18:12:47 +06:30
parent 8d2a928456
commit 357c7c8682
2 changed files with 13 additions and 8 deletions

View File

@@ -162,8 +162,13 @@ function checkReceiptNoInFirstBillData(receipt_no,payment) {
}
}
}
if (payment) {
return json_data[0]["payment"];
if (json_data.length>0) {
return json_data[0]["payment"];
}else{
return false;
}
}else{
return status;
}