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