[Master] - Slice 626305: [Excise Tax][VENDOR] Improving Excise Duty Calculation - #11002
Conversation
|
The new action caption 'Generate Excise Tax Entries' reads as an imperative action caption, so it should use sentence case rather than title case. Use only the first word and proper nouns in uppercase for sentence-phrase action captions. Suggested fix (apply manually — could not be anchored as a one-click suggestion): Caption = 'Generate excise tax entries';Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.36.6 |
|
For each row returned by the Item Ledger Entry FindSet, the new event path re-resolves the effective rate from Excise Tax Rate. That adds repeated inner lookups against a persistent table on the hot path; cache the resolved rate per distinct source/category/date key or hoist the lookup out of the loop when the key is constant for the batch. Knowledge: Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why · AL review agent v1.36.6 |
Good Sense Reviewer - Round 1Recommendation: Request ChangesWhat this PR doesThis adds calculation types for excise duty, introduces a new rate table with item-category matching, and carries the new rate data through journal lines and transaction logs. The rate lookup order is mostly consistent with the feature goal, but the item-ledger flow can calculate the taxable amount before the final item-category rate is applied, so an ad valorem or hybrid rate can still be missed in an important path. Problem-solution fitFit: Partial The requested behavior is clear and the new objects cover specific, ad valorem, hybrid, item-specific, category, and fallback rates. The implementation does not fully fit the item-ledger scenario because the taxable amount decision can use a stale calculation type before the final rate is resolved. SuggestionsS1 (🔴 High): Set taxable amount after final rate lookup S2 (🟠 Moderate): Fixed asset test misses fixed asset rate Risk assessment and necessityRisk: The main risk is in excise journal lines created from item ledger entries, where a wrong taxable amount can produce a wrong financial tax amount. The new table and enum are public app data, but the change keeps the old setup behind an obsolete path and adds migration, so the compatibility risk is mainly in the calculation flow and upgrade data copy. Necessity: The feature is useful because excise duty needs both per-unit and percentage-based calculation and a more specific rate hierarchy. The scope is appropriate for the requested feature, but the item-ledger calculation path must be fixed before it is safe to merge.
|
Summary
This change improves the excise duty calculation flow by introducing explicit calculation-type handling and a dedicated excise tax rate table. It resolves the effective rate using the most specific applicable match, supports both specific-per-unit and ad valorem calculation types, and keeps the rate hierarchy consistent for item-level, category-level, and general fallback scenarios.
What this does
Work item
Notes