mirror of
https://github.com/internetee/registry.git
synced 2025-08-03 00:12:03 +02:00
Fall back on contact email if billing email is absent
Affects e-invoice and invoice delivery form. Fixes #1255
This commit is contained in:
parent
26fa15f76c
commit
6356ce0e9f
2 changed files with 17 additions and 0 deletions
|
@ -176,6 +176,11 @@ class Registrar < ActiveRecord::Base
|
|||
iban
|
||||
end
|
||||
|
||||
def billing_email
|
||||
return contact_email if self[:billing_email].blank?
|
||||
self[:billing_email]
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_defaults
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue