Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invoice bcc field is getting cleared on sync #614

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/quickbooks/model/invoice.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class Invoice < BaseModel
xml_accessor :allow_online_ach_payment?, :from => 'AllowOnlineACHPayment'
xml_accessor :deposit_to_account_ref, :from => 'DepositToAccountRef', :as => BaseReference
xml_accessor :bill_email_cc, :from => 'BillEmailCc', :as => EmailAddress
xml_accessor :bill_email_bcc, :from => 'BillEmailBcc', :as => EmailAddress


reference_setters
Expand Down Expand Up @@ -93,6 +94,10 @@ def billing_email_cc_address=(email_address_string)
self.bill_email_cc = EmailAddress.new(email_address_string)
end

def billing_email_bcc_address=(email_address_string)
self.bill_email_bcc = EmailAddress.new(email_address_string)
end

def wants_billing_email_sent!
self.email_status = EMAIL_STATUS_NEED_TO_SEND
end
Expand Down
Loading