promotion + merge with master
This commit is contained in:
@@ -10,8 +10,7 @@ class Promotion < ApplicationRecord
|
||||
PROMO_TYPE3 = "Net_price"
|
||||
PROMO_TYPE4 = "Percentage"
|
||||
|
||||
def self.promo_activate
|
||||
saleObj = Sale.first # Test
|
||||
def self.promo_activate(saleObj)
|
||||
current_day = Time.now.strftime("%Y-%m-%d")
|
||||
current_time = Time.now.strftime('%H:%M:%S')
|
||||
day = Date.today.wday
|
||||
|
||||
Reference in New Issue
Block a user