module Ecom module Core class PaymentDetail < ApplicationRecord belongs_to :crew belongs_to :payment validates :hours, :ot_hours, :base_salary, :overtime, :gross_salary, :tax, :pension, :net_salary, presence: true end end end