web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Flow Field calculation

(0) ShareShare
ReportReport
Posted on by 161

Hi

I am looking to extend the purchase line with a flow field which will multiply the "qty to invoice" by the "Unit cost".

This is what I have so far. 

   field(50202; "lAmountToInvoice"; Decimal)

        {
            FieldClass = FlowField;
            CalcFormula = sum("Purchase Line"."Unit Cost (LCY)" where("Document No." = field("Document No."), "Qty. to Invoice" = filter(> 0)));
        }
This will just sum the unit cost but I want to multiply it by the qty to invoice.
Am I doing this the correct way is is there a better solution?
Thanks Neil.
I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,177 Moderator on at

    Do you want to see the information only on line level or only a sum om head level?

    Because you are using the Qty. to invoice it will be short lived data. So i am not convinced that a flow field is the best approach.

    Maybe a function that calculate this on the fly when requested is better.

  • Neil Phelan Profile Picture
    161 on at

    Inge

    Thanks for your response. The primary reason for this request is that I want  to add a running total to the purchase order screen when the qtytoinvoice is ticked.

    I have it that it sums the unit cost but I want it to multiple by the qty that I want to invoice. The porpose is for the acocunts team to reconcile the invoice they are posting matches correctly.  

    pastedimage1643892396104v1.png

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,177 Moderator on at

    But that information is already avalible if they click F7 on the purchase order / purchase invoice ?

    pastedimage1643892867205v1.png

  • Neil Phelan Profile Picture
    161 on at

    Thanks Inge, it's pity they hadn't been shown that previosuly and I didn't know it.

    Brilliant thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,948 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 936 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 616 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans