#brot1n

1 messages ยท Page 1 of 1 (latest)

little gardenBOT
dark iris
#

Hi ๐Ÿ‘‹

I'm guessing this is something you would like to configure at the Customer level (if possible).

#

But...you want this rendered in the Address block of the Invoice.

#

๐Ÿค”

#

Have you tried creating a multi-line name?

fair wharf
#

yup, at the end of the day I am required to explicitely name the company through which the customer has done their purchase

dark iris
#

Like MegaCorp Inc.\c\rMike Meyes

fair wharf
#

oh that works? I kinda just figured multiline Strings arent allowed. I will check

dark iris
#

I just tested this myself. The Customer object has the following property: "name": "Mega Corp Inc\nMike Meyes",

#

But when I print it I see

print(cust.name)
Mega Corp Inc
Mike Meyes
#

There's a typo because I was rushing but I think you get the idea ๐Ÿ˜…

fair wharf
#

Hm the pdf generation does not seem to respect that tho. i used \n

#

(Ignore the 2nd "Mega Corp")

dark iris
#

Try with \c\r. That is what our API returned when I passed in a """ multi-line string in Python

fair wharf
#

Even worse haha

dark iris
#

Blast!

#

Follow up, and I would test this myself if I weren't juggling some other threads

fair wharf
#

On the top left of the invoice unfortunately, right below due by etc

dark iris
#

Drat. Unfortunately I think your address approach is the best one we have at the moment. I raise this as a feature request for our Invoices team though

fair wharf
#

Ah bummer, but understandable. yea I would believe the requirement of listing a customers company atop the adress exists for many users. Thanks anyway! have a nice day:)