shop upate for 20 files
This commit is contained in:
@@ -535,7 +535,7 @@ class Sale < ApplicationRecord
|
||||
end
|
||||
|
||||
def adjust_rounding
|
||||
shop_details = Shop::ShopDetail
|
||||
shop_details = Shop.first
|
||||
# rounding adjustment
|
||||
if shop_details.is_rounding_adj
|
||||
a = self.grand_total % 25 # Modulus
|
||||
@@ -555,7 +555,7 @@ class Sale < ApplicationRecord
|
||||
end
|
||||
|
||||
def compute_adjust_rounding(grand_total)
|
||||
shop_details = Shop::ShopDetail
|
||||
shop_details = Shop.first
|
||||
# rounding adjustment
|
||||
if shop_details.is_rounding_adj
|
||||
a = grand_total % 25 # Modulus
|
||||
@@ -577,7 +577,7 @@ class Sale < ApplicationRecord
|
||||
#Generate new Receipt No when it is not assigned
|
||||
def generate_receipt_no
|
||||
#shop_code and client_code
|
||||
shop_details = Shop::ShopDetail
|
||||
shop_details = Shop.first
|
||||
|
||||
#Date-Shift-
|
||||
if self.receipt_no.nil?
|
||||
|
||||
Reference in New Issue
Block a user