NAV 7 Suggest Vendor Payment

ara3nara3n Member Posts: 9,256
Hello In NAV 7. Suggest Vendor Payment does not show the Credit Memo lines.

In 2009
CLEAR(OldTempPaymentBuffer);
TempPaymentBuffer.SETCURRENTKEY("Document No.");
IF TempPaymentBuffer.FIND('-') THEN

in NAV 2013
CLEAR(OldTempPaymentBuffer);
TempPaymentBuffer.SETCURRENTKEY("Document No.");
TempPaymentBuffer.SETFILTER(
  "Vendor Ledg. Entry Doc. Type",'<>%1&<>%2&<>%3',TempPaymentBuffer."Vendor Ledg. Entry Doc. Type"::"Credit Memo",
  TempPaymentBuffer."Vendor Ledg. Entry Doc. Type"::Refund,TempPaymentBuffer."Vendor Ledg. Entry Doc. Type"::Payment);
IF TempPaymentBuffer.FIND('-') THEN

In above code it filters the them out. Any reason?
removing the filters fixes the issue but I'm wondering why they added this.
Thanks.
Ahmed Rashed Amini
Independent Consultant/Developer


blog: https://dynamicsuser.net/nav/b/ara3n

Comments

Sign In or Register to comment.