update void foc and credit for member discount

This commit is contained in:
Aung Myo
2017-12-28 18:02:25 +06:30
parent 06acf3acb9
commit ecb9a5f010
5 changed files with 22 additions and 12 deletions

View File

@@ -587,9 +587,9 @@
var sale_id = $('#sale_id').val();
type = $('.payment_method').val();
calculate_member_discount(sale_id,type);
if (type != "Credit") {
calculate_member_discount(sale_id,type);
}
var ajax_url = "/origami/sale/" + sale_id + "/first_bill";
$.ajax({
type: "GET",