code: def provideCustomerReferralCode(sender,**kwargs):
      '''
      If the vouchers app is installed and referrals are enabled, then the customer's profile page can show their voucher referral code.
      '''
      customer = kwargs.pop('customer')
      if getConstant('vouchers__enableVouchers') and getConstant('referrals__enableReferralProgram'):
          vrd = ensureReferralVouchersExist(customer)
  
          return {
              'referralVoucherId': vrd.referreeVoucher.voucherId
          f provideCustomerReferralCode(sender,**kwargs):
      '''
      If the vouchers app is installed and referrals are enabled, then the customer's profile page can show their voucher referral code.
      '''
      customer = kwargs.pop('customer')
      if getConstant('vouchers__enableVouchers') and getConstant('referrals__enableReferralProgram'):
          vrd = ensureReferralVouchersExist(customer)
  
          return {
              'referralVoucherId': vrd.referreeVoucher.voucherId
          }
docs: If the vouchers app is installed and referrals are enabled, then the customer's profile page can show their voucher referral code.