Dynamics 365 Business Central: Use a default quantity of 1 for all types on documents – Customization
Business Central by default sets quantity to 1 only for Item and G/L Account line types on sales and purchase documents, but not for Resource, Fixed Asset, or Charge types. This post shows how to customize the system to apply default quantity of 1 to other document line types using table extensions and event subscribers.

post Dynamics 365 Lab
"As of now, the default quantity setting of 1 is only valid for Item type and G/L Account type."
Key points
- Default quantity of 1 is currently limited to Item type in sales documents and G/L Account type in both sales and purchase documents
- Resource, Fixed Asset, and Charge (Item) line types lack this default quantity feature out of the box
- Two customization approaches are provided: using setup table fields with event handlers, or using field extension triggers for simpler one-time implementations
- The solution uses event subscribers like OnAfterAssignResourceValues and OnAfterAssignFixedAssetValues to apply default quantities
Quotes
- “As of now, the default quantity setting of 1 is only valid for Item type and G/L Account type.” (This explains the core limitation that drives the need for customization across different line types.)
- “So if you need other types to be available as well, this will need to be customized.” (Clarifies that extending default quantity to Resource, Fixed Asset, and other types requires custom development.)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- table 37 “Sales Line”
- table 311 “Sales & Receivables Setup”
- table 39 “Purchase Line”
- table 312 “Purchases & Payables Setup”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- BC Friday Tips #56 Understand Missing Fields in Copy Documents — possibly related: both name Table 37 “Sales Line”
- BC Friday Tips #84 Why Is Your Item Missing from the Sales Line Lookup? — possibly related: both name Table 37 “Sales Line”
- Business Central Development Serie - Part 2b: AI for BC Development — The Knowledge Gap That Ships to Production — possibly related: both name Table 37 “Sales Line”
- Document amount on Purchase Invoice Header — possibly related: both name Table 312 “Purchases & Payables Setup”
- Dynamics 365 Business Central: Add a Scan Barcode action and scan multiple/Continious scanning (Invoke barcode scanning programmatically from AL) — possibly related: both name Table 37 “Sales Line”
- Dynamics 365 Business Central: Copy Sales and Purchase Line Descriptions (Type G/L Account) to G/L Entries — possibly related: both name Table 312 “Purchases & Payables Setup”
- Dynamics 365 Business Central: Entering Quantities/Amounts by Calculation and Negative Numbers — possibly related: both name Table 37 “Sales Line”
- Dynamics 365 Business Central: How to check whether External Document No./Vendor Invoice No. are unique or duplicated – Customization — possibly related: both name Table 312 “Purchases & Payables Setup”
- Dynamics 365 Business Central: How to flow/pass custom field values from Sales Order to Production Order — possibly related: both name Table 37 “Sales Line”
- Dynamics 365 Business Central: How to note the records that the user has selected on the Subpage/Lines (Page.SetSelectionFilter in part) — possibly related: both name Table 37 “Sales Line”
Context
- Features: Default Quantity setting, Line type handling, Document line defaults
- Versions: BC25
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.