fixed conflict after merge with dev
This commit is contained in:
@@ -369,10 +369,10 @@ class SaleItem < ApplicationRecord
|
||||
if self.qty.to_i >= 0
|
||||
qty = self.qty - self.qty_was
|
||||
if stock.balance.to_i >= qty
|
||||
puts ">> stock is greater than order qty"
|
||||
Rails.logger.info ">> stock is greater than order qty"
|
||||
remark = "ok"
|
||||
else
|
||||
puts " << stock is less than order qty"
|
||||
Rails.logger.info " << stock is less than order qty"
|
||||
remark = "out of stock"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user