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.
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.
I was looking for more of a built in functionality as opposed to customizing it with code. Thanks anyways though!
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
Hi
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
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.
Sohail Ahmed
2,655
Mansi Soni
1,574
YUN ZHU
1,453
Super User 2025 Season 1