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.
  • 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,222 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,808 Super User 2026 Season 2 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
    641 on at
    Hi,

    I would suggest you to debug it.
  • Suggested answer
    Valentin Castravet Profile Picture
    32,808 Super User 2026 Season 2 on at
    What value do you have in the Quantity field? 
  • Suggested answer
    YUN ZHU Profile Picture
    104,157 Super User 2026 Season 2 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 360 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 201 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans