app/models/visma/customer.rb
# The attributes to use for looking up DiscountAgreementCustomer
The attributes to use for looking up DiscountAgreementCustomer
The attributes to use for looking up DiscountAgreementCustomer
def discount_sources
      s = ['CustomerNo']
      s << 'PriceListNo' if list?
      s << 'DiscountGrpCustNo' if group?
      s
    end
def discount_sources s = [ 'CustomerNo' ] s << 'PriceListNo' if list? s << 'DiscountGrpCustNo' if group? s end
The attributes to use for looking up DiscountAgreementCustomer
The attributes to use for looking up DiscountAgreementCustomer