cahnge foc process
This commit is contained in:
@@ -187,7 +187,7 @@ class SalePayment < ApplicationRecord
|
||||
payment_status = false
|
||||
|
||||
# add to sale item with foc
|
||||
sale_items = SaleItem.where("sale_id='#{ self.sale.sale_id }'")
|
||||
sale_items = SaleItem.where("sale_id='#{ self.sale.sale_id }' and remark is null")
|
||||
|
||||
sale_items.each do|item|
|
||||
SaleItem.update_existing_item(item.qty, item, self.sale.sale_id, "foc", item.unit_price, item.price)
|
||||
|
||||
@@ -497,7 +497,7 @@
|
||||
|
||||
//$( "#loading_wrapper" ).hide();
|
||||
|
||||
if (cash > 0) {
|
||||
if (cash >= 0) {
|
||||
swal({
|
||||
title: "Information!",
|
||||
text: 'Thank You !',
|
||||
|
||||
Reference in New Issue
Block a user