class Quickbooks::Model::Payment
def existence_of_customer_ref
def existence_of_customer_ref if customer_ref.nil? || (customer_ref && customer_ref.value == 0) errors.add(:customer_ref, "CustomerRef is required and must be a non-zero value.") end end