...
STaxApplBuffer[1].DELETEALL;
WITH DtldVendLedgEntry2 DO BEGIN
...
...
STaxApplBuffer[1].DELETEALL;
// Add the following line.
TempServiceTaxEntry3.DELETEALL;
// End of the line.
WITH DtldVendLedgEntry2 DO BEGIN
...
...
ServiceTaxMgt.UnApplyVendPmtEntries(STEntryDetail,NextTransactionNo);
// Delete the following line.
Sign := -1;
FillSvcTaxApplication4(STEntryDetail,Sign);
Sign := 1;
FillSvcTaxApplication4(STEntryDetail,Sign);
ServiceTaxEntry.GET(STEntryDetail."Service Tax Entry No.");
IF ServiceTaxEntry."Serv. Tax on Advance Payment" THEN BEGIN
// End of the line.
...
...
ServiceTaxMgt.UnApplyVendPmtEntries(STEntryDetail,NextTransactionNo);
// Add the following lines.
ServiceTaxEntry.GET(STEntryDetail."Service Tax Entry No.");
ServiceTaxSetup.RESET;
ServiceTaxSetup.SETRANGE(Code,STEntryDetail."Service Tax Group Code");
ServiceTaxSetup.SETRANGE("From Date",0D,STEntryDetail."Posting Date");
TempServiceTaxEntry3.TRANSFERFIELDS(ServiceTaxEntry);
IF NOT STEntryDetail.GTA THEN BEGIN
TempServiceTaxEntry3.INSERT;
Sign := -1;
END ELSE BEGIN
TempServiceTaxEntry3."G/L Account" := STEntryDetail."GL Account";
TempServiceTaxEntry3.INSERT;
Sign := 1;
END;
FillSvcTaxApplication4(STEntryDetail,Sign);
STEntryDetail2 := STEntryDetail;
IF NOT STEntryDetail.GTA THEN
Sign := 1
ELSE BEGIN
IF ServiceTaxSetup.FINDLAST THEN
STEntryDetail2."GL Account" := ServiceTaxSetup."Payables Account (Interim)";
Sign := -1;
END;
FillSvcTaxApplication4(STEntryDetail2,Sign);
IF ServiceTaxEntry."Serv. Tax on Advance Payment" THEN BEGIN
// End of the lines.
...
...
ServiceTaxEntry."From Excise" := STEntryDetail."From Excise";
// Delete the following lines.
ServiceTaxSetup.RESET;
ServiceTaxSetup.SETRANGE(Code,STEntryDetail."Service Tax Group Code");
ServiceTaxSetup.SETRANGE("From Date",0D,STEntryDetail."Posting Date");
// End of the lines.
IF ServiceTaxSetup.FINDLAST THEN BEGIN
...
...
ServiceTaxEntry."From Excise" := STEntryDetail."From Excise";
IF ServiceTaxSetup.FINDLAST THEN BEGIN
...