#9947 Allow long localized sales and purchase line type captions
Sales and purchase document subforms no longer fail when a localized line type caption is longer than 20 characters, such as the French allocation account caption. A new FormatTypeAsText() returning Text[30] replaces FormatType(): Text[20], which stays as an obsolete wrapper.
- 120files
- 94AL files
- 12objects
Pull request · merged into main (BC30) on 2026-08-13 by djukicmilica · 120 files (+1944 -329), 94 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Added FormatTypeAsText() method returning Text[30] to sales, purchase, and standard line tables
- Updated UI and lookup paths to use the new 30-character formatting method
- Preserved existing FormatType(): Text[20] and OnBeforeFormatType() as obsolete compatibility layers
- Introduced new Text[30] events for subscribers needing wider output capacity
- Added regression tests covering long localized captions and legacy event precedence
- Behaviour changes for users or extensions.
AL objects touched
- Table 39 “Purchase Line”, Base Application: modified
- Table 125 “Purch. Cr. Memo Line”, Base Application: modified
- Table 123 “Purch. Inv. Line”, Base Application: modified
- Table 37 “Sales Line”, Base Application: modified
- Table 115 “Sales Cr.Memo Line”, Base Application: modified
- Table 113 “Sales Invoice Line”, Base Application: modified
- Table 121 “Purch. Rcpt. Line”, Base Application: modified
- Table 111 “Sales Shipment Line”, Base Application: modified
- Page 508 “Blanket Sales Order Subform”, Base Application: modified
- Table 174 “Standard Purchase Line”, Base Application: modified
- Table 171 “Standard Sales Line”, Base Application: modified
- Table 1670 “Option Lookup Buffer”, Base Application: modified
src/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al: modified, not in the BC30 snapshotsrc/Layers/CH/BaseApp/Utilities/OptionLookupBuffer.Table.al: modified, not in the BC30 snapshotsrc/Layers/NA/BaseApp/Sales/Document/BlanketSalesOrderSubform.Page.al: modified, not in the BC30 snapshotsrc/Layers/NO/BaseApp/Sales/Document/BlanketSalesOrderSubform.Page.al: modified, not in the BC30 snapshot
Obsoletions
- Purchase Line: FormatType, replaced by FormatTypeAsText
- Sales Line: FormatType, replaced by FormatTypeAsText
Context
- Work items: AB#645033
- Labels: Ownership: Needs Review, Team: Other
- Systems: sales, purchasing, platform
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).