Leave a message in this thread and the user's contacts will be shown to you
Greetings!
[file]19632[/file]
There is a report, for example https://knkrd.1b.app/app/report/desiner/1/view/?filter_user_client=48&filter_user_client=48&ok=%D0%A4%D0%B8%D0%BB%D1%8C%D1% 82%D1%80%D0%BE%D0%B2%D0%B0%D1%82%D1%8C
[file]19632[/file]
here are its settings https://knkrd.1b.app/app/report/desiner/1/
[file]19632[/file]
task: it is necessary that the opening and ending balances be substituted in the correct column (if the value is greater than 0, then to Debit, if less than 0, then to Credit)
[file]19632[/file]
[file]19632[/file]
As far as I understand, it is possible to implement it through comparison operators - but since we do not have a document according to the process - they do not work as usual. Please evaluate the possibility of improvement, if necessary - or help with the code.
[file]19632[/file]
Thank you for your time!
[file]19632[/file]
task: it is necessary that the opening and ending balances be substituted in the correct column (if the value is greater than 0, then to Debit, if less than 0, then to Credit)
As far as I understand, it is possible to implement it through comparison operators - but since we do not have a document according to the process - they do not work as usual. Please evaluate the possibility of improvement, if necessary - or help with the code.
there are also special variables for the amounts of incoming and outgoing payments sum_payment_sumout
sum_payment_sumin
why build a bike?
there are also special variables for the amounts of incoming and outgoing payments sum_payment_sumout
[file]19925[/file]
sum_payment_sumin
[file]19925[/file]
why build a bike?
[file]19925[/file]
Leave a message in this thread and the user's contacts will be shown to you
.dev
OneBox production wrote:
there are also special variables for the amounts of incoming and outgoing payments sum_payment_sumout
sum_payment_sumin
why build a bike?
it's specifically in the "correct column"
that is, if the amount is less than 0 - then to the debit column, if more than 0 - then to the credit.
Here the question is generally in conditional operators (branching). Can I use them in reports (document templates)
[quote]
[file]19925[/file]
.dev
[file]19925[/file]
OneBox production wrote:
[file]19925[/file]
there are also special variables for the amounts of incoming and outgoing payments sum_payment_sumout
[file]19925[/file]
sum_payment_sumin
[file]19925[/file]
why build a bike?
[file]19925[/file]
[/quote]
[file]19925[/file]
it's specifically in the "correct column"
[file]19925[/file]
that is, if the amount is less than 0 - then to the debit column, if more than 0 - then to the credit.
[file]19925[/file]
Here the question is generally in conditional operators (branching). Can I use them in reports (document templates)
[file]19925[/file]
Mazur Viktor Viktorovich SheBo wrote: Here the question is generally in conditional operators (branching). Is it possible to use them in reports (document templates)
you can, standard if else in smart work
[quote]
Mazur Viktor Viktorovich
SheBo wrote:
Here the question is generally in conditional operators (branching). Is it possible to use them in reports (document templates)
[/quote]
you can, standard if else in smart work
Mazur Viktor Viktorovich SheBo wrote: Here the question is generally in conditional operators (branching). Is it possible to use them in reports (document templates)
you can, standard if else in smart work
[.dev #82] can you please elaborate, smarty - how is it? I've tried various ways - no luck so far. I tried, for example, as usual in the docks with variables from the list in the report: {|if $sum_ordersum > "142809.12"|} Inbound check {|if else $sum_ordersum == "142809.12"|} test </span> {|/if|}
[quote]
.dev
OneBox production wrote:
[quote]
Mazur Viktor Viktorovich
SheBo wrote:
Here the question is generally in conditional operators (branching). Is it possible to use them in reports (document templates)
[/quote]
you can, standard if else in smart work
[/quote]
[.dev #82] can you please elaborate, smarty - how is it? I've tried various ways - no luck so far.
I tried, for example, as usual in the docks with variables from the list in the report:
{|if $sum_ordersum > "142809.12"|} Inbound check {|if else $sum_ordersum == "142809.12"|} test </span> {|/if|}
Department of Care OneBox production wrote: {|if $sum_ordersum > "142809.12"|} Company management {|else|} test {|/if|}
does not work (( and tell me whether it is possible (and if possible, how exactly) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
[quote]
Department of Care
OneBox production wrote:
{|if $sum_ordersum > "142809.12"|} Company management {|else|} test {|/if|}
[/quote]
does not work ((
and tell me whether it is possible (and if possible, how exactly) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
Care Department OneBox production wrote: {|if $sum_ordersum > "142809.12"|} Enterprise management {|else|} test {|/if|}
does not work (( and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
it means there is a mistake somewhere. Try contacting integrators, they will quickly set up the template you need https://1b.app/en/partner/onebox-corp/
Valeria wrote: and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
logical constructions must work with all variables.
[quote]
Valeria wrote:
[quote]
Care Department
OneBox production wrote:
{|if $sum_ordersum > "142809.12"|} Enterprise management {|else|} test {|/if|}
[/quote]
does not work ((
and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
[/quote]
it means there is a mistake somewhere. Try contacting integrators, they will quickly set up the template you need https://1b.app/en/partner/onebox-corp/
[quote]
Valeria wrote:
and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
[/quote]
logical constructions must work with all variables.
Care Department OneBox production wrote: {|if $sum_ordersum > "142809.12"|} Enterprise management {|else|} test {|/if|}
does not work (( and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
it means there is a mistake somewhere. Try contacting integrators, they will quickly set up the template you need https://1b.app/en/partner/onebox-corp/
Valeria wrote: and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
logical constructions must work with all variables.
how to write a function for row? {|if $row:payment_cdate == "01.01.2023"|} To the management of the enterprise {|else|} test {|/if|} does not work ...
[quote]
Care Department
OneBox production wrote:
[quote]
Valeria wrote:
[quote]
Care Department
OneBox production wrote:
{|if $sum_ordersum > "142809.12"|} Enterprise management {|else|} test {|/if|}
[/quote]
does not work ((
and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
[/quote]
it means there is a mistake somewhere. Try contacting integrators, they will quickly set up the template you need https://1b.app/en/partner/onebox-corp/
[quote]
Valeria wrote:
and tell me if it is possible (and if possible, how) to use if else conditions with row , for example, process products and payments (row:payment_cdate)?
[/quote]
logical constructions must work with all variables.
[/quote]
how to write a function for row? {|if $row:payment_cdate == "01.01.2023"|} To the management of the enterprise {|else|} test {|/if|} does not work ...
not, litter - through row ifat it is impossible. But you can sort out the products from the productsArray array on smarty and make up the plate yourself (as with basketsArray in sending messages, you should know). Then there already through $e.xxx any condition can be registered. The downside of this is that you need to make up for the plate yourself and insert a new tr with td for each product
not, litter - through row ifat it is impossible. But you can sort out the products from the productsArray array on smarty and make up the plate yourself (as with basketsArray in sending messages, you should know). Then there already through $e.xxx any condition can be registered. The downside of this is that you need to make up for the plate yourself and insert a new tr with td for each product
Leave a message in this thread and the user's contacts will be shown to you
Care Department OneBox production wrote: not, litter - through row ifat it is impossible. But you can sort out the products from the productsArray array on smarty and make up the plate yourself (as with basketsArray in sending messages, you should know). Then there already through $e.xxx any condition can be registered. The downside of this is that you need to make up for the plate yourself and insert a new tr with td for each product
GREAT! Thank you very much, I will try!
[quote]
Care Department
OneBox production wrote:
not, litter - through row ifat it is impossible. But you can sort out the products from the productsArray array on smarty and make up the plate yourself (as with basketsArray in sending messages, you should know). Then there already through $e.xxx any condition can be registered. The downside of this is that you need to make up for the plate yourself and insert a new tr with td for each product
[/quote]
GREAT! Thank you very much, I will try!
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
Donate
You don't have enough funds in your account Top up