web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Error : You cannot get lines until you have posted all related prepayment invoices.

(3) ShareShare
ReportReport
Posted on by 134
Hello, 
 
We're getting the following error upon getting receipt lines to invoice: 
 
 
You cannot get lines until you have posted all related prepayment invoices to mark the prepayment as paid. 
 
The prepayment invoice for that PO has already been closed. However, after checking the lines of the related PO, we saw that the Prepayment Line Amount has an extra .01 on it. 
 
 
We tried manually editing out the .01 but it comes back after releasing the PO.. 
 
How to fix this? We need to close the invoices for this PO. 
 
Is there a setting I should change? If this is for code customization, what should we modify?
 
Thank you!
 
 
I have the same question (0)
  • Suggested answer
    Sahan Hasitha Profile Picture
    2,683 on at
    hi
    ·  Check for existing Prepayment Invoices
    • Open the Sales Order or Purchase Order in question.
    • Go to Order → Prepayment → Prepayment Invoices.
    • See if any prepayment invoices exist.
    ·  Post or Apply the Prepayment
    • If the prepayment invoice hasn’t been posted → post it.
    • If it’s posted but not applied → register the payment (via Payment Journal or Cash Receipt Journal) and apply it to the prepayment invoice.

     
  • Suggested answer
    Rishabh Kanaskar Profile Picture
    6,225 Super User 2026 Season 1 on at

    This is a fairly common issue in Business Central when prepayment amounts and line amounts do not match exactly (even by 0.01).

    Here’s what’s happening and how to fix it:

    Why This Happens

    • The Prepayment Line Amount field is automatically calculated based on the order line and prepayment percentage.

    • If there is a rounding difference (like your case of 0.01), BC thinks there is still a small unpaid prepayment amount.

    • Because of this, when you try to “Get Receipt Lines” for invoicing, BC blocks you until all prepayment invoices are considered fully applied

    Recommended Fix (No Code Change)

    1. Open the Purchase Order.

    2. Cancel the Prepayment Invoice if it was posted but not applied correctly (if still possible).

    3. Manually adjust the Prepayment Line Amount to match the exact invoiced amount (remove rounding differences).

    4. Re-release the PO and re-post the prepayment invoice.

    5. Then try Get Receipt Lines again.

    > If you cannot cancel the prepayment invoice because it’s already applied/closed:

    • Post a Credit Memo for the prepayment invoice (to balance the prepayment amount)

    • Then re-apply the correct amount so the Prepayment Amount Deducted matches the Prepayment Line Amount exactly.

    If Manual Fix Doesn’t Work

    This is usually caused by the way BC calculates rounding at 5-decimal precision. If you face this often, you can:

    • Enable extended decimal precision on your General Ledger Setup for LCY Amount Rounding Precision (to reduce rounding mismatches).

    • Or have a developer modify the prepayment calculation in codeunit Purch.-Post Prepayments (codeunit 442) or Prepayment Mgt. (codeunit 441) to always round amounts consistently (but this requires AL development).

    Best Practice

    • Always ensure Prepayment % × Line Amount = Prepayment Amount to 2 decimals before posting.

    • Avoid manually changing prepayment amounts after posting prepayment invoices unless absolutely necessary.

    Thanks 

    Rishabh

  • Suggested answer
    Nimsara Jayathilaka. Profile Picture
    5,001 Super User 2026 Season 1 on at
    Hi
     
    The error occurs due to a tiny rounding difference in prepayment line amounts preventing Business Central from marking prepayments as fully posted and paid. To fix it, ensure all related prepayment invoices are posted and closed properly. Use prepayment credit memos to adjust and clear rounding discrepancies instead of manually editing amounts. Also, confirm that the "Check Prepmt. when Posting" setting is enabled in Sales & Receivables Setup for enforcement. If customizing, review the rounding logic in code to handle small rounding differences automatically. This approach resolves the issue and allows receipt lines to invoice correctly.
     
    Thanks
    Nimsara
  • CU27090506-0 Profile Picture
    134 on at
    Thank you all for the suggestions on how to proceed with this. 
     
    However, I have another issue. I'm also getting the same error but the prepayment line amount is greater than the prepayment amount invoice: 
     
     
    We're trying to manually edit the line amount to match the invoiced, but it keeps reverting to the same erroneous value.
     
    Thanks again!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,012 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 986 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 659 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans