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 Request Codeunit 80 sales Post #26911

Closed gopubala closed 1 month ago

gopubala commented 1 month ago

Describe the request

Hello, in Codeunit 80 "Sales.-Post" in procedure "FinalizePosting", we need a new event with parameter SalesHeader,TempDropShptPostBuffer image

could you please add the parameter TempSalesLineForSalesTax for this Event OnAfterDivideAmount() image

Another Event is Required under function AddSalesTaxLineToSalesTaxCalc() before insert to allow Custom code Like OnBeforeAddSalesTaxLineToSalesTaxCalcinsert(salesheader ,salesLIne) image

Need New event under function SetTaxType() Like OnAfterSetTaxType(salesLine) image

Additional context

Please provide the New events Internal work item: AB#542672

azure-boards[bot] commented 1 month ago

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

AleksandricMarko commented 1 month ago

Hello @gopubala

Please define full structure of the needed events (parameters, using VAR, etc...) and also short explanation what is the purpose of the desired events.

gopubala commented 1 month ago
  1. the purpose of the add parameter as TempSalesLineForSalesTax, we want to calculation for custom fields

[IntegrationEvent(false, false)] local procedure OnAfterDivideAmount(var SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"; QtyType: Option General,Invoicing,Shipping; SalesLineQty: Decimal; var TempVATAmountLine: Record "VAT Amount Line" temporary; var TempVATAmountLineRemainder: Record "VAT Amount Line" temporary; TempSalesLineForSalesTax: Record "Sales Line") begin end;

  1. Event is Required under function AddSalesTaxLineToSalesTaxCalc() before insert to allow Custom field data into temp table. [IntegrationEvent(false, false)] local procedure OnBeforeTempSalesLineForSalesTaxInsert(SalesHeader : Record "Sales Header";SalesLine : Record "Sales Line") begin end;

  2. Need New event under function SetTaxType()- we want to allow Sales Line data to buffer table. Note: Event is required before Salesline.Next() =0; [IntegrationEvent(false, false)] local procedure OnAfterSetTaxType(SalesLine : Record "Sales Line") begin end;

JesperSchulz commented 1 month ago

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

Build ID: 22697.