Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/Layers/APAC/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8138,7 +8138,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Tax Document Type" := BillToCustomer."Tax Document Type";
"WHT Business Posting Group" := BillToCustomer."WHT Business Posting Group";
Expand Down Expand Up @@ -10525,6 +10528,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/BE/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8001,7 +8001,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10386,6 +10389,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/CH/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8030,7 +8030,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10441,6 +10444,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/CZ/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -7971,7 +7971,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10356,6 +10359,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/ES/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8096,7 +8096,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10515,6 +10518,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/FI/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -7971,7 +7971,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10356,6 +10359,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/FR/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -7975,7 +7975,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10360,6 +10363,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/GB/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -7971,7 +7971,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10356,6 +10359,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/IT/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8712,7 +8712,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

if not CheckVATExemption() then
FieldError("Bill-to Customer No.");
Expand Down Expand Up @@ -11087,6 +11090,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/NA/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8245,7 +8245,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10670,6 +10673,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/NL/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -7995,7 +7995,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10382,6 +10385,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/NO/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8062,7 +8062,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10447,6 +10450,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
16 changes: 15 additions & 1 deletion src/Layers/RU/BaseApp/Sales/Document/SalesHeader.Table.al
Original file line number Diff line number Diff line change
Expand Up @@ -8480,7 +8480,10 @@ table 36 "Sales Header"
end else
"Payment Method Code" := BillToCustomer."Payment Method Code";

AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);
IsHandled := false;
OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, BillToCustomer, IsHandled);
if not IsHandled then
AltCustVATRegFacade.UpdateSetupOnBillToCustomerChangeInSalesHeader(Rec, xRec, BillToCustomer);

"Customer Posting Group" := BillToCustomer."Customer Posting Group";
"Currency Code" := BillToCustomer."Currency Code";
Expand Down Expand Up @@ -10875,6 +10878,17 @@ table 36 "Sales Header"
begin
end;

/// <summary>
/// Raised before updating the VAT registration setup on a bill-to customer change in the sales header.
/// </summary>
/// <param name="SalesHeader">The sales header record being modified.</param>
/// <param name="BillToCustomer">The bill-to customer record.</param>
/// <param name="IsHandled">Set to true to skip the standard update of the VAT registration setup.</param>
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateSetupOnBillToCustomerChangeInSalesHeader(var SalesHeader: Record "Sales Header"; BillToCustomer: Record Customer; var IsHandled: Boolean)
begin
end;

/// <summary>
/// Raised after extended text is transferred for sales line recreation.
/// </summary>
Expand Down
Loading
Loading