1b.app
Link copied -

Variable advice in a document template

Есть необходимость работы с документами и переменными в системе?
У нас это возможно - просто установите компонент Документы! Установить компонент
The system has an additional process product field with the Date and Time field type.
Is it possible to use date_format for this field variables in document templates?
For example, there is a variable {row: product_customOrderproduct_date5}, if you put it, then instead of the variable, substitute the date and time from the field 2021-01-18 00:00
Is it possible to add date_format like [date_format:"%d.%m.%Y"] to this variable to put the date in 01/18/2021 format?
Original question is available on version: ru https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор

Answers:

Yes, there is a similar format:
{row:product_XXX|date_format:FORMAT:LANGUAGE}
where row:product_XXX is a variable
FORMAT - format according to http://php.net/manual/ru/function.date.php
LANGUAGE - language key (optional)
21.01.2021, 17:24
Original comment available on version: ru


Maria
Employee wrote:
Yes, there is a similar format:
{row:product_XXX|date_format:FORMAT:LANGUAGE}
where row:product_XXX is a variable
FORMAT - format according to http://php.net/manual/ru/function.date.php
LANGUAGE - language key (optional)

Not quite clear.
Substituted like this {row:product_customOrderproduct_zaezd5|date_format:dmY}
but instead of a variable it outputs
01/18/2021<0031Mon, 18 Jan 2021 00:00:00 +02002021112 003121MondayEurope/Kiev="f2021131-000017Europe/Kiev: 13.3333px;">
That is, at first the date is correct, but then it adds all this https://prnt.sc/xfmber
22.01.2021, 11:17
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru

Please provide a link to the document
24.01.2021, 22:54
Original comment available on version: ru


Maria
Employee wrote:
Please provide a link to the document

Here is a link to the document template https://crm.tcc.com.ua/admin/shop/document/templates/48/control/
This variable is indicated here https://prnt.sc/xl8zp3
Here is the process where you can create a document https://crm.tcc.com.ua/admin/customorder/uslugi/1403321/document/
25.01.2021, 09:41
https://qube-soft.com/ crm erp onebox qubesoft внедрение аналитика 1с интегратор Original comment available on version: ru


Strilec Anton Nikolaevich
Employee wrote:

Maria
Employee wrote:
Please provide a link to the document

Here is a link to the document template https://crm.tcc.com.ua/admin/shop/document/templates/48/control/
This variable is indicated here https://prnt.sc/xl8zp3
Here is the process where you can create a document https://crm.tcc.com.ua/admin/customorder/uslugi/1403321/document/

apparently in the document template, when the format for the date was specified, the variable broke a little (the span tag fell between the curly braces) and as a result you might not get the result
removed the extra with the variable and created the document
https://crm.tcc.com.ua/admin/document/19171/control/
I think everything is ok there
25.01.2021, 09:55
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