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

Prepayment post invoice

(1) ShareShare
ReportReport
Posted on by 6
Dear all,
 
I have created a sales order with prepayment. The prepayment has been posted, paid and sales order has been released and delivered. Then i would like to post the invoice, but then i got the following message:

"Quantity must not be less than 0 in Sales Line" 
 
Could you please help me, thanks a lot.
I have the same question (0)
  • Suggested answer
    Umut Dogan Koc Profile Picture
    87 on at
    Hello,
     
    How did you deliver the order? Did you "Ship" only or "Ship&Invoice" ? Main invoice should already being posted if "Ship&Invoice" selected as posting option. If only shipped, you can crate a new sales invoice and use "get shipment lines function".
  • MS-28080759-0 Profile Picture
    6 on at
     Thanks for the reply. I did only "ship" and then when I try to invoice, the error message comes up
  • Suggested answer
    Jun Wang Profile Picture
    8,210 Moderator on at
    you need to check the qty to invoice field on your sales order. It is possible this sales order has been shipped and invoiced by someone.
    You could take a look at the invoices from the sales order if this is the case. If not, you could fill out the qty on that field and post. 
  • Suggested answer
    Valentin Castravet Profile Picture
    32,208 Super User 2026 Season 1 on at
    Can you post a screenshot of the sales order line?
     
  • MS-28080759-0 Profile Picture
    6 on at
    Please see the below:
     
    The line no. for the item is 1000 
  • Ramiz Profile Picture
    597 on at
    Hi,

    I would suggest you to debug it.
  • Suggested answer
    Valentin Castravet Profile Picture
    32,208 Super User 2026 Season 1 on at
    What value do you have in the Quantity field? 
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    It looks like there might be a customization issue. 
    PS: Dynamics 365 Business Central: The difference between Record.Validate() Method and assignment statement
     
    Hope this can give you some hints.
    Thanks.
    ZHU

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 March 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,005 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,148 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans