...
DocDim.INSERT;
UNTIL FromDocDim.NEXT = 0;
END;
END;
// Delete the following line.
BEGIN
END.
}
}
...
DocDim.INSERT;
UNTIL FromDocDim.NEXT = 0;
END;
END;
// Add the following lines.
PROCEDURE IncludeLine@25(Type@1000 : ' ,G/L Account,Item,Resource';No@1001 : Code[20]) : Boolean;
BEGIN
CASE Type OF
Type::"G/L Account":
EXIT(IncludeGLAccount(No));
Type::Item:
EXIT(IncludeItem(No));
Type::Resource:
EXIT(IncludeRes(No));
END;
EXIT(TRUE);
END;
PROCEDURE IncludeGLAccount@26(No@1000 : Code[20]) : Boolean;
VAR
GLAccount@1001 : Record 15;
BEGIN
IF VATRateChangeSetup."Account Filter" = '' THEN
EXIT(TRUE);
GLAccount."No." := No;
GLAccount.SETFILTER("No.",VATRateChangeSetup."Account Filter");
EXIT(GLAccount.FIND);
END;
ROCEDURE IncludeItem@28(No@1000 : Code[20]) : Boolean;
VAR
Item@1001 : Record 27;
BEGIN
IF VATRateChangeSetup."Item Filter" = '' THEN
EXIT(TRUE);
Item."No." := No;
Item.SETFILTER("No.",VATRateChangeSetup."Item Filter");
EXIT(Item.FIND);
END;
PROCEDURE IncludeRes@29(No@1000 : Code[20]) : Boolean;
VAR
Res@1001 : Record 156;
BEGIN
IF VATRateChangeSetup."Resource Filter" = '' THEN
EXIT(TRUE);
Res."No." := No;
Res.SETFILTER("No.",VATRateChangeSetup."Resource Filter");
EXIT(Res.FIND);
END;
PROCEDURE IncludeServiceLine@30(Type@1000 : ' ,Item,Resource,Cost,G/L Account';No@1001 : Code[20]) : Boolean;
BEGIN
CASE Type OF
Type::"G/L Account":
EXIT(IncludeGLAccount(No));
Type::Item:
EXIT(IncludeItem(No));
Type::Resource:
EXIT(IncludeRes(No));
END;
EXIT(TRUE);
END;
BEGIN
{
END.
}
}