commission in sale edit

This commit is contained in:
Zin Lin Phyo
2017-08-25 13:44:22 +06:30
parent 283c59c5dc
commit b4eb27b8a9
16 changed files with 417 additions and 422 deletions

View File

@@ -1,2 +1,11 @@
class ProductCommission < ApplicationRecord
belongs_to :commission, foreign_key: 'commission_id'
belongs_to :commissioner, foreign_key: 'commissioner_id'
belongs_to :menu_item, foreign_key: 'product_id'
belongs_to :sale_item, foreign_key: 'sale_item_id'
belongs_to :sale, foreign_key: 'sale_id'
def self.check_product_commission(sale_item_id)
end
end