Options

Get the balance with CHANGECOMPANY Function

ams79ams79 Member Posts: 39
Hello,

How can I Get the balance from a vendor with the CHANGECOMPANY function.

Thanks!!

Comments

  • Options
    krikikriki Member, Moderator Posts: 9,090
    You cannot work with the flowfields of the Vendor-card, because they still refer to your current company. You have to do this:
    recDetailedVendorLedgEntry.CHANGECOMPANY('Some Company'):
    recDetailedVendorLedgEntry.RESET;
    recDetailedVendorLedgEntry.SETCURRENTKEY("Vendor No.");
    recDetailedVendorLedgEntry.SETRANGE("Vendor No.",codMyVendorNo);
    recDetailedVendorLedgEntry.CALCSUMS("Amount (LCY)");
    MESSAGE('Amount=%1',recDetailedVendorLedgEntry."Amount (LCY)");
    
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.