update payment detail show

This commit is contained in:
Aung Myo
2018-01-15 16:47:41 +06:30
parent 5060d8caaf
commit b480f8cd61

View File

@@ -313,8 +313,8 @@
}
payment_type = checkReceiptNoInFirstBillData(receipt_no,"payment")
console.log(payment_type)
if ($("#server_mode").val() != "cloud") { // first bill not used in cloud
if (member_id && member_discount) {
if(parseInt(jQuery.inArray("Credit", payment_type)) == -1){
$("#credit_payment").hide();
@@ -457,9 +457,9 @@
var credit = $('#credit').text();
var card = $('#card').text();
if (credit <= 0) {
calculate_member_discount(sale_id);
}
if (credit <= 0) {
calculate_member_discount(sale_id);
}
$.ajax({type: "POST",
url: "<%= origami_payment_cash_path %>",