Hello there. It is possible to make some kind of advanced Calculation Formula on flowfield? I need to count on the Sales Order Line qty of invoiced Purchase Order Lines which are connected with this Sales Order by Special Order. If the purchase order line are really connected to sales order line, there is no problem to count it using CalcFormula*:
Sum("Purch. Inv. Line".Quantity WHERE (Purchase Order No=FIELD(Special Order Purchase No.),Line No.=FIELD(Line No.)))
* Purchase Order No in "Purch. Inv. Line" tab is another FlowField where there is a purchase order number getted form purchase invoice header tab
Now, the problem is when the sales order line is not connected with special order. The calculation filter is:
And the result is sum of all posted lines with line no 10000.
Is it possible to make depended calcformula on another field? Some kind of this: IF 'Special Order Purchase No' <> '' THEN ....
*This post is locked for comments
Damn, silly me... Adding another filter Specjail Order Purchase no <> '' resolved this issue...
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156