Deposit-Post Codeunit Question

SavatageSavatage Member Posts: 7,142
edited 2008-05-06 in Navision Attain
What's so bad about partially applying a credit to an invoice?
Say and inv is $100 and they pay me $90. They have a $20 credit.
Why can't I apply the $20 along with the $90 and pay off the $100 inv. Then leave $10 open on the credit to be applied somewhere else?

Codeunit 14017060 Deposit-Post.
CheckDepAppLine(TransDepAppLine)
WITH TransDepAppLine DO BEGIN
  IF ("Document Type" = "Document Type"::"Credit Memo") AND
     ("Remaining Amount" <> 0) AND
     ("Account Type" = "Account Type"::Customer)
  THEN
    ERROR(
      'Credit Memo No. %1 in Deposit Line No. %2 is not completely applied.',
      "Document No.", TransDepAppLine."Deposit Line No.");

Anybody see problems commenting this out?

This is a long method- & i'm getting old
http://www.mibuso.com/forum/viewtopic.php?t=5319

Comments

  • SavatageSavatage Member Posts: 7,142
    Ok, that codeunit is from an early add-on called fast cash - I believe most of it's improvments were added into standard nav in 3.6 or 3.7.

    I commented out the code an all seems fine.

    Just curious now on any reason they would want to force you to use a complete amount of the credit while you can partially pay an inv without problem. any ideas?

    3 days till Jamaica \:D/
Sign In or Register to comment.