1b.app
Link copied -

Very urgent! Error 500 - problem with document template

In processes when generating a document with the template Order to the supplier using the action "Issue a document" https://one-box.shine-bright.com.ua/app/document/templates/19/control/ Error 500 occurs

no changes were made

example of the process https://one-box.shine-bright.com.ua/714606/ - you can go to the Update stage

the document is also not generated manually in orders
Original question is available on version: ru

Answers:

Correct errors in the template
{|if (product_count) > 1|}
вчера, 13:25
Original comment available on version: ru

so no changes have been made to the template since 23, and orders were still being generated yesterday
вчера, 13:40
Original comment available on version: ru

ok, you don't have to correct it)
вчера, 13:52
Original comment available on version: ru


He drinks fuel like it's free
OneBox production wrote:
ok, you don't have to correct it)

Well, can you explain what's going on? Why did it just stop working from today? Did some changes happen in your system? We didn't change anything in the settings - is that a fact, or am I wrong?
вчера, 13:59
Original comment available on version: ru


Rodion wrote:
Well, can you explain what the matter is?

I explained it to you in the very first message - you have an error in the document template. {|if (product_count) > 1|} is an invalid construction.

Rodion wrote:
Why did it just stop working from today?

Validation has become more rigorous.
вчера, 14:01
Original comment available on version: ru

Please tell me how to correctly write such a condition?
вчера, 14:06
Original comment available on version: ru

Remove it altogether
{|if (product_count) > 1|}
<td class="xl9912913" style="border-left: none;" colspan="2">{row:product_count}</td>
{|else|}
<td class="xl9912913" style="border-left: none;" colspan="2">{row:product_count}</td>
{|/if|}
1. This is an invalid construction.
2. It is meaningless
i.e. just leave one td
вчера, 14:09
Original comment available on version: ru

thanks, is there a design to highlight a cell in color if the quantity of goods is > 1?
вчера, 14:28
Original comment available on version: ru

I can't tell you - you need to test it, create a separate thread with a similar question - if anyone knows, they'll tell you.
вчера, 14:38
Original comment available on version: ru


Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment