1b.app
Link copied -

ERROR? Actions: Publish document and Update documents in process - variables {sumwithoutdiscount}, {orderdiscountallsum}, {sumoutdiscountsum} are not working correctly

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?
Original question is available on version: ua Вячеслав Легеза

Answers:

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