Unable to fetch purchase invoice details

Markandey_PandeyMarkandey_Pandey Member Posts: 178
Hi all,

I am customizing the "Transfer Receipt" Report to have some details from "Purchase Invoice Header" table, here most of the fields are retrieved from the table to the report but "Anount To Vendor" vale is not comming.


//Fetching Invoice Details
Transfer Receipt No. (this is a field i have added to Purch. Inv. Header" atble.
GIN->Text
GateEntryNo->Text
GateEntryNo->Text
VendorInvNo->Text
InvoiceAmt->Decimal

following is the code i have written under Transfer Receipt Header - OnAfterGetRecord()

PurchaseInvHeader.RESET;
PurchaseInvHeader.SETRANGE("Transfer Receipt No.","Transfer Receipt Header"."No.");
IF PurchaseInvHeader.FIND('-') THEN
BEGIN
GIN:=PurchaseInvHeader."Your Reference";
GateEntryNo:=PurchaseInvHeader."Gate Entry No";
GateEntryDate:=PurchaseInvHeader."Gate Entry Date";
VendorInvNo:=PurchaseInvHeader."Vendor Invoice No.";
InvoiceAmt:=PurchaseInvHeader."Amount to Vendor";
END;

all values are comming except VendorInvNo.
VendorInvNo is having 0 always.

can anybody guide me why "Amount To Vendor" value is not retrieved.
Markandey Pandey

Comments

  • krikikriki Member, Moderator Posts: 9,110
    [Topic moved from 'General Chat' forum to 'NAV/Navision' forum]
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ssinglassingla Member Posts: 2,973
    Use Calcfield before assigning value of amount to vendor.
    CA Sandeep Singla
    http://ssdynamics.co.in
  • Markandey_PandeyMarkandey_Pandey Member Posts: 178
    ssingla wrote:
    Use Calcfield before assigning value of amount to vendor.
    thanx
    Markandey Pandey
  • ssinglassingla Member Posts: 2,973
    Just out of curiosity : Do u have a senior backing you up or you are on your own???
    CA Sandeep Singla
    http://ssdynamics.co.in
  • Markandey_PandeyMarkandey_Pandey Member Posts: 178
    ssingla wrote:
    Just out of curiosity : Do u have a senior backing you up or you are on your own???

    Yes, on our own, although i had gone for a online technical training, that was not good enough and Application Designer Guide is also having basics.
    We are in touch with other partner (they have done more than 10 implementation).
    Markandey Pandey
Sign In or Register to comment.