Accounting.VATTaxReportingUpdate Callwrapper

From GAB Help
Jump to: navigation, search

Required Passed Properties

RunID

18-Digit Double

Category

  • Journals = 0
  • Sales = 1
  • Purchasing = 2

Type

  • Invoice = 0
  • Credit = 1
  • JournalDebit = 2

DataSource

  • OEInvoice = 0
  • ARMnlInvoice = 1
  • APAcrInvoice = 2
  • APMnlInvoice = 3
  • GLJournal = 4
  • ARMnlHistory = 5
  • APMnlHistory = 6

GeneralLedgerAccount

15-Character GL Account

OrderEntryInvoice

7-Character OE Invoice

SalesOrder

7-Character Sales Order

SalesOrderSequence

4-Digit Sales Order Sequence

Vendor

7-Character Vendor

InvoiceNumber

15-Character Invoice Number

ARAPCode

2-Character AR/AP Code

Batch

5-Character Batch

InvoiceDate

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

Box

2-Character Box

Reference

30-Character Reference

Description

30-Character Description

Amount

18-Digit Double (Maximum 14 digit whole number and 2 digit decimal.)

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.VATTaxReportingUpdate")
F.Global.Callwrapper.SetProperty("Test","RunID",123456)
F.Global.Callwrapper.SetProperty("Test","Category",0)
F.Global.Callwrapper.SetProperty("Test","Type",0)
F.Global.Callwrapper.SetProperty("Test","DataSource",0)
F.Global.Callwrapper.SetProperty("Test","GeneralLedgerAccount","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","OrderEntryInvoice","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","SalesOrder","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","SalesOrderSequence",1234)
F.Global.Callwrapper.SetProperty("Test","Vendor","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","InvoiceNumber","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","ARAPCode","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","Batch","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","InvoiceDate","20000131")
F.Global.Callwrapper.SetProperty("Test","Box","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","Reference","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","Description","INSERT VALUE HERE")
F.Global.Callwrapper.SetProperty("Test","Amount","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