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 @@ -501,7 +501,7 @@ codeunit 4018 "GP Customer Migrator"
DimSetID: Integer;
begin
if GPAccount."Standard Sales Code" = '' then begin
GPAccount."Standard Sales Code" := CopyStr(NoSeries.GetNextNo(NoSeriesStandardSalesCodeTok), 1, MaxStrLen(GPAccount."Standard Sales Code"));
GPAccount."Standard Sales Code" := CopyStr(NoSeries.GetNextNo(NoSeriesStandardSalesCodeTok, Today()), 1, MaxStrLen(GPAccount."Standard Sales Code"));

StandardSalesCode.Validate("Code", GPAccount."Standard Sales Code");
StandardSalesCode.Validate(Description, CopyStr(HelperFunctions.GenerateStandardCodeDescriptionFromAccount(GPAccount), 1, MaxStrLen(StandardSalesCode.Description)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ codeunit 4037 "Helper Functions"

NoSeriesLine.Validate("Series Code", NoSeriesCode);
NoSeriesLine.Validate("Starting No.", StartingNo);
NoSeriesLine.Validate("Starting Date", Today());
NoSeriesLine.Validate("Starting Date", 0D);
NoSeriesLine.Validate("Increment-by No.", 1);
NoSeriesLine.Validate(Implementation, "No. Series Implementation"::Normal);
NoSeriesLine.Insert(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ codeunit 4022 "GP Vendor Migrator"
DimSetID: Integer;
begin
if GPAccount."Standard Purchase Code" = '' then begin
GPAccount."Standard Purchase Code" := CopyStr(NoSeries.GetNextNo(NoSeriesStandardPurchaseCodeTok), 1, MaxStrLen(GPAccount."Standard Purchase Code"));
GPAccount."Standard Purchase Code" := CopyStr(NoSeries.GetNextNo(NoSeriesStandardPurchaseCodeTok, Today()), 1, MaxStrLen(GPAccount."Standard Purchase Code"));

StandardPurchaseCode.Validate("Code", GPAccount."Standard Purchase Code");
StandardPurchaseCode.Validate(Description, CopyStr(HelperFunctions.GenerateStandardCodeDescriptionFromAccount(GPAccount), 1, MaxStrLen(StandardPurchaseCode.Description)));
Expand Down
Loading