microsoft / ALAppExtensions

Repository for collaboration on Microsoft AL application add-on and localization extensions for Microsoft Dynamics 365 Business Central.
MIT License
768 stars 610 forks source link

[Event Requests] Codeunit 398 "Sales Tax Calculate" - AddSalesLineOnAfterSetSalesTaxAmountLineFilter(), AddSalesLineOnBeforeModifySalesTaxAmountLine(), OnEndSalesTaxCalculationBeforeDeleteTaxAmountLine(), OnEndSalesTaxCalculationOnBeforeSalesTaxAmountLine2Copy() and OnDistTaxOverSalesLinesAfterSetSalesLineFilters() #26925

Open Anirudh053 opened 1 month ago

Anirudh053 commented 1 month ago

Describe the request

Hi Team,

In Codeunit 398 "Sales Tax Calculate", Please provide the possibility to have five integration events in AddSalesLine() and EndSalesTaxCalculation() and DistTaxOverSalesLines() procedures respectively.

In AddSalesLine() Procedure after 725 Line in Below image,

image

image

Integration Event [IntegrationEvent(false, false)] local procedure AddSalesLineOnAfterSetSalesTaxAmountLineFilter(var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; SalesLine: Record "Sales Line"; TaxAreaLine: Record "Tax Area Line"); begin end;

In AddSalesLine() Procedure after 752 Line in Below image,

image

image

Integration Event [IntegrationEvent(false, false)] local procedure AddSalesLineOnBeforeModifySalesTaxAmountLine(var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; SalesLine: Record "Sales Line"); begin end;

In Procedure EndSalesTaxCalculation() after 1159 Line in below image.

image

image

Integration Event [IntegrationEvent(false, false)] local procedure EndSalesTaxCalculationBeforeDeleteTaxAmountLine(var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; Date: Date; var IsHandled: Boolean); begin end;

In Procedure EndSalesTaxCalculation() after 1255 Line in below image.

image

image

Integration Event [IntegrationEvent(false, false)] local procedure OnEndSalesTaxCalculationOnBeforeSalesTaxAmountLine2Copy(var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary; var TaxBaseAmt: Decimal; var AddedTaxAmount: Decimal; var TotalTaxAmount: Decimal); begin end;

In Procedure DistTaxOverSalesLines() after 1462 Line in below image.

image

image

Integration Event [IntegrationEvent(false, false)] local procedure DistTaxOverSalesLinesAfterSetSalesLineFilters(var SalesLine: Record "Sales Line"; var TempSalesTaxAmountLine: Record "Sales Tax Amount Line" temporary); begin end;

Additional context

We need these events to handle the custom code for various clients related to implementation of Excise Tax. Internal work item: AB#543002

azure-boards[bot] commented 1 month ago

✅ Successfully linked to Azure Boards work item(s):