-
Hello! Are we really limited to name, address, email and logo? If not how I change some of these parameters or add my own? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
with a help of wonderful ChatGPT I was able to make this: company: { and: |
Beta Was this translation helpful? Give feedback.
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