Skip to content

Hot to modify or add something into company hash? #32

Answered by czepesch
czepesch asked this question in Q&A
Discussion options

You must be logged in to vote

with a help of wonderful ChatGPT I was able to make this:

company: {
name: @user.profile.company,
address: "#{@user.profile.address}\nBusiness ID: #{@user.profile.business_id}\nTIN: #{@user.profile.tin}",
phone: @user.profile.phone,
email: @user.profile.email,
logo: Rails.root.join("app/assets/images/pngegg.png"),
},

and:
recipient: [
"Bill to",
"#{@invoice.client_name}",
"#{@invoice.client_address}",
"#{@invoice.client_phone}",
"Business ID: #{@invoice.client_business_id}",
"TIN: #{@invoice.client_tin}",
" "
]
although there is interesting thing, that we must include some " " or "whateever" as the last line in recipient section, otherwise last line won't be displayed

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by czepesch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant