ERROR? Actions: Publish document and Update documents in process - variables {sumwithoutdiscount}, {orderdiscountallsum}, {sumoutdiscountsum} are not working correctly
ERROR? Actions: Publish document and Update documents in process - variables {sumwithoutdiscount}, {orderdiscountallsum}, {sumoutdiscountsum} are not working correctly
Leave a message in this thread and the user's contacts will be shown to you
When we write out a new document, we can add products to it:
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
- or All;
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
- or Specified;
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
- or Unmarked.
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
We use the following variables for the amount per document:
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
Total without discount {sumwithoutdiscount}
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
Discount {orderdiscountallsum}
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
Total discount {sumoutdiscountsum}
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
But the problem is that when we check out (the Check Out Document action) and/or update a document (the Update Documents in Process action), these variables display TOTAL amounts for ALL documents in the process, not for those that are Marked or Unmarked.
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
That is, we have 5 products in the pipeline.
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
Set the settings to add only Specified to the document
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
Only 4 products were checked, for example
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
There is a problem, because the amounts are displayed for all five, and not for four products, as it should be.
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
What should I fix to get the correct result when I need to add only Marked or Unmarked products to the document?
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
[file]23844[/file]
[file]23845[/file]
[file]23846[/file]
[file]23847[/file]
[file]23848[/file]
[file]23849[/file]
When we write out a new document, we can add products to it:
- or All;
- or Specified;
- or Unmarked.
We use the following variables for the amount per document:
Total without discount {sumwithoutdiscount}
Discount {orderdiscountallsum}
Total discount {sumoutdiscountsum}
But the problem is that when we check out (the Check Out Document action) and/or update a document (the Update Documents in Process action), these variables display TOTAL amounts for ALL documents in the process, not for those that are Marked or Unmarked.
That is, we have 5 products in the pipeline.
Set the settings to add only Specified to the document
Only 4 products were checked, for example
There is a problem, because the amounts are displayed for all five, and not for four products, as it should be.
What should I fix to get the correct result when I need to add only Marked or Unmarked products to the document?
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