Announcements
Is it possible to have a field with the last purchase invoice number in a vendor's card? Moreover, if it is possible, is it updated automatically? If both are possible, how are these done please? Thanks in advance.
Hi
Nothing out of the box. You need development for that. But in Vendor card you have Buy From Vendor History and from there you can click on invoice and see the last number.
The requirement is not correct
Since there can be multiple open invoices for the vendor so which one should be shown?
Ideally, you should look at the balance field on the vendor card as shown below in step 1 and it would then open all the invoices as shown in step 2
Regards
Vinita
Hi, you can try to use flowfield.
For example,
tableextension 50100 MyExtension5 extends Vendor { fields { field(50100; "Last Purchase Invoice Number"; Code[20]) { FieldClass = FlowField; CalcFormula = max("Purch. Inv. Header"."No." where("Buy-from Vendor No." = field("No."))); } } } pageextension 50111 MyExtension5 extends "Vendor Card" { layout { addafter(Name) { field("Last Purchase Invoice Number"; Rec."Last Purchase Invoice Number") { ApplicationArea = All; } } } }
Click the Number.
Hope this will help.
Thanks.
ZHU
I was looking for more of a built in functionality as opposed to customizing it with code. Thanks anyways though!
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 647 Super User 2026 Season 1
Gerardo RenterÃa Ga... 447 Most Valuable Professional
YUN ZHU 366 Super User 2026 Season 1