#meisei81_api

1 messages ¡ Page 1 of 1 (latest)

trim valveBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1247760433415192606

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

sick tangle
#

hello! can you explain why you need to create a product with price less than 0?

grand flax
#

We want to implement a zero amount invoice. The invoice can contain several products with different price.

buoyant pebbleBOT
distant coyote
#

You can only add a negative invoice item, but can't create a Price object with amount < 0

#

When you create the Invoice Item, simply specify the negative amount

grand flax
#

Got it.

#

I'll try this

#

I want to know that how to add customized text in an invoice. Is it possible?

distant coyote
grand flax
#

Can I show custom fields below the total amount line?

#

I'm curious that why the negative amount display in two lines?

distant coyote
#

Hmm that could be the width of the PDF, but it is not incorrect

#

Sorry don't think it's possible to move the custom fields positions

#

You can look at default footer

grand flax
#

I just found the fields rendering.pdf.page_size with enum a4, letter, or auto

#

No more parameters

distant coyote
grand flax
#

I have use different values for fields rendering.pdf.page_size but the negative amount is still dispayed in two lines.

#

So there's no other way to fix this issue?