Accounting.VATTaxReportingExtract Callwrapper

From GAB Help
Jump to: navigation, search

Required Passed Properties

RunID

18-Digit Double

RunType

  • Preliminary = 0
  • Final = 1
  • Reprint = 2

VATReturnReport

1-Digit flag to return the VAT report.

  • No = 0
  • Yes = 1

VATDetailReport

1-Digit flag to return the VAT detail report.

  • No = 0
  • Yes = 1

ECSalesReport

1-Digit flag to return the EC Sales report.

  • No = 0
  • Yes = 1

StartDate

Can use GAB Date type or pass it as string in the format of year, month, Day (YYYYMMDD).

EndDate

Can use GAB Date type or pass it as string in the format of year, month, Day (YYYYMMDD).

CountryCode

3-Character Country Code

TaxGroup

5-Character Tax Group

IncludeUnreconciled

1-Digit flag to return the EC Sales report.

  • No = 0
  • Yes = 1

ReportID

9-Digit Report ID

IsTransaction

1-Character flag

  • Yes = " " - The Calling program has already started a transaction. (default)
  • No = "N" - This will not be processed as part of a transaction.
  • Start = "S" - The module will start and commit/rollback a transaction.


Returned Properties

Status

Status returned after executing the callwrapper. Use this to confirm that the changes were successful.

Returns one of the following:

  • Success - The update completed successfully
  • ParmError - Invalid parameter passed.
  • NoRecords - No records found.
  • FileError - File Error occured.
  • Cancel - The process was canceled.

Example

F.Global.Callwrapper.New("Test","Accounting.VATTaxReportingExtract")
F.Global.Callwrapper.SetProperty("Test","RunType",0)
F.Global.Callwrapper.SetProperty("Test","VATReturnReport",1)
F.Global.Callwrapper.SetProperty("Test","VATDetailReport",1)
F.Global.Callwrapper.SetProperty("Test","ECSalesReport",1)
F.Global.Callwrapper.SetProperty("Test","StartDate","20000131")
F.Global.Callwrapper.SetProperty("Test","EndDate","20000201")
F.Global.Callwrapper.SetProperty("Test","CountryCode","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","TaxGroup","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","IncludeUnreconciled",1)
F.Global.Callwrapper.SetProperty("Test","ReportID",123456)
F.Global.Callwrapper.SetProperty("Test","IsTransaction","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","IsTransaction"," ")
F.Global.CallWrapper.Run("Test")
V.Local.sStatus.Declare(String)
F.Global.CallWrapper.GetProperty("Test","Status",V.Local.sStatus)


Technical Information

  • Core program: TX0800