Skip to content
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,15 @@ codeunit 47023 "SL Helper Functions"
internal procedure CreatePostMigrationData(): Boolean
var
SLCompanyAdditionalSettings: Record "SL Company Additional Settings";
SLPopulateVendor1099Data: Codeunit "SL Populate Vendor 1099 Data";
begin
if (SLCompanyAdditionalSettings.GetMigrateCurrent1099YearEnabled()) or (SLCompanyAdditionalSettings.GetMigrateNext1099YearEnabled()) then begin
SetupIRSFormsFeatureIfNeeded();
BindSubscription(SLPopulateVendor1099Data);
SLPopulateVendor1099Data.Run();
UnbindSubscription(SLPopulateVendor1099Data);
end;

if SLCompanyAdditionalSettings.GetProjectModuleEnabled() then
if not ProjectDataCreated() then
CreateProjectData();
Expand Down Expand Up @@ -1176,6 +1184,31 @@ codeunit 47023 "SL Helper Functions"
SLConfiguration.Modify();
end;

internal procedure SetupIRSFormsFeatureIfNeeded()
var
SLCompanyAdditionalSettings: Record "SL Company Additional Settings";
SLIRSFormData: Codeunit "SL IRS Form Data";
SLVendor1099MappingHelpers: Codeunit "SL Vendor 1099 Mapping Helpers";
ReportingYear: Integer;
Open1099Year: Boolean;
begin
SLCompanyAdditionalSettings.GetSingleInstance();
if SLCompanyAdditionalSettings.GetMigrateCurrent1099YearEnabled() then begin
ReportingYear := SLVendor1099MappingHelpers.GetCurrent1099YearFromSLAPSetup();
Open1099Year := SLVendor1099MappingHelpers.GetCurrent1099YearOpenStatus();
if ReportingYear <> 0 then
if Open1099Year then
SLIRSFormData.CreateIRSFormsReportingPeriodIfNeeded(ReportingYear);
end;
if SLCompanyAdditionalSettings.GetMigrateNext1099YearEnabled() then begin
ReportingYear := SLVendor1099MappingHelpers.GetNext1099YearFromSLAPSetup();
Open1099Year := SLVendor1099MappingHelpers.GetNext1099YearOpenStatus();
if ReportingYear <> 0 then
if Open1099Year then
SLIRSFormData.CreateIRSFormsReportingPeriodIfNeeded(ReportingYear);
end;
end;

[IntegrationEvent(false, false)]
internal procedure OnSkipPostingGLAccounts(var SkipPosting: Boolean)
begin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ permissionsetextension 47002 "SLD365 BASIC ISV - MSL" extends "D365 BASIC ISV"
tabledata "SL SOShipLine" = RIMD,
tabledata "SL SOShipLot" = RIMD,
tabledata "SL SOType" = RIMD,
tabledata "SL Supported Tax Year" = RIMD,
tabledata "SL Terms" = RIMD,
tabledata "SL Upgrade Settings" = RIMD,
tabledata "SL VendClass" = RIMD,
tabledata "SL Vendor" = RIMD,
tabledata "SL 1099 Box Mapping" = RIMD,
tabledata "SL 1099 Migration Log" = RIMD,
tabledata SLGLAcctBalByPeriod = RIMD,
tabledata "SL Period List Work Table" = RIMD;
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ permissionsetextension 47001 "SLD365 BASIC - MSL" extends "D365 BASIC"
tabledata "SL SOShipLine" = RIMD,
tabledata "SL SOShipLot" = RIMD,
tabledata "SL SOType" = RIMD,
tabledata "SL Supported Tax Year" = RIMD,
tabledata "SL Terms" = RIMD,
tabledata "SL Upgrade Settings" = RIMD,
tabledata "SL VendClass" = RIMD,
tabledata "SL Vendor" = RIMD,
tabledata "SL 1099 Box Mapping" = RIMD,
tabledata "SL 1099 Migration Log" = RIMD,
tabledata SLGLAcctBalByPeriod = RIMD,
tabledata "SL Period List Work Table" = RIMD;
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ permissionsetextension 47003 "SLD365 TEAM MEMBER - MSL" extends "D365 TEAM MEMBE
tabledata "SL SOShipLine" = RIMD,
tabledata "SL SOShipLot" = RIMD,
tabledata "SL SOType" = RIMD,
tabledata "SL Supported Tax Year" = RIMD,
tabledata "SL Terms" = RIMD,
tabledata "SL Upgrade Settings" = RIMD,
tabledata "SL VendClass" = RIMD,
tabledata "SL Vendor" = RIMD,
tabledata "SL 1099 Box Mapping" = RIMD,
tabledata "SL 1099 Migration Log" = RIMD,
tabledata SLGLAcctBalByPeriod = RIMD,
tabledata "SL Period List Work Table" = RIMD;
}
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,13 @@ permissionsetextension 47000 "SLINTELLIGENT CLOUD - MSL" extends "INTELLIGENT CL
tabledata "SL SOShipLine" = RIMD,
tabledata "SL SOShipLot" = RIMD,
tabledata "SL SOType" = RIMD,
tabledata "SL Supported Tax Year" = RIMD,
tabledata "SL Terms" = RIMD,
tabledata "SL Upgrade Settings" = RIMD,
tabledata "SL VendClass" = RIMD,
tabledata "SL Vendor" = RIMD,
tabledata "SL 1099 Box Mapping" = RIMD,
tabledata "SL 1099 Migration Log" = RIMD,
tabledata SLGLAcctBalByPeriod = RIMD,
tabledata "SL Period List Work Table" = RIMD;
}
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,12 @@ permissionset 47004 "SL Migration - Edit"
tabledata "SL SOShipLine" = IMD,
tabledata "SL SOShipLot" = IMD,
tabledata "SL SOType" = IMD,
tabledata "SL Supported Tax Year" = IMD,
tabledata "SL Terms" = IMD,
tabledata "SL Upgrade Settings" = IMD,
tabledata "SL VendClass" = IMD,
tabledata "SL Vendor" = IMD,
tabledata "SL 1099 Box Mapping" = IMD,
tabledata "SL 1099 Migration Log" = IMD,
tabledata SLGLAcctBalByPeriod = IMD;
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,13 @@ permissionset 47005 "SL Migration-Objects"
table "SL SOShipLine" = X,
table "SL SOShipLot" = X,
table "SL SOType" = X,
table "SL Supported Tax Year" = X,
table "SL Terms" = X,
table "SL Upgrade Settings" = X,
table "SL VendClass" = X,
table "SL Vendor" = X,
table "SL 1099 Box Mapping" = X,
table "SL 1099 Migration Log" = X,
table SLGLAcctBalByPeriod = X,
codeunit "SL Account Migrator" = X,
codeunit "SL Cloud Migration" = X,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,12 @@ permissionset 47006 "SL Migration - Read"
tabledata "SL SOShipLine" = R,
tabledata "SL SOShipLot" = R,
tabledata "SL SOType" = R,
tabledata "SL Supported Tax Year" = R,
tabledata "SL Terms" = R,
tabledata "SL Upgrade Settings" = R,
tabledata "SL VendClass" = R,
tabledata "SL Vendor" = R,
tabledata "SL 1099 Box Mapping" = R,
tabledata "SL 1099 Migration Log" = R,
tabledata SLGLAcctBalByPeriod = R;
}
Loading
Loading