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

Community site session details

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

Re: Posting of Sales Order with Zero Value

(7) ShareShare
ReportReport
Posted on by 8
I have three line items in my Sales Order.
For first line item have a Quantity as 10 Nos and Unit Price = 0.
For remaining two lines I have Quantity = 0 and Unit Price = 0.
 
Is it possible to post this as Sales Order ? 
 
I tried, system allows us to post the Order. Why should system needs to allow this ? That has to check all line items whether Quantity or Amount has filled or not right ?
 
Can anyone please elaborate this .
I have the same question (0)
  • Suggested answer
    Abdel DAHMANI Profile Picture
    75 on at
    Re: Posting of Sales Order with Zero Value

    In Dynamics 365 Business Central, when you post a Sales Order, the system typically checks line totals, not necessarily each individual line for both quantity and unit price. Here’s what’s happening in your scenario:
    Your Example
    Line 1: Quantity = 10, Unit Price = 0 → Line Total = 0 × 10 = 0
    Line 2 & 3: Quantity = 0, Unit Price = 0 → Line Total = 0
    Business Central allows posting as long as the overall document total is valid, even if some or all lines are 0.
    The system does not enforce that every line must have a non-zero quantity or unit price.
    This is because there are valid business scenarios for zero-price or zero-quantity lines:
         Free items or samples – you may want to ship items for free.
        Placeholder lines – for services, optional items, or commitments.
        Credit or adjustment lines – sometimes a line may have a zero value intentionally.

    If you need stricter validation (e.g., no line can have quantity = 0 and unit price = 0), this can be enforced with:
    ===> Custom code or extension using AL code.
    ===> Pre- or post-validation via workflow or custom triggers.

  • Suggested answer
    Aman Kakkar Profile Picture
    1,417 on at
    Re: Posting of Sales Order with Zero Value
    Hi,
     
    According to me, it’s intentional:
     
    • Sometimes you might want to include items for reference, but not yet ship them.
    • Or, in real business cases, free samples or bonus items (Quantity > 0, Unit Price = 0) are valid.
     

    Hence, the system doesn’t block the posting.

     

    Do mark it as verified if this helps.

    Aman K

  • Suggested answer
    Valentin Castravet Profile Picture
    30,647 Super User 2025 Season 2 on at
    Re: Posting of Sales Order with Zero Value
    There are several reasons the system allows posting zero-dollar orders, for example, to document warranty replacements or provide free samples and promotions without affecting revenue.
     
    Likewise for zero quantity orders, there are several scenarios where it would be required. For this reason, the system lets you do it.
     
  • Suggested answer
    YUN ZHU Profile Picture
    94,353 Super User 2025 Season 2 on at
    Re: Posting of Sales Order with Zero Value
    As long as the total amount is not negative, the transaction can proceed.
    I mentioned this in the post below.
    Dynamics 365 Business Central: Move Negative Lines feature (Create a replacement order in return process)
     
    Thanks
    ZHU
  • Suggested answer
    OussamaSabbouh Profile Picture
    2,671 on at
    Re: Posting of Sales Order with Zero Value
    Hello,

    Business Central allows posting sales orders with zero price or zero quantity lines because it validates only that at least one line has a value to post.
    Zero-value or zero-quantity lines are treated as non-posting informational lines, often used for free items, notes, or internal tracking.
    The system ignores those lines during posting but keeps them for reference.

    Regards,
    Oussama
  • Suggested answer
    Jeffrey Bulanadi Profile Picture
    8,748 on at
    Re: Posting of Sales Order with Zero Value

    Hi,

    BC’s posting logic is intentionally flexible to support real-world scenarios like promotional items, free samples, or service placeholders. The system does not enforce a strict validation that all lines must have both quantity and value.

    Here’s a solid option.
     

    1. Posting Criteria

    • BC allows posting of a Sales Order as long as at least one line has a valid quantity and the document passes standard validations (e.g., customer, posting date, item availability).
    • Lines with zero quantity or zero unit price are permitted and will be included in the posted document unless filtered out.

    2. Why This Is Allowed

    • Many businesses use zero-value lines for:
      • Free samples
      • Warranty replacements
      • Internal transfers
      • Placeholder lines for future fulfillment
    • The system supports these use cases without requiring workarounds.

    3. Impact on Posting

    • Lines with zero quantity will not affect inventory or financials.
    • Lines with zero unit price will post with zero revenue but may still affect inventory if quantity is present.
    • These lines appear in the posted invoice unless filtered out via customization.

    4. Optional Controls

    • If you want to restrict this behavior, you can:
      • Add custom validation in the OnBeforePostSalesOrder event
      • Use a page extension to warn users when posting zero-value lines
      • Customize the report layout to hide zero quantity lines, as supported in BC25.0

    5. Related System Behavior

    • The Unit Cost field is not updated if the new cost is zero and the current cost is greater than zero
    • Some localizations or extensions may block zero-value postings, but base BC allows it by design


    Helpful Reference
    About Unit Cost Calculation – Microsoft Learn
    Hide Lines with Zero Quantity in Reports – YUN ZHU

    If you find this helpful, feel free to mark this as the suggested or verified answer.

    Cheers
    Jeffrey

  • Suggested answer
    Rishabh Kanaskar Profile Picture
    5,504 on at
    Re: Posting of Sales Order with Zero Value
    Hi,
     
    This is to support scenarios like free samples, zero-value deliveries, or placeholder orders.
     
    Thanks
    Rishabh
  • Suggested answer
    Jainam M. Kothari Profile Picture
    14,059 Super User 2025 Season 2 on at
    Re: Posting of Sales Order with Zero Value
    Hello,
     
    Business Central allows posting a Sales Order even if some lines have zero quantity and zero unit price because it supports flexible business scenarios like free items, informational lines, or planning entries.
     
    The system does not enforce strict validation on each line, leaving it to users or custom logic to ensure data accuracy.
     
    If stricter control is needed, it can be implemented through custom validations or workflows.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,137 Super User 2025 Season 2 on at
    Re: Posting of Sales Order with Zero Value
  • Suggested answer
    Pallavi Phade Profile Picture
    2,881 on at
    Re: Posting of Sales Order with Zero Value
     
    System allows posting of Sales order only if it has Quantity to be shipped  , invoiced . It will  show below error if there no quantity no value 
     
     
    In your case order got posted because there were other two lines which had value and quantity . And there were two lines which has no quantity no value 
     
    System has kept this provision because in case of bulk orders there are multiple shipments and in that case you can ship multiple set of lines different intervals . System allows blank quantity , zero amount only if there is something to post
     
    If you feel this helped , please mark as "Verified"
     
     
    Regards
    Pallavi Phade 
     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,901

#2
YUN ZHU Profile Picture

YUN ZHU 2,079 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,041

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans