User Guide
User Guide
[MYOMY0801, MYOSG0801]
MYOB Asia Sdn Bhd
MYOB Singapore Pte Ltd
Website: myob.com/developers
© MYOB Technology Pty Ltd 2008
All rights reserved.
Disclaimer
Information supplied by the member companies of the MYOB group (whether in user documentation and other
literature, video or audio material, training courses, websites, advice given by staff, or provided by other means) is
intended only to illustrate general principles, and may not be complete, accurate or free of error. As accounting
standards, taxation requirements, legislation and the circumstances of individual businesses vary widely, this information
cannot be considered authoritative and may not apply to your specific situation. You should obtain competent advice
from a qualified accounting, taxation, information-technology or legal professional before acting on such information. To
the extent permitted by law, member companies of the MYOB group are not liable for any special, consequential, direct
or indirect damages arising from loss of function, profits or data resulting from your application of such information. In
the event that any of the above limitations are found to be unenforceable, the MYOB member company's liability is
limited to the return of any fees or monies paid for the purchase of the product or service.
Trademarks
MYOB, MYOB AccountEdge, MYOB Premier Accounting, MYOB BusinessBasics, MYOB FirstEdge, MYOB Plus, MYOB
ODBC DeveloperPack, MYOB ODBC Direct, AccountEdge, BusinessBasics, ODBC DeveloperPack, ODBC Direct and Small
Business. Smart Solutions. are trademarks, registered trademarks or service marks of MYOB Technology Pty Ltd and their
use is prohibited without prior written consent. Aatrix is a registered trademark of Aatrix Software, Inc.
Adobe, Acrobat, Acrobat Reader, Adobe Reader, PDF and PostScript are trademarks or registered trademarks of Adobe
Systems Incorporated. QuickTime and the QuickTime logo are trademarks or registered trademarks of Apple Computer,
Inc. registered in the USA and other countries, and used under license. American Express and AmEx are registered
trademarks of American Express Company, its subsidiaries and affiliates. Brio Intelligence and Hyperion Intelligence are
trademarks or registered trademarks of Hyperion Solutions Corporation. Intuit, Quicken and QuickBooks are registered
trademarks of Intuit Inc. Mastercard is a registered trademark of MasterCard International Inc. Microsoft, Access,
Entourage, Excel, Internet Explorer, Office, Outlook, Smart Tags, Windows, Windows Server and Word are trademarks or
registered trademarks of Microsoft Corporation in the USA or other countries. vCard is a registered trademark of the
Internet Mail Consortium. VISA is a registered trademark of Visa International Service Association. Other products and
services mentioned may be trademarks, registered trademarks or service marks of their respective owners.
2
Contents
CONTENTS
1 Installation ................................................................................. 9
System Requirements .....................................................................................9
Installing MYOB ODBC Direct .......................................................................10
Registering a company file to enable ODBC access .......................................11
Defining a company file as an ODBC data source .........................................12
Testing an ODBC data source connection .....................................................15
Troubleshooting a connection ......................................................................16
Getting help for MYOB ODBC Direct ............................................................16
3
Journal Records and Transactions ....................................................... 75
JournalRecords ............................................................................................. 75
JournalSets ................................................................................................... 77
GeneralJournals ............................................................................................ 79
GeneralJournalLines ...................................................................................... 80
MoneySpent ................................................................................................ 81
MoneySpentLines ......................................................................................... 83
MoneyReceived ............................................................................................ 84
MoneyReceivedLines .................................................................................... 86
Sales ............................................................................................................. 87
SaleLines ...................................................................................................... 90
ServiceSaleLines ........................................................................................... 91
ItemSaleLines ............................................................................................... 92
ProfessionalSaleLines .................................................................................... 94
TimeBillingSaleLines ..................................................................................... 96
MiscSaleLines ............................................................................................... 98
Purchases ..................................................................................................... 99
PurchaseLines ............................................................................................. 102
ServicePurchaseLines .................................................................................. 103
ItemPurchaseLines ...................................................................................... 105
ProfessionalPurchaseLines ........................................................................... 107
MiscPurchaseLines ...................................................................................... 109
CustomerPayments .................................................................................... 110
CustomerPaymentLines .............................................................................. 112
CustomerFinanceCharges ........................................................................... 113
CustomerDiscounts .................................................................................... 115
CustomerDiscountLines .............................................................................. 117
CustomerDeposits ...................................................................................... 118
SupplierPayments ....................................................................................... 120
SupplierPaymentLines ................................................................................ 122
SupplierFinanceCharges ............................................................................. 123
SupplierDiscounts ...................................................................................... 125
SupplierDiscountLines ................................................................................ 127
SupplierDeposits ........................................................................................ 128
SettledCredits ............................................................................................. 130
SettledCreditLines ...................................................................................... 132
CreditRefunds ............................................................................................ 133
SettledDebits .............................................................................................. 135
SettledDebitLines ....................................................................................... 137
DebitRefunds ............................................................................................. 138
InventoryAdjustments ................................................................................ 140
InventoryAdjustmentLines .......................................................................... 141
InventoryTransfers ...................................................................................... 143
InventoryTransferLines ............................................................................... 144
BankDeposits ............................................................................................. 145
BankDepositLines ....................................................................................... 146
TransferMoney ........................................................................................... 147
Recurring Journal Records and Transactions .................................... 148
RecurringMoneySpent ................................................................................ 148
RecurringMoneySpentLines ........................................................................ 152
RecurringMoneyReceived ........................................................................... 153
RecurringMoneyReceivedLines ................................................................... 157
RecurringTransferMoney ............................................................................ 158
4
RecurringGeneralJournals ........................................................................... 161
RecurringGeneralJournalLines ..................................................................... 164
RecurringSales ............................................................................................ 165
RecurringSaleLines ...................................................................................... 170
RecurringServiceSaleLines ........................................................................... 171
RecurringItemSaleLines ............................................................................... 172
RecurringProfessionalSaleLines .................................................................... 174
RecurringTimeBillingSaleLines .................................................................... 176
RecurringMiscSaleLines .............................................................................. 178
RecurringPurchases .................................................................................... 180
RecurringPurchaseLines .............................................................................. 185
RecurringServicePurchaseLines ................................................................... 186
RecurringItemPurchaseLines ....................................................................... 188
RecurringProfessionalPurchaseLines ............................................................ 190
RecurringMiscPurchaseLines ....................................................................... 192
Sales and Purchases Information ...................................................... 194
SalesHistory ................................................................................................ 194
PurchasesHistory ........................................................................................ 195
SalespersonHistory ..................................................................................... 196
Comments ................................................................................................. 197
Methods .................................................................................................... 198
ReferralSources ........................................................................................... 199
Job Information ................................................................................. 200
Jobs ............................................................................................................ 200
JobAccounts ............................................................................................... 201
JobAccountActivities ................................................................................... 202
JobBudgets ................................................................................................. 203
JobJournalRecords ...................................................................................... 204
Category Information........................................................................ 206
Categories .................................................................................................. 206
CategoryAccounts ...................................................................................... 207
CategoryAccountActivities .......................................................................... 208
CategoryJournalRecords ............................................................................. 209
Tax Records........................................................................................ 210
TaxCodes ................................................................................................... 210
TaxCodeConsolidations .............................................................................. 212
TaxInformation ........................................................................................... 213
TaxInformationConsolidations .................................................................... 215
Item and Activity Information........................................................... 217
Items .......................................................................................................... 217
MoveItems ................................................................................................. 220
Locations .................................................................................................... 221
ItemLocations ............................................................................................. 222
ItemPrices .................................................................................................. 223
ItemMovement .......................................................................................... 224
ItemOpeningBalance .................................................................................. 225
ItemSalesHistory ......................................................................................... 226
ItemPurchasesHistory ................................................................................. 227
BuiltItems ................................................................................................... 228
BuildComponents ...................................................................................... 229
NegativeInventory ...................................................................................... 230
Activities ..................................................................................................... 232
5
ActivitySalesHistory .................................................................................... 233
ActivitySlips ................................................................................................ 234
ActivitySlipInvoiced .................................................................................... 236
CustomLists ................................................................................................ 237
Payroll Information Tables ................................................................ 238
Wages ........................................................................................................ 238
EPF ............................................................................................................. 239
CPF ............................................................................................................ 240
CPF Deduction ........................................................................................... 241
Deductions ................................................................................................. 242
EmployerExpenses ...................................................................................... 244
Entitlements ............................................................................................... 246
LinkedEmployees ........................................................................................ 247
WageHourHistory ....................................................................................... 248
WageDollarHistory ..................................................................................... 249
WageDayHistory ........................................................................................ 250
EPFHistory .................................................................................................. 251
SOCSOHistory ............................................................................................ 252
TaxHistory .................................................................................................. 253
CPFHistory ................................................................................................. 254
DeductionHistory ....................................................................................... 255
EmployerExpenseHistory ............................................................................ 256
EntitlementHistory ...................................................................................... 257
EntitlementCarryOver ................................................................................. 258
EntitlementServiceYears .............................................................................. 259
Timesheets ................................................................................................. 260
ContributionTypes ..................................................................................... 261
EmploymentClassifications ......................................................................... 262
EmploymentDepartment ............................................................................ 263
Definitions.......................................................................................... 264
JournalTypes .............................................................................................. 264
TaxCodeTypes ........................................................................................... 265
PriceLevels .................................................................................................. 266
Identifiers ................................................................................................... 267
TermsOfPayment ....................................................................................... 268
CardTypes .................................................................................................. 269
AccountClassification ................................................................................. 270
AccountType .............................................................................................. 271
InvoiceType ................................................................................................ 272
Status ......................................................................................................... 273
BillingRateUsed .......................................................................................... 274
ReconciliationStatus ................................................................................... 275
DepositStatus ............................................................................................. 276
LimitTypes .................................................................................................. 277
PayBasis ..................................................................................................... 278
Frequencies ................................................................................................ 279
BasisTypes .................................................................................................. 280
LinkedWages .............................................................................................. 281
PayrollCategoryTypes ................................................................................. 282
MaritalStatus .............................................................................................. 283
Rounding ................................................................................................... 284
SubAccountTypes ....................................................................................... 285
CashFlowClassifications .............................................................................. 286
6
LineType .................................................................................................... 287
PaymentTypes ............................................................................................ 288
InvoiceDelivery ........................................................................................... 289
AuditTypes ................................................................................................. 290
DayNames ................................................................................................. 291
OrderStatus ................................................................................................ 292
Schedule .................................................................................................... 293
Alerts .......................................................................................................... 294
AlertTypes .................................................................................................. 295
NumberingTypes ....................................................................................... 296
EmploymentCategory ................................................................................ 297
EmploymentStatus ..................................................................................... 298
SOCSOSchemeTypes .................................................................................. 299
TaxTypes .................................................................................................... 300
CPFSchemeTypes ....................................................................................... 301
Password Restrictions ........................................................................ 302
7
Import Supplier Cards ................................................................................ 374
Import Time Billing Sales ............................................................................ 379
Import Timesheets ..................................................................................... 382
Import Transaction Journals ........................................................................ 383
Import General Journals ............................................................................. 384
Password Restrictions ........................................................................ 385
8
1 Installation
INSTALLATION
MYOB ODBC Direct is an ODBC driver that makes your MYOB company file information
accessible from other applications. The driver acts as an interface between the MYOB database
and the other applications, interpreting requests to, and providing information from, the
database using ODBC—a standard database access method.
This chapter contains instructions that will help you:
install MYOB ODBC Direct
define a company file as an ODBC data source
register a company file to enable ODBC access
test an ODBC data source connection
get help for MYOB ODBC Direct.
System Requirements
Before you install MYOB ODBC Direct, ensure your system meets the following requirements:
NOTE : ODBC Performance The MYOB ODBC Direct driver will only perform as well as the system
it runs on, and the above specifications are only a guide. If performance is lacking, increase the
amount of available RAM or try using a faster processor.
9
Installing MYOB ODBC Direct
When you install your MYOB accounting software, the MYOB ODBC Direct driver is installed
automatically. If you have uninstalled the driver, and need to reinstall it, complete the
following procedure.
Before you install MYOB ODBC Direct When you install your MYOB software, the MYOB
NOTE :
ODBC Direct driver that is installed with it will override earlier versions that exist on the system.
a different folder, click Browse, locate and select the desired installation folder, and then
proceed with step 8 below.
8 Click Next. The Select Program Folder window appears.
9 Click Next. The Start Copying Files window appears.
10 To accept the installation settings, click Next. When the installation is complete, the
InstallShield Wizard Complete window appears.
11 Click Finish.
10 CHAPTER 1 INSTALLATION
Registering a company file to enable ODBC
access
Registering a company file for ODBC access will give you full read access.
To connect to a company file using the MYOB ODBC Direct driver, you must first define the file
as a data source and set up a Data Source Name (DSN). A DSN identifies your company file as
a database to which other ODBC-compatible applications can connect.
NOTE : If you are using the 64-bit version of Windows Vista... Do not complete the first two
steps in this procedure. To access the ODBC Data Source Administrator window, you will need to
open the C:\WINDOWS\SysWOW64\ folder on your hard drive and double-click the odbcad32.exe
file. You can then continue with step 3 below.
12 CHAPTER 1 INSTALLATION
3 Click Add. The Create New Data Source window appears.
5 In the top section of the ODBC MYOB Setup Configuration window, enter a unique Data
Source Name and a description. (For example, you could enter “Clearwater” as the Data
Source Name and “MYOB company file” as the description.)
7 Locate and select the MYOB company file you want to connect to.
8 Click Open. The ODBC MYOB Setup Configuration window appears showing the
company file’s path.
9 In the User Name field, enter a user name that you have set up in the company file.
NOTE : To gain full access to the company file... Enter a user name that is not restricted from
accessing any windows or functions in the company file, for example, Administrator.
If you enter a user name that has been restricted from accessing windows and functions, the user
will not be able to access the tables related to those functions via ODBC.
10 If you have set a password for the user name entered in the previous step, enter it in the
Password field. If you have not set a password, leave the field blank.
11 Click OK. The ODBC Data Source Administrator window appears.
12 Click OK.
14 CHAPTER 1 INSTALLATION
Testing an ODBC data source connection
The MYOB ODBC TestConnection utility checks that your MYOB ODBC Direct driver is
installed correctly and that your data source is accessible.
2 Select the DSN option and then select the appropriate name from the Driver Name list.
NOTE :ADO If you are connecting to your company file without a DSN, select the ActiveX Data
Objects (ADO) option, enter the required details and click Test.
3 Select the DSN you created for your MYOB company file from the MYOB Data Source
Name (DSN) drop-down list and then click Test.
If the connection is:
successful, the bottom section of the MYOB ODBC TestConnection window will
display details of the company file you have connected to.
unsuccessful, see ‘Troubleshooting a connection’, on page 16 for help checking your
installation and data source setup.
If you have installed MYOB ODBC Direct and have defined your company file as a data source
but you are unable to connect to your company file, review the following troubleshooting list:
Ensure the DSN you created matches the name you selected in the MYOB ODBC
TestConnection utility. To check the DSN, see ‘To define a company file as an ODBC data
source’ on page 12.
Ensure the company file that you have defined as a data source is located in the correct
folder. To check the folder path, go to the ODBC Data Source Administration window,
select the DSN you are testing and then click Configure. Click Browse and verify that the
company file is still located in the selected path. If not, locate the file and then click OK.
Check the version of the MYOB ODBC Direct driver. You may have upgraded your MYOB
company file and not your MYOB ODBC Direct driver. Locate the latest version of the
MYOB ODBC Direct driver and upgrade your version to this one.
If you are still having problems connecting to your MYOB company file, check with your local
consultant, or if you are installing MYOB ODBC Direct as part of a business solution, you
should contact your provider for support.
If you have subscribed to a support plan for your MYOB software, MYOB can help you install
the MYOB ODBC Direct driver and perform a successful test connection to your company file.
Call MYOB Technical Support on 1 300 88 6962 (Malaysia) or (65) 6505 6584 (Singapore) for
installation enquiries. Otherwise, call 1 300 88 0883 (Malaysia) or (65) 6505 6582 (Singapore)
for registration enquiries.
Before you call, ensure you have performed the installation and setup procedures outlined in
this chapter. If you are unable to perform a successful test connection to your MYOB company
file, ensure you have attempted all suggestions listed in ‘Troubleshooting a connection’ above.
When calling MYOB for support, please have your MYOB software serial number on hand and
be close to the computer on which you are installing the MYOB ODBC Direct driver.
Note that MYOB cannot provide support for third-party applications that you want to connect
to your MYOB company file. Contact the supplier or developer of the third-party application if
you require support or training for their product.
16 CHAPTER 1 INSTALLATION
2 How to read
HOW TO READ
Connecting to a company file
You can connect to and read from an MYOB company file with or without configuring an
ODBC User data source for the file. You can also modify the way you connect by using
connection strings. Information about connection strings provided in this section will only be
useful if you have an advanced knowledge of ODBC and connecting to data sources.
Connection strings
Connection strings can be used to override values set in the data source configuration, or to
establish a company file connection without having to set up an ODBC User data source and
Data Source Name (DSN).
A connection string is not required for read operations where a DSN has been set up for an
MYOB company file.
17
Connecting to a company file that has been defined as an
ODBC data source
By setting up an ODBC User data source for your company file that contains all the ODBC
connection settings, an appropriate SQL tool can use those settings to relay and interpret SQL
queries and the resultant data from an SQL query.
When connecting to a company file for reading purposes only, a connection string is not
required as the default vales within the ODBC User data source will be used.
The following table describes connection string keywords and values that are supported by the
MYOB ODBC Direct driver.
Mandatory keywords
When using a connection without passing a DSN name, certain keywords must be assigned
values.
For a read connection, DRIVER; TYPE; DATABASE; UID; and if there is a password, PWD; must
have assigned values.
For a write connection, HOST_EXE; ACCESS_TYPE; DRIVER; TYPE; DATABASE; UID; KEY; and if
there is a password, PWD; must have assigned values.
(Malaysia)
If DRIVER keyword is set, DATABASE
keyword must also be set. or
{MYOSG0801}
(Singapore)
Use only if a DSN has been set up for Value is the DSN DSN=<DSN name>;
DSN
A user ID. Note: If this value is not Value is the user ID UID=Administrator;
UID
MYOB ODBC Direct checks the access rights that apply to the supplied username (as set up in
the company file) before access is given to a table.
To ensure a balance between security and performance, access validation is performed on a
table-by-table basis (not field-by-field). If the user is restricted from using a function in their
MYOB software, they will be unable to view the tables related to that area using MYOB ODBC
Direct.
This section provides examples of how to read data from the MYOB Clearwater sample
company file. The first part of this section shows you how to define the sample company file as
a data source and is followed by connection examples using Microsoft Word and Microsoft
Excel.
NOTE : If you are using the 64-bit version of Windows Vista... Do not complete the first two
steps in this procedure. To access the ODBC Data Source Administrator window, you will need to
open the C:\WINDOWS\SysWOW64\ folder on your hard drive and double-click the odbcad32.exe
file. You can then continue with step 3 below.
5 In the Data Source Name field, type TEST and press TAB.
6 In the Description field, type Test DSN for Clearwater.
7 Click Browse. The Select file for ODBC source window appears.
8 Locate your MYOB accounting software’s program folder.
10 In the User Name text box, enter a user name that has been set up in the company file.
NOTE : To gain full access to the company file... Enter a user name that is not restricted from
accessing any windows or functions in the company file, for example, Administrator.
If you enter a user name that has been restricted from accessing windows and functions, the user
will not be able to access the tables related to those functions via ODBC.
11 In the Password text box, enter the password for the user name you entered in the
previous step, or if you have not set a password, leave the password field blank.
12 In the Developer Access section, mark the Enable checkbox.
13 Next to MYOB Application Path field, click Browse. The Select MYOB Application File
window appears.
14 Browse to your MYOB software folder, select the application file (for example,
MYOBP.exe) and click Open.
15 As you have selected the sample company file, leave the Key Value field blank. (If you are
connecting to a registered company file, click the Browse button beside the Key Value
field. The Select Key file window appears. Browse to where you installed your key file.)
16 Click OK. The ODBC Data Source Administrator window appears. The DSN you just
created appears in the list of User Data Sources.
17 Click OK to close the ODBC Data Source Administrator window.
The following procedure provides the steps required to read data from the Clearwater sample
company file using a DSN, Microsoft Word, Microsoft Query and the MYOB ODBC Direct
driver. It uses Microsoft Word and MS Query to build a list of all employee names and
associated notes from the Clearwater sample company file.
2 Click the Insert Database icon (highlighted above). The Database window appears.
5 Select the Data Source Name (DSN) for this query in the Databases tab. For this
procedure, use the Test DSN created earlier. See ‘To define the sample Clearwater
company file as a data source’ on page 22.
6 Ensure that the Use the Query Wizard to create/edit queries option is selected. This
enables you to select individual column fields and to optimise your query.
7 Click OK. The Query Wizard - Choose Columns window appears.
8 Locate the Cards entry and click + to expand the list of fields available for the table.
9 Click Name and click the > button. The Name field appears in the Columns in your query
section.
Use the same method to select the CardTypeID, IsInactive and Notes fields.
10 Click Next. The Query Wizard - Filter Data window appears.
This window enables you to sort your query in ascending or descending order on any field.
12 Select Name from the Sort By drop-down list.
13 Select the Ascending Order option.
14 Click Next. The Query Wizard - Finish window appears.
This window gives you the option to return your query data back to Microsoft Word, edit
the query or save it as a query for later use. If you save the query, you can avoid manually
building the query every time you need to make some modification to the data range or
data fields associated with this query.
15 Select the View data or edit query in Microsoft Query option.
16 Click Finish. The main MS Query window appears.
17 Go to the Criteria menu and choose Add Criteria. The Add Criteria window appears.
You use this window to define criteria that enable you to limit the data you select in a
query. For this example, you only want to display information about employees. The
following steps show you how to limit the data you select to employee cards. Information
about the card type is stored in the field CardTypeID. You can find more information
about card fields in Chapter 3, ’Read tables,’ starting on page 35.
18 Select CardTypeID from the Field list.
The following procedure provides the steps required to read data from the Clearwater sample
company file using a DSN, Microsoft Excel, Microsoft Query and the MYOB ODBC Direct
driver. It uses Microsoft Excel and MS Query to build a list of all employee names and
associated notes from the Clearwater sample company file.
This example is an Excel equivalent of the previous Word example.
3 Select the Data Source Name (DSN) for this query in the Databases tab. For this
procedure, use the Test DSN created earlier. See ‘To define the sample Clearwater
company file as a data source’ on page 22.
4 Ensure that the Use the Query Wizard to create/edit queries option is selected. This
enables you to select individual column fields and optimise your query.
5 Click OK. The Query Wizard - Choose Columns window appears.
7 Click Name and click the > button. The Name field appears in the Columns in your query
list.
Use the same method to select the CardTypeID, IsInactive and Notes fields.
8 Click Next. The Query Wizard - Filter Data window appears.
This window enables you to sort your query in ascending or descending order on any field.
10 Select Name from the Sort by list.
11 Select the Ascending option.
This window gives you the options to return your query data to Microsoft Excel, edit the
query or save it as a query for later use. If you save the query you can avoid manually
building the query every time you need to make some modification to the data range or
data fields associated with this query.
13 Select the View data or edit query in MS Query option.
14 Click Finish. The main MS Query window appears.
15 Go to the Criteria menu and choose Add Criteria. The Add Criteria window appears.
You use this window to define criteria that enable you to limit the data you select in a
query. For this example, you only want to display information about employees. The
following steps show you how to limit the data you select to employee cards. Information
about the card type is stored in the field CardTypeID. Find out more about card fields in
Chapter 3, ’Read tables,’ starting on page 35.
16 Select CardTypeID from the Field list.
17 Select equals from the Operator list.
18 Click Values. A list appears, showing all the CardTypeId values for your query: C, E, P, S.
There are two methods for specifying the values for criteria. If you already know what the
available values for a field are, then you can manually type the value or values in the Values
text box. If you are unsure of the values associated with a particular field, click the Values
button to show and select available values.
19 Select E for Employees and click OK.
22 Click OK. The results of the query are inserted into the Excel spreadsheet.
Indexed fields
The MYOB ODBC Direct driver provides indexes with a number of fields. Using indexed fields
can reduce the amount of time a query takes to complete. Each indexed field is marked with
‘***’ in Chapter 3, ’Read tables,’ starting on page 35.
Query building
When building queries, note that:
Only left and equal joins are supported; right joins are not supported.
Nested queries are not supported.
String Functions
ascii Select * from customers where ascii(left(lastname, 1)) = 119 - returns all customers
where the lastname begins with 'w'
char Select * from customers where left(lastname, 1) = char(119) - returns all customers
where the lastname begins with 'w'
locate Select * from customers where locate('Tim', lastname, 1) = 7 - returns all customers
where the character sequence 'Tim' begins at the seventh position of the lastname
field.
ltrim Select * from customers where ltrim(lastname) = 'johnson' - return all customers with
lastname = 'johnson' or ' johnson'
repeat Select * from customers where lastname = repeat('A', 3) - returns all customers from
the customers table where the lastname = 'AAA'
rtrim Select * from customers where rtrim(lastname) = 'johnson' - return all customers with
lastname = 'johnson' or 'johnson '
Date Functions
curdate Select * from employees where startdate = curdate() - return all employees that
started today
year Select * from employees where year(startdate) = 2000 - returns all employees where
the employee started in the year 2000
Numeric The Mod function is the only numeric function that the driver supports
Functions
Native commands determine how the ODBC driver identifies duplicate records when
importing information in the MYOB company file. The identification method you can use
depends on the import routine in the MYOB application.
Note that all native commands are executed as text. For example, when using the “ADD
DUPLICATES” command: myobConnection.ExecuteNonQuery(Command)
The MYOB ODBC Direct driver supports the following dynamic native commands.
ADD DUPLICATES * Write This command enables imported records that are
duplicates to be added.
DELETE DUPLICATES * Write This command enables imported records that are
duplicates to be deleted.
REJECT DUPLICATES * Write This command enables imported records that are
duplicates to be rejected.
UPDATE DUPLICATES * Write This command enables imported records that are
duplicates to be updated.
USE CONDINDX * Read This command enables index searches that are
conditional to be used during the execution of a query.
* These native commands remain active until disabled or replaced with another value.
READ TABLES
This chapter provides a listing of MYOB accounting software read tables and their record
structure.
Within each table:
The format and type of each record field is given.
Foreign keys are highlighted in blue and the source tables that each foreign key references
are listed below each read table.
Indexed records are marked with “***”
Conditional indexed records are marked with “^^^”. A conditional index excludes null
records and can be deactivated when connecting to the database or when performing
WHERE clauses on the particular field. By default, all conditional indexes are active.
35
Card Information
Cards
Overview
The Cards table contains limited information that is generic to all card types. It contains a CardType so the user can
determine what other card-related tables they need to use in their query if they need more details. The
CardRecordID is essentially a foreign key to the CustomerID, SupplierID, EmployeeID and PersonalCardID in their
respective tables.
All address, phone, email, salutation and contact information relevant to the card is stored within the Address table.
Up to 5 different combinations of address, phone, e-mail, salutation and contact can be recorded against each card.
The storage of address information within an external table will reduce the size of the Card Information tables
significantly and greatly improve efficiency when reports are produced on address variables.
CardTypeID Text 1xAN CardTypeID (CardTypes) of the record containing the full card type
definition.
C = (Customer)
S = (Supplier)
E = (Employee)
P = (Personal)
*** Name Text 52xAN If the card is a company: company name. If the card is an individual: last
name followed by a comma, a space and the first name.
LastName Text 52xAN The company name if the card record represents a company, otherwise the
individual’s last name.
FirstName Text 20xAN Blank if the card record represents a company, otherwise the first name of
the individual.
ChangeControl Text 10xAN Number used to control change within the record. Value is incremented
whenever the record is updated.
IsInactive Text 10xN Whether the company or individual represented by the card record is
inactive. Active = ‘N’, Inactive = ‘Y’.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency information
for this card.
IdentifierID Text 26xAN The IdentifierID (Identifiers) of the record(s) containing the full identifier
description. Mirrors information reported within the Identifiers field.
Multiple foreign keys will exist within this field if more than one identifier is
attached to this card.
^^^ CustomList1ID Integer 10xN The CustomListID (CustomList) of the record containing the Custom List 1
selection for this card.
^^^ CustomList2ID Integer 10xN The CustomListID (CustomList) of the record containing the Custom List 2
selection for this card.
^^^ CustomList3ID Integer 10xN The CustomListID (CustomList) of the record containing the Custom List 3
selection for this card.
PaymentDeliveryID Text 1xA InvoiceDeliveryID (InvoiceDelivery) of the record containing the full
Payment Notification Delivery Status assigned to Spend Money, Pay Bill
and Credit Refund transactions when this card is applied to the
transaction.
P = To be Printed
E = To be Emailed
B = To be Printed and Emailed
A = Already Printed or Sent
CardTypeID CardTypes
CurrencyID Currency
IdentifierID Identifiers
CustomList1ID CustomLists
CustomList2ID CustomLists
CustomList3ID CustomLists
PaymentDeliveryID InvoiceDelivery
CARDS 37
Customers
*** CardRecordID Integer 10xN The CardRecordID of the record within the Card table
containing information about the same card.
LastName Text 52xAN The company name if the card record represents a
company, otherwise the individual’s last name.
FirstName Text 20xAN Blank if the card record represents a company, otherwise
the first name of the individual.
IdentifierID Text 26xAN Mirrors information reported within the Identifiers field.
Multiple foreign keys will exist within this field if more than
one identifier is attached to this card.
^^^ CustomList1ID Integer 10xN The CustomListID of the record containing the Custom
List 1 selection for this card.
^^^ CustomList2ID Integer 10xN The CustomListID of the record containing the Custom
List 2 selection for this card.
^^^ CustomList3ID Integer 10xN The CustomListID of the record containing the Custom
List 3 selection for this card.
*** TermsID Integer 10xN The TermsID of the record containing credit terms for this
customer.
PriceLevelID Text 3xAN PriceLevelID of the record containing the full price level
definition.
*** TaxCodeID Integer 10xN TaxCodeID of the record containing the tax code for this
card.
*** FreightTaxCodeID Integer 10xN TaxCodeID of the record containing the default Freight
Tax Code of this card.
CustomerSince Date Formatted by the Date entered within Customer Since field.
operating system
LastSaleDate Date Formatted by the The most recent sale date recorded within the data file for
operating system this customer.
LastPaymentDate Date Formatted by the The most recent customer payment within the data file for
operating system this customer.
TotalReceivableDays Integer 10xN Total days until final payment received for all closed sale
invoices.
TotalPaidInvoices Integer 9xN Total number of closed sale invoices for this customer.
HighestInvoiceAmount Double 13.2xN The highest $ value sales invoice recorded against this
customers card.
HighestReceivableAmount Double 13.2xN The highest $ value account receivable balance assigned
to this customer’s card.
^^^ MethodOfPaymentID Integer 10xN The PaymentMethodID of the record containing the
default Method of Payment.
CUSTOMERS 39
Field Name Type Format Description
^^^ IncomeAccountID Integer 10xN The AccountID of the record containing account
information for the default Income Account.
^^^ SaleCommentID Integer 10xN The CommentID of the record containing the default Sale
Comment.
^^^ ShippingMethodID Integer 10xN The ShippingMethodID of the record containing the
default shipping method.
ChangeControl Text 15xAN Number used to control change within the record. Value is
incremented whenever the record is updated.
CardRecordID Cards
CurrencyID Currency
IdentifierID Identifiers
CustomList1ID CustomLists
CustomList2ID CustomLists
CustomList3ID CustomLists
TermsID Terms
TaxCodeID TaxCodes
MethodOfPaymentID PaymentMethods
CodeID TaxCodes
SaleLayoutID InvoiceType
PriceLevelID PriceLevels
SalespersonID Cards
Employees
SaleCommentID Comments
InvoiceDeliveryID InvoiceDelivery
IncomeAccountID Accounts
ShippingMethodID Methods
PaymentDeliveryID InvoiceDelivery
CUSTOMERS 41
Suppliers
*** CardRecordID Integer 10xN The CardRecordID (Cards) of the record within the Cards
table containing information about the same card.
LastName Text 52xAN The company name if card is a company, or last name if
card is an individual.
FirstName Text 20xAN Blank if the card is a company, or first name if card is an
individual.
IsIndividual Text 1xAN Whether the card record represents an individual. Company
= ‘N’, Individual = ‘Y’.
IsInactive Text 1xAN Whether the company or individual represented by the card
record is inactive. Active = ‘N’, Inactive = ‘Y’.
IdentifierID Text 26xAN The IdentifierID (Identifiers) of the record(s) containing the
full identifier description.
^^^ CustomList1ID Integer 10xN The CustomListID (CustomLists) of the record containing
the Custom List 1 selection for this card.
^^^ CustomList2ID Integer 10xN The CustomListID (CustomLists) of the record containing
the Custom List 2 selection for this card.
^^^ CustomList3ID Integer 10xN The CustomListID (CustomLists) of the record containing
the Custom List 2 selection for this card.
*** TermsID Integer 10xN The TermsID (Terms) of the record containing credit terms
for this supplier.
*** TaxCodeID Integer 10xN TaxCodeID (Tax Codes) of the record containing the tax
code for this card.
*** FreightTaxCodeID Integer 10xN TaxCodeID of the record containing the default Freight Tax
Code of this card.
LastPuchaseDate Date Formatted by the Most recent purchase date recorded within the data file for
operating system this supplier.
LastPaymentDate Date Formatted by the Most recent payment date recorded within the data file for
operating system this supplier.
TotalPayableDays Integer 10xN Total days until final payment made for all closed purchase
orders.
TotalPaidPurchases Integer 9xN Total number of closed purchase orders for this supplier.
HighestPurchaseAmount Double 13.2xN The highest dollar value purchase order recorded against
this supplier’s card.
HighestPayableAmount Double 13.2xN The highest dollar value account payable balance assigned
to this supplier’s card.
EstimatedCostPerHour Double 13.2xN The estimated cost per hour of providing this supplier’s
services when generating an activity slip.
^^^ ExpenseAccountID Integer 10xN The AccountID (Accounts) of the record containing account
information for the default Expense Account.
^^^ PurchaseCommentID Integer 10xN The CommentID (Comments) of the record containing the
default Purchase Comment.
SUPPLIERS 43
Field Name Type Format Description
ChangeControl Integer 15xN Number used to control change within the record. Value is
incremented whenever the record is updated.
CardRecordID Cards
CurrencyID Currency
IdentifierID Identifiers
CustomList1ID CustomLists
CustomList2ID CustomLists
CustomList3ID CustomLists
TermsID Terms
TaxCodeID TaxCodes
PurchaseLayoutID InvoiceType
PurchaseCommentID Comments
InvoiceDeliveryID InvoiceDelivery
ExpenseAccountID Accounts
ShippingMethodID Methods
PaymentDeliveryID InvoiceDelivery
*** CardRecordID Integer 10xN The card record ID of the record within the Card table
containing information about the same card.
*** Name Text 52xAN If the card is a company: company name. If the card is an
individual: last name followed by a comma, a space and the first
name.
LastName Text 52xAN The company name if the card record represents a company,
otherwise the individual’s last name.
FirstName Text 20xAN Blank if the card record represents a company, otherwise the first
name of the individual.
IsInactive Text 1xAN Whether the company or individual represented by the card
record is inactive. Active = ‘N’, Inactive = ‘Y’.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this card.
Picture Text 255xAN Name of the bitmap file attached to this card.
IdentifierID Text 26xAN The IdentifierID (Identifiers) of the record(s) containing the full
identifier description.
^^^ CustomList1ID Integer 10xN The CustomListID (CustomList) of the record containing the
Custom List 1 selection for this card.
^^^ CustomList2ID Integer 10xN The CustomListID (CustomList) of the record containing the
Custom List 2 selection for this card.
^^^ CustomList3ID Integer 10xN The CustomListID (CustomList) of the record containing the
Custom List 3 selection for this card.
PaymentTypeID Text 1xA PaymentTypeID of the record containing the full definition of
the default Payment Method assigned to the employee card.
EMPLOYEES 45
Field Name Type Format Description
StatementText Text 18xAN The default Statement Text value assigned when electronic
disbursements are created.
EstimatedCostPerHour Double 13.2xN The estimated cost per hour for providing this employee’s
services when generating an activity slip.
TerminationDate Date Formatted by the Date the employee’s employment was terminated.
operating system
TerminationReason Text 45xAN The reason why the employee was terminated.
WagesExpenseAccountID Integer 5xN The AccountID of the record containing account information for
the Wages Expense Account.
PayBasisID Text 1xA PayBasisID of the record containing the full Pay Basis definition.
BasePay Double 13.2xN If Pay Basis is Salary, this field contains the employee’s monthly
Base Pay. If Pay Basis is Hourly, this field contains the employee’s
Hourly Base Pay.
The value of this field is always in local currency.
PayFrequencyID Text 1xA The FrequencyID of the record containing the full Pay Frequency
definition.
DefaultWagesID Integer 15xN The WageID (Wages) containing full details of the default wage
category assigned when this employee is used with an activity
slip.
PaySlipDelType Text 1xA The method by which the payslip will be sent.
P = To be Printed
E = To be Emailed
B = To be Printed and Emailed
A = Already Printed or Sent
ResidentialStatus Text 20xAN The Employee Residential Status value can be:
• Citizen
• Permanent Resident
• Foreigner
EPFNo Text 20xAN (Malaysia) The employee’s Employment Provident Fund number
NoOfChildRelief Double 2.2xN (Malaysia) Number of Child Relief for the tax calculation
CountryCode Text 2xA (Malaysia) Country code for tax statutory forms
EMPLOYEES 47
Field Name Type Format Description
PRStartDate Text 10xAN (Singapore) The employee’s Permanent Resident Start Date
ChangeControl Text 20xAN Number used to control change within the record. Value is
incremented whenever the record is updated.
CardRecordID Cards
CurrencyID Currency
IdentifierID Identifiers
CustomList1ID CustomLists
CustomList2ID CustomLists
CustomList3ID CustomLists
EmploymentCategoryID EmploymentCategory
WagesExpenseAccountID Accounts
PayBasisID PayBasis
PayFrequencyID Frequencies
DefaultWagesID Wages
PaymentDeliveryID InvoiceDelivery
PaySlipDelType InvoiceDelivery
DepartmentID EmploymentDepartment
PositionID EmploymentClassifications
SOCSOSchemeID SOCSOSchemeTypes
TaxTypeID TaxTypes
CPFSchemeID CPFSchemeTypes
*** CardRecordID Integer 10xN The CardRecordID (Cards) of the record within the cards table containing
information about the same card.
*** Name Text 52xAN If the card is a company: company name. If the card is an individual: last
name followed by a comma, a space and the first name.
LastName Text 52xAN The company name if card is a company, or last name if card is an individual.
FirstName Text 20xAN Blank if the card is a company, or first name if card is an individual.
ChangeControl Text 10xAN Number used to control change within the record. Value is incremented
whenever the record is updated.
IsInactive Text 1xAN Whether the company or individual represented by the card record is
inactive. Active = ‘N’, Inactive = ‘Y’.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency information
for this card.
IdentifierID Text 26xAN The IdentifierID (Identifiers) of the record(s) containing the full identifier
description.
^^^ CustomList1ID Integer 10xN The CustomListID (CustomLists) of the record containing the Custom List 1
selection for this card.
^^^ CustomList2ID Integer 10xN The CustomListID (CustomLists) of the record containing the Custom List 2
selection for this card.
^^^ CustomList3ID Integer 10xN The CustomListID (CustomLists) of the record containing the Custom List 2
selection for this card.
PaymentDeliveryID Text 1xA InvoiceDeliveryID (InvoiceDelivery) of the record containing the full
Payment Notification Delivery Status assigned to Spend Money transactions
when this personal card is applied to the transaction.
P = To be Printed
E = To be Emailed
B = To be Printed and Emailed
A = Already Printed or Sent
PERSONALCARDS 49
Foreign Keys Table sourced
CardRecordID Cards
CurrencyID Currency
IdentifierID Identifiers
CustomList1ID CustomLists
CustomList2ID CustomLists
CustomList3ID CustomLists
PaymentDeliveryID InvoiceDelivery
Overview
The CardActivities table holds information regarding sales activity for customers, purchase activity for suppliers and
salesperson history for employees. Activity history is stored for the current financial year, next financial year and the
five financial years immediately preceding the current financial year.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) or SupplierID
(Suppliers) or EmployeeID (Employees) of the card record to that this
historical information applies.
Period Integer 2xN The period of the financial year in which this activity occurred.
DollarsSold Double 13.2xN Net activity within profit & loss accounts or net movement within
balance sheet accounts.
CARDACTIVITIES 51
Miscellaneous Information
DataFileInformation
Overview
The DataFileInformation table presents generic information stored within the Company Information and Bank
Information windows and the internal data file itself. The DataFileInformation table does not have a primary key.
IRDNumber Text 255xAN I.R.D. No. as entered within the Company Information
window
ServiceTaxNumber Text 255xAN Service Tax No. as entered within the Company
Information window
SalesTaxNumber Text 19xAN Sales Tax No. / Tax File Number as entered within the
Company Information window
CurrentFinancialYear Integer 4xN Current financial year as displayed within the Company
Information window.
PeriodsPerYear Integer 2xN The accounting periods per year as displayed in the
company information window.
LastPurgeDate Date Formatted by the The date representing the point at that transactions on
operating system or after this date have not been purged. Closed
transactions before this date may have been purged
from the data file.
LastBackupDate Date Formatted by the The session date that the file was last backed up.
operating system
DataFileCountry Text 3xAN The country for which this data file is meant.
If Australia = AUS
If UK = UK
If New Zealand = NZ
If United States = US
If Malaysia = MY
If Hong Kong = HK
If International = INT
If Philippines = PH
If Singapore = SG
DriverBuildNumber Integer 5xN The driver build number, can be used for checking the
driver version number.
SerialNumber Integer 12xN The company file Serial Number as displayed within the
Company Information window.
UseRetailManagerLink Text 1xAN Y/N flag used to determine if the company file uses the
RetailManager Link.
UseMultipleCurrencies Text 1xAN Y/N flag used to determine if multiple currencies are
used in the company file.
UseCategories Text 1xAN Y/N flag used to determine if category tracking has
been turned on.
UseDailyAgeing Text 1xAN Y/N flag used to determine if debtors are aged daily or
monthly.
FirstAgeingPeriod Integer 3xN Number of days in the first daily ageing period.
SecondAgeingPeriod Integer 3xN Number of days in the second daily ageing period.
ThirdAgeingPeriod Integer 3xN Number of days in the third daily ageing period.
IdentifyAgeByName Text 1xAN Y/N flag indicates if the monthly ageing periods are
identified by the month names or the number of
months overdue.
LockPeriodIsActive Text 1xAN Y/N flag indicates if the Locked Periods preference is
active.
LockPeriodDate Date Formatted by the The first date from which transactions can be entered
operating system or imported into the company file.
LockThirteenthPeriod Text 1xAN Y/N flag indicates if the Locked Period date is the
thirteenth period.
DATAFILEINFORMATION 53
Field Name Type Format Description
DefaultCustomerTermsID Integer 10xN The TermsID to use when creating a new Customer
card.
DefaultCustomerPriceLevelID Text 3xAN The PriceLevelID to use for new customer cards.
DefaultCustomerTaxCodeID Integer 10xN The TaxCodeID to use when creating a new Customer
card.
DefaultUseCustomerTaxCode Text 1xA Y/N flag indicates if the customer’s Tax code should be
used when creating new customers.
DefaultCustomerFreightTaxCodeID Integer 10xN The TaxCodeID to use as the default Customer Freight
TaxCode for new Customer cards.
DefaultCustomerCreditLimit Double 7.2xN The default customer credit limit to use for new
customers.
DefaultSupplierTermsID Integer 10xN The TermsID to use as the default when creating a new
supplier card.
DefaultSupplierTaxCodeID Integer 10xN The TaxCodeID to use when creating a new supplier
card.
DefaultUseSupplierTaxCode Text 1xA Y/N flag indicates if the supplier’s tax code should be
used when creating a new supplier card.
DefaultSupplierFreightTaxCodeID Integer 10xN The TaxCodeID to use as the Supplier Freight Tax code
when creating a new supplier card.
DefaultSupplierCreditLimit Double 7.2xN The default supplier credit limit to use for new
suppliers.
InvoiceSubject Text 255xAN The default subject applied when emailing an invoice
InvoiceMessage Text 255xAN The default message applied when emailing an invoice
InvoiceQuoteSubject Text 255xAN The default subject applied when emailing an invoice
quote.
InvoiceQuoteMessage Text 255xAN The default message applied when emailing an invoice
quote.
IncludeInvoiceQuoteNumber Text 1xAN If the Invoice Quote # is included in the Invoice Quote
Subject. N = No, Y = Yes
InvoiceOrderSubject Text 255xAN The default subject applied when emailing an invoice
order.
InvoiceOrderMessage Text 255xAN The default message applied when emailing an invoice
order.
IncludeInvoiceOrderNumber Text 1xAN If the Invoice Order # is included in the Invoice Order
Subject. N = No, Y = Yes
PurchaseSubject Text 255xAN The default subject applied when emailing a purchase.
PurchaseQuoteSubject Text 255xAN The default message applied when emailing a purchase
quote.
PurchaseQuoteMessage Text 255xAN The default subject applied when emailing a purchase
quote.
PurchaseOrderSubject Text 255xAN The default subject applied when emailing a purchase
order.
PurchaseOrderMessage Text 255xAN The default message applied when emailing a purchase
order
StatementSubject Text 255xAN The default subject applied when emailing a statement.
PaymentSubject Text 255xAN The default subject applied when emailing a payment
notification.
PaymentMessage Text 255xAN The default message applied when emailing a payment
notification.
UseAuditTracking Text 1xAN If the data file uses Audit Trail Tracking. N = No, Y = Yes
ChangeControl Text 15xAN Number used to control change within the record.
Value is incremented whenever the record is updated.
Value is reported as a 3 * 5 digit numbers. Value is
packed with leading zeroes if less than 5 digits.
UseStandardCost Text 1xAN Use Standard Cost as the Default Price on Purchase
Orders and Bills. N = No, Y = Yes
UseReceivablesDiscounts Text 1xAN Indicates whether discounts for early payment are
given. N = No, Y = Yes
UseReceivablesLateFees Text 1xAN Indicates whether charges for late payment are
assessed. N = No, Y = Yes
DATAFILEINFORMATION 55
Field Name Type Format Description
UsePayablesDiscounts Text 1xAN Indicates whether discounts for early payment are
taken. N = No, Y = Yes
UsePayablesLateFees Text 1xAN Indicates whether late payment charges are paid.
N = No, Y = Yes
DefaultCustomerTermsID Terms
DefaultCustomerPriceLevelID PriceLevels
DefaultCustomerTaxCodeID TaxCodes
DefaultCustomerFreightTaxCodeID TaxCodes
DefaultSupplierTermsID Terms
DefaultSupplierTaxCodeID TaxCodes
DefaultSupplierFreightTaxCodeID TaxCodes
LimitTypeID LimitTypes
Overview
The PayrollInformation table presents generic information stored within the General Payroll Information window.
CurrentPayrollYear Integer 4xN Current Payroll Year as displayed within the General Payroll
Information window.
TaxTableRevisionDate Date Formatted by the The Tax Table Revision Date as displayed in the General Payroll
operating system Information window. This is the same date as the one displayed
in the Tax Table Information window.
BaseSalaryWageID Integer 10xN WagesID (Wages) of the wage category containing the Base
Salary wage category.
BaseHourlyWageID Integer 10xN WagesID (Wages) of the wage category containing the Base
Hourly wage category.
BaseDailyWageID Integer 10xN WagesID (Wages) of the wage category containing the Base
Daily wage category.
IncludeTimeBillingInTimesheets Text 1xA Indicates whether time billing information is included in the
preparation of timesheet entries. N = No, Y = Yes
TimesheetWeekStartID Text 3xA The DayNamesID (DayNames) of the record containing the full
definition of the day of the week upon which the timesheet
starts.
SocsoTableRevisionDate Date Formatted by the (Malaysia) The SOCSO Table Revision Date as displayed in the
operating system General Payroll Information window
CPFTableRevisionDate Date Formatted by the (Singapore) The CPF Table Revision Date as displayed in the
operating system General Payroll Information window
PAYROLLINFORMATION 57
Foreign Keys Table sourced
BaseSalaryWageID Wages
BaseHourlyWageID Wages
BaseDailyWageID Wages
TimesheetWeekStartID DayNames
Overview
The LinkedAccounts table reports Links and Defaults presented within the following windows:
Accounts & Banking Linked Accounts
Sales Linked Accounts
Purchases Linked Accounts
UndepositedFundsID Integer 10xN AccountID of the cheque account for Undeposited Funds
ReceivablesDiscountsID Integer 10xN AccountID of Expense or Cost of Sales Account for Discounts
PayablesChequeID Integer 10xN AccountID of the cheque account for Paying Bills
PayablesFreightID Integer 10xN AccountID of Expense or Cost of Sales Account for Freight
EmployerEPFExpenseID Integer 10xN (Malaysia) AccountID of Default Employer EPF Expense Account
WithholdingEPFPayableID Integer 10xN (Malaysia) AccountID of Default Withholding EPF Payable Account
EmployerSOCSOExpenseID Integer 10xN (Malaysia) AccountID of Default Employer SOCSO Expense Account
WithholdingSOCSOPayableID Integer 10xN (Malaysia) AccountID of Default Withholding SOCSO Payable Account
EmployerCPFExpenseID Integer 10xN (Singapore) AccountID of Default Employer CPF Expense Account
LINKEDACCOUNTS 59
Field Name Type Format Description
WithholdingCPFPayableID Integer 10xN (Singapore) AccountID of Default Withholding CPF Payable Account
EmployerFWLExpenseID Integer 10xN (Singapore) AccountID of Default Employer FWL Expense Account
WithholdingFWLPayableID Integer 10xN (Singapore) AccountID of Default Withholding FWL Payable Account
EmployerSDLExpenseID Integer 10xN (Singapore) AccountID of Default Employer SDL Expense Account
WithholdingSDLPayableID Integer 10xN (Singapore) AccountID of Default Withholding SDL Payable Account
ChangeControl Text 6xAN Number used to control change within the record. Value is
incremented whenever the record is updated.
Overview
The Terms table provides information about default credit terms attached to customer and supplier cards, and credit
terms attached to sale invoices and purchase orders. Each record contains a single credit terms set applicable to the
card or transaction. Multiple customer cards, supplier cards, sale invoices and purchase orders may reference one
record in this table.
TermsOfPaymentID TermsOfPayment
TERMS 61
Address
Overview
The Address table displays address and contact information reported within the Profile tab of the Card Information
window of all Customer, Supplier, Employee and Personal cards. Each Customer, Supplier, Employee or Personal
card can have up to five addresses and contacts. A separate record is generated within the Address table for each
Location with non-zero entries. Effectively one card could have up to five records within the Address table.
*** CardRecordID Integer 10xN The CardRecordID of Cards, Customers, Suppliers, Employees, PersonalCards
record that owns this information.
StreetLine1 Text 255xAN First line of cards Address or Ship To Address. Text reported sources from the
first character in the field to the last character before the first carriage return.
StreetLine2 Text 255xAN Second line of cards Address or Ship To Address. Text reported sources from
the first character after the first carriage return in the field to the last character
before the second carriage return.
StreetLine3 Text 255xAN Third line of cards Address or Ship To Address. Text reported sources from the
first character after the second carriage return in the field to the last character
before the third carriage return.
StreetLine4 Text 255xAN Fourth line of cards Address or Ship To Address. Text reported sources from
the first character after the third carriage return in the field to the last
character before the fourth carriage return. Any subsequent text after the
fourth carriage return is not reported.
ChangeControl Text 5xAN Number used to control change within the record. Value is incremented
whenever the record is updated.
ADDRESS 63
Currency
Overview
The Currency table contains information about the local and foreign currencies used within the data file. Information
contained within each record includes parenthesis, linked receivable accounts and linked payable accounts. The
Currency table will report one record per currency.
*** CurrencyCode Text 3xAN 1-3 character code used to identify the currency in MYOB.
*** CurrencyName Text 30xAN The name used to identify the currency.
ExchangeRate Double 6.6xN Rate to exchange this currency into local currency. Local
currency is always 1.
^^^ LinkedReceivablesAccountID Integer 10xN Asset Account for Tracking Receivables in this Currency.
AccountID (Accounts) of linked account.
*** LinkedReceivablesChequeID Integer 10xN Cheque Account for Customer Receipts in this Currency.
AccountID (Accounts) of linked account.
^^^ LinkedReceivablesFreightID Integer 10xN Income Account for Freight in this Currency. AccountID
(Accounts) of linked account.
^^^ LinkedReceivablesDepositsID Integer 10xN Liability Account for Deposits Received in this Currency.
AccountID (Accounts) of linked account.
^^^ LinkedReceivablesDiscountsID Integer 10xN Expense or Cost of Sales Account for Discounts in this Currency.
AccountID (Accounts) of linked account.
^^^ LinkedReceivablesLateFeesID Integer 10xN Income Account for Late Charges in this Currency. AccountID
(Accounts) of linked account.
^^^ LinkedPayablesAccountID Integer 10xN Liability Account for Tracking Payables in this Currency.
AccountID (Accounts) of linked account.
*** LinkedPayablesChequeID Integer 10xN Cheque Account for Paying Bills in this Currency. AccountID
(Accounts) of linked account.
^^^ LinkedPayablesFreightID Integer 10xN Expense or Cost of Sales Account for Freight in this Currency.
AccountID (Accounts) of linked account.
^^^ LinkedPayablesDepositsID Integer 10xN Asset Account for Deposits in this Currency. AccountID
(Accounts) of linked account.
^^^ LinkedPayablesDiscountsID Integer 10xN Expense or (Contra) Account for Discounts in this Currency.
AccountID (Accounts) of linked account.
^^^ LinkedPayablesLateFeesID Integer 10xN Expense Account for Late Charges in this Currency. AccountID
(Accounts) of linked account.
^^^ LinkedPayablesInventoryID Integer 10xN Liability Account for Item Receipts in this Currency. AccountID
(Accounts) of linked account.
CURRENCY 65
Accounts
Overview
Account activity for prior to last year and after this year is contained within the accounts table. Each account will only
have one (if any) prior to last year value and one post this year (if any).
To save space within the Account table and also to assist the user in preparing reports, activity and budget
information is stored within separate tables. All account activity information is stored within the AccountActivity
table. All account budget information is stored within the AccountBudgets table.
*** ParentAccountID Integer 10xN AccountID (Accounts) of accounts record that is this
account’s parent account.
TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this card.
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing
currency information for this account.
*** CurrencyExchangeAccountID Integer 10xN AccountID (Accounts) of the record that is this account’s
currency exchange account.
AccountLevel Integer 1xN The level of the account {0,1,2,3,4}. Only top-level
balance sheet and P & L accounts are 0, the rest have a
number in the level.
LastChequeNumber Text 8xN Last cheque number used for this account.
IsReconciled Text 1xAN Flag for whether the account has been reconciled. ‘Y’ is
reconciled, otherwise ‘N’.
IsCreditBalance Text 1xAN Normal sign of balances for this account (a negative
balance is displayed as a positive number). Debit = ‘N’,
Credit = ‘Y’
OpeningAccountBalance Double 13.2xN Opening balance as shown in edit account and account
opening balances windows.
CurrentAccountBalance Double 13.2xN Current balance of this account. For balance sheet
accounts, includes all pre last year, last year, this year and
post this year activity. For profit & loss accounts, includes
all this year and after this year activity.
PreLastYearActivity Double 13.2xN Net activity within profit & loss account or net movement
within balance sheet accounts prior to the beginning of
last financial year.
LastYearOpeningBalance Double 13.2xN Balance at the beginning of the last financial year.
PostThisYearActivity Double 13.2xN Net activity within profit & loss account or net movement
within balance sheet accounts after the end of this
financial year.
IsTotal Text 1xAN If when reporting, a subtotal is generated for the header.
BankAccountNumber Text 20xAN Bank Account Number as entered within the Banking tab
of the Edit Accounts window.
BankAccountName Text 32xAN Bank Account Name as entered within the Banking tab of
the Edit Accounts window.
ParentAccountID Accounts
CurrencyID Currency
CurrencyExchangeAccountID Accounts
AccountClassificationID AccountClassification
SubAccountClassificationID SubAccountTypes
CashFlowClassificationID CashFlowClassifications
AccountTypeID AccountType
ACCOUNTS 67
AccountActivities
Overview
The AccountActivities table holds information regarding account activity. AccountActivities records are generated
for every activity period including those with a zero balance.
*** AccountID Integer 10xN AccountID (Accounts) or accounts record that owns this information.
FinancialYear Integer 4xN Financial year in which the activity was generated.
Period Integer 2xN The period of the financial year in which the activity was generated.
Amount Double 13.2xN Net activity within profit & loss account or net movement within
balance sheet accounts.
AccountID Accounts
Overview
The AccountBudgets table holds information regarding account budgets. AccountBudgets records are generated for
every budget period including those with a zero balance.
All AccountBudgets records are for the current financial year. MYOB does not provide a user with the ability to store
budgets for several years.
*** AccountID Integer 10xN AccountID (Accounts) of accounts record that owns this information.
Period Integer 2xN The period of the financial year to which the budget information is
associated.
Amount Double 13.2xN Budgeted activity within profit & loss accounts or budgeted balance
of balance sheet accounts.
FinancialYear Integer 4xN Financial year to which the budget value relates.
AccountID Accounts
ACCOUNTBUDGETS 69
PaymentMethods
Overview
Payment Methods can be linked to Customer cards to act as the default Payment Method. Additionally payment
methods can be assigned against receipt transactions such as MoneyReceived, CustomerPayments and
DebitRefunds.
If paymentType=0, Cash
If paymentType=1, Cheque
If paymentType=2, Credit Card
If paymentType=3, Debit Card
If paymentType=4, Other
Overview
By linking the Users table back to the JournalRecords table, a user can ascertain the creator of every transaction
within the data file.
UseTimeslipsLink Text 1xAN Y/N flag indicates if the data file uses the Timeslips Accounting Link.
UseBillingUnits Text 1xAN Y/N flag indicates if activity slips are created using Billing Units.
RoundToID Text 1xAN The method used when rounding timer-calculated times to a full minute
increment.
MinuteIncrement Integer 3xN The full minute multiple used when rounding timer-calculated times.
IncludeItemsInTimeBilling Text 1xAN Y/N flag indicates if the user includes items on Time billing invoices.
When set as 1 (Yes), a number of additional fields within the
Import_TimeBilling_Sales write routine become available.
RoundToID Rounding
USERS 71
ContactLog
Overview
The ContactLog table contains one record for each contact log created. Each card may contain multiple contact logs
entries.
*** ContactLogID Integer 10xN Unique identifier for each contact log.
*** CardRecordID Integer 10xN The ID of the card to which the contact log is attached.
Contact Text 255xAN The contact assigned to the Contact Log Entry.
LogDate Date Formatted by the Date of this entry. This field contains the same data as the Date
operating system field above.
ChangeControl Text 10xAN Number used to record changes to the record. Value is
incremented whenever the record is updated.
The value is reported as 2 * 5 digit numbers and is packed with
leading zeroes if less than 5 digits.
CardRecordID Cards
Customers
Employees
PersonalCards
Suppliers
The AuditTrail table provides details of changes to recorded transactions, tax values, accounts and system settings.
AuditTrail records are only generated when the Security preference Use Audit Trail Tracking is selected.
AuditTypeID Text 1xAN AuditTypeID (AuditTypes) of the record containing the full
audit type definition.
T = Transaction Audit Trail Entry
X = Tax Audit Trail Entry
A = Account Audit Trail Entry
S = System Setting Audit Trail Entry
WasThirteenthPeriod Text 1xAN Y/N flag indicating whether the date originally assigned to
the transaction was a thirteenth period date
IsReconciled Text 1xAN Y/N flag indicating whether the original transaction is
reconciled.
*** UserID Integer 10xN UserID (Users) of the record containing the User ID for the
creator of this AuditTrail record.
UserID Users
AUDITTRAIL 73
ImportantDates
The ImportantDates table displays Important Dates information displayed within the Business Calendar window.
*** CalendarYear Integer 4xN Calendar year to which these details belong.
JournalRecords
Overview
The JournalRecords table provides transaction journal details for all transaction types. The JournalRecords table
replicates information displayed within the Transaction Journal window.
In addition to information displayed within the Transaction Journal window, the JournalRecords table provides the
reconciliation status of the transaction and information about who created the transaction and when the transaction
was created.
*** SetID Integer 10xN SetID (JournalSets) of the record containing the journal type
and the link to the transaction record.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
Date Date Formatted by the Transaction date of this entry. To avoid SQL reserved word
operating system. conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data
operating system. as the Date field above.
*** AccountID Integer 10xN AccountID (Accounts) of the record containing information
about the account associated with this amount.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the
journal set.
IsMultipleJob Text 1xAN Yes/No flag indicating if multiple job allocations are applicable
to this journal record.
EntryIsPurged Text 1xAN Defines if a source window exists for the transaction in the data
file. If entry is purged a source window is not available.
IsExchangeConversion Text 1xAN Amount is added to non-local amount to convert it back to the
local currency.
DateReconciled Date Formatted by the Bank statement date at that the journal record was reconciled.
operating system
*** UserID Integer 10xN UserID (Users) of the record containing the UserID for the
creator of the journal record.
RecordSessionDate Date Formatted by the System date at time of session launch when this record was
operating system created.
RecordSessionTime Text hh:mm:ss System time at point of session launch in that this record was
created. Stored as seconds after midnight. Required to be
converted into usable format.
SetID JournalSets
AccountID Accounts
JobID Jobs
ReconciliationStatusID ReconciliationStatus
UserID Users
Overview
The JournalSets table provides a link between the JournalRecords table and the following tables:
General Journals
Money Spent
Money Received
Sale Invoices
Purchase Orders
Customer Payments
Customer Finance Charges
Customer Discounts
Customer Deposits
Supplier Payments
Supplier Finance Charges
Supplier Discounts
Supplier Deposits
Inventory Adjustments
Inventory Transfers
The JournalSets table can be linked with the JournalRecords table via the SetID foreign key within the JournalRecords
table.
JournalTypeID Text 3xAN JournalTypeID (JournalTypes) of the record containing the full journal
type definition. (See the JournalTypes Table for more information).
SourceID Integer 10xN SourceID of the record containing more information about the journal
record.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this transaction.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
JOURNALSETS 77
Foreign Keys Table sourced Notes
JournalTypeID JournalTypes
CurrencyID Currency
Overview
The GeneralJournals table displays information that is static to all lines of a General Journal transaction. Details about
entries made within the allocation table are detailed within the GeneralJournalLines table.
Only one GeneralJournals record is required for each General Journal cash set.
Date Date Formatted by the Transaction date of this entry. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field above.
IsThirteenthPeriod Text 1xAN If the transaction was recorded as a thirteenth period transaction.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status is tax
inclusive.
IsAutoRecorded Text 1xAN Yes/No flag indicating if the General journal entry was
automatically recorded.
CurrencyID Integer 10xN The CurrencyID of the record containing currency information for
this General journal entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
CategoryID Integer 10xN The CategoryID assigned to the General Journal entry.
CurrencyID Currency
CategoryID Categories
GENERALJOURNALS 79
GeneralJournalLines
Overview
The GeneralJournalLines table produces a listing of allocation lines displayed within the allocation table of the
General Journal Entry window.
Only entries within the allocation table of the General Journal entry are reported in the GeneralJournalLines table.
Entries within the GeneralJournalLines table are displayed in the originating currency.
Information static to all entries within the GeneralJournalLines table is contained within the GeneralJournals table.
The GeneralJournals table is accessed via the GeneralJournalID foreign key within the GeneralJournalLines table.
*** GeneralJournalID Integer 10xN GeneralJournalID of the record containing the header information
such as memo, and date for this line of the General Journal entry.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** AccountID Integer 10xN The AccountID of the record containing account information for this
line of the General Journal entry.
^^^ JobID Integer 10xN JobID of the record containing the job for this line of the General
Journal entry.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the
General Journal line.
TaxInclusiveAmount Double 13.2xN Debit amounts are reported in the positive parenthesis and credit
amounts are reported in the negative parenthesis. The amounts here
are displayed in their originating currencies. The transaction
exchange rate is found within the GeneralJournals table.
^^^ TaxCodeID Integer 10xN TaxCodeID of the record containing the Tax Code for this line of the
General Journal Entry.
GeneralJournalID GeneralJournals
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
Overview
The MoneySpent table displays information that is static to all lines of a Spend Money transaction. Details about
entries made within the allocation table are detailed within the MoneySpentLines table.
Only one MoneySpent record is required for each Spend Money cash set.
Date Date Formatted by the Transaction date of this entry. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system data as the Date field above.
*** IssuingAccountID Integer 10xN The AccountID (Accounts) of the record containing account
information about the cheque account or credit card account
assigned as the issuing cheque/credit card account for this
transaction.
^^^ CardRecordID Integer 10xN The card attached to this transaction found within the Cards,
Customers, Suppliers, Employees or PersonalCards tables.
IsTaxInclusive Text 1xA Yes/No flag indicating if the transaction is tax inclusive
IsAutoRecorded Text 1xAN Y/N flag indicating if the money spent entry was
automatically recorded.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this General Journal entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
MONEYSPENT 81
Field Name Type Format Description
CategoryID Integer 10xN The CategoryID assigned to the Spend Money entry.
IssuingAccountID Accounts
CurrencyID Currency
PaymentDeliveryID InvoiceDelivery
CategoryID Categories
Overview
The MoneySpentLines table produces a listing of allocation lines displayed within the allocation table of the Spend
Money entry window. Only entries within the allocation table of the Spend Money entry are reported in the
MoneySpentLines table
Entries within the MoneySpentLines table is displayed in their originating currency.
Information static in all entries within the MoneySpentLines table are contained within the MoneySpent table. The
MoneySpent table is accessed via the MoneySpentID foreign key within the MoneySpentLines table.
*** MoneySpentID Integer 10xN MoneySpentID (MoneySpent) of the record containing the header information
such as memo, and date for this line of the Spend Money transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** AccountID Integer 10xN The AccountID (Accounts) of the record containing account information for this
line of the Spend Money transaction.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the Spend Money
transaction.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the money spent
line
^^^ CodeID Integer 10xN CodeID (Codes) of the record containing the code for this line of the Spend
Money transaction.
MoneySpentID MoneySpent
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
MONEYSPENTLINES 83
MoneyReceived
Overview
The MoneyReceived table displays information that is static to all lines of a Receive Money transaction. Details about
entries made within the allocation table are detailed within the MoneyReceivedLines table.
Only one MoneyReceived record is required for each Receive Money cash set.
Date Date Formatted by the Transaction date of this entry. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system data as the Date field above.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** RecipientAccountID Integer 10xN The AccountID (Accounts) of the record containing
account information about the cheque account or credit
card account assigned as the depositing cheque/credit
card account for this transaction.
PaymentBankAccountName Text 32xAN Valid characters are 0-9 A-Z & - / . '
^^^ CardRecordID Integer 10xN The payer attached to this makes a deposit transaction
found within the Cards, Customers, Suppliers, Employees
or PersonalCards table.
IsTaxInclusive Text 1xA Yes/No flag indicating if the transaction is Tax inclusive
IsAutoRecorded Text 1xa Y/N flag to indicate if the money received was
automatically recorded.
DepositStatusID Text 1xAN (DepositStatus) of the record containing the full deposit
status definition
CategoryID Integer 10xN The CategoryID assigned to the Receive Money entry
RecipientAccountID Accounts
CurrencyID Currency
MethodOfPaymentID PaymentMethods
DepositStatusID DepositStatus
CategoryID Categories
MONEYRECEIVED 85
MoneyReceivedLines
Overview
The MoneyReceivedLines table produces a listing of allocation lines displayed within the allocation table of the
Receive Money entry window. Only entries within the allocation table of the Receive Money entry are reported in the
MoneyReceivedLines table.
Entries within the MoneyReceivedLines table are displayed in their originating currency.
Information static in all entries within the MoneyReceivedLines table is contained within the MoneyReceived table.
The MoneyReceived table is accessed via the MoneyReceivedID foreign key within the MoneyReceivedLines table.
*** MoneyReceivedID Integer 10xN MoneyReceivedID (MoneyReceived) of the record containing the header
information such as memo, and date for this line of the make a deposit
transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** AccountID Integer 10xN The AccountID (Accounts) of the record containing account information for
this line of the make a deposit entry.
IsMultipleJob Text 1xAN Y/N flag to indicate if multiple job allocations are applicable to the money
received line.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the make a
deposit.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line.
MoneyReceivedID MoneyReceived
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
Overview
The Sales table displays information that is static to all lines of a Sale Invoice transaction. Details about entries made
within the allocation table are detailed within the SaleLines table.
The Sales table contains one record for each sale created. This includes any Open, Closed, Credit, Quote or Order
invoices.
Both historical and post conversion sales is included in the Sales table. Historical sale invoices contain only a fraction
of the information contained within a post conversion sale invoice, therefore a large number of fields will report as 0
within historical sale records.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) of the
record containing customer information for this sale invoice entry.
IsHistorical Text 1xAN If the sale invoice was generated through the historical sale
window.
*** BackorderSaleID Integer 10xN The set number to which this sale invoice belongs. Used to link
sale invoices together.
Date Date Formatted by the Date of the sale invoice entry. To avoid SQL reserved word
operating system conflicts, use the InvoiceDate field below.
InvoiceDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field above.
IsThirteenthPeriod Text 1xAN If the transaction was recorded as a thirteenth period transaction.
ShipToAddressLine1 Text 255xAN First line of the ShipTo address text. Only relevant when the Type
is Service or Item.
ShipToAddressLine2 Text 255xAN Second line of the ShipTo address text. Only relevant when the
Type is Service or Item.
ShipToAddressLine3 Text 255xAN Third line of the ShipTo address text. Only relevant when the Type
is Service or Item.
ShipToAddressLine4 Text 255xAN Fourth line of the ShipTo address text. Only relevant when the
Type is Service or Item.
InvoiceTypeID Text 1xAN InvoiceTypeID (InvoiceType) of the record containing the full sale
type definition.
SALES 87
Field Name Type Format Description
InvoiceStatusID Text 2xAN StatusID (Status) of the record containing the full sale invoice
status definition.
*** TermsID Integer 10xN The TermsID (Terms) of the record containing terms information
for this sale entry.
TotalLines Double 13.2xN The sum of all tax exclusive line amounts applicable to this sale
invoice.
TaxExclusiveFreight Double 13.2xN The Tax exclusive freight amount applicable to this sale invoice.
TaxInclusiveFreight Double 13.2xN The Tax inclusive freight amount applicable to this sale invoice.
^^^ FreightTaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code
applied against the Freight amount on this sale invoice.
TotalTax Double 13.2xN The total of all tax amounts applicable to this sale invoice.
TotalPaid Double 13.2xN The total of all payments made against this sale invoice.
TotalDeposits Double 13.2xN The total of all deposit payments made against a sale invoice. This
field can only have a non-zero balance when the status is pending.
TotalCredits Double 13.2xN The total credits applied against this sale invoice from another sale
invoice, OR The total credits applied from this sale invoice to
another sale invoice.
TotalDiscounts Double 13.2xN The total amount of discounts applied against this sale invoice.
OutstandingBalance Double 13.2xN The amount still payable on the sale invoice.
^^^ SalesPersonID Integer 10xN The CardRecordID (Cards) or EmployeeID (Employees) of the
record containing salesperson information for this sale invoice
entry.
^^^ ShippingMethodID Integer 10xN The Shipping MethodID (ShippingMethods) of the record
containing Shipping information for this sale invoice entry.
^^^ ReferralSourceID Integer 10xN The ReferralSourceID (ReferralSources) of the record containing
referral source for this sale invoice entry.
IsAutoRecorded Text 1xAN Y/N flag to indicate if the sale invoice was automatically recorded.
DaysTillPaid Integer 10xN Number of days taken until the sale invoice was paid in full.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
^^^ CategoryID Integer 10xN The CategoryID assigned to the Sale Invoice.
LinesPurged Text 1xAN Y/N flag indicates if the sale lines have been purged.
PreAuditTrail Text 1xAN Y/N flag indicates if the invoice involves inventoried stock items
and was recorded using a non inventory audit trail version of
MYOB accounting software.
CardRecordId Cards Cards are contained in both the Customers and the Cards tables
Customers
InvoiceTypeID InvoiceType
InvoiceStatusID Status
TermsID Terms
SalespersonID Cards Cards are contained in both the Employees and the Cards tables
Employees
ReferralSourceID ReferralSources
TaxCodeID TaxCodes
ShippingMethodID Methods
InvoiceDeliveryID InvoiceDelivery
CurrencyID Currency
CategoryID Categories
SALES 89
SaleLines
Overview
The SaleLines table contains information that is static to invoice lines of all invoice types. Further detailed information
generic to a particular type of invoice is stored within the ServiceSaleLines table, the ItemSaleLines table, the
ProfessionalSaleLines table, the TimeBillingSaleLines table or the MiscSaleLines table. This includes any Open,
Closed, Credit, Quote or Order invoices.
Both historical and post conversion sales is included in the SaleLines table. Historical sale invoice lines contain only a
fraction of the information contained within a post conversion sale invoice line, therefore a large number of fields
will report as 0 within historical sale line records.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice to which this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
Value of D only (Data).
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax for this line of the sales invoice.
TaxBasisAmountIsInclusive Text 1xA Yes/No flag indicating if tax basis amount is inclusive. Note: To provide
consistency between comparisons the TaxBasisAmount should be
converted to a common basis of either all inclusive or all exclusive.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the sale line.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the sale invoice.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line of
the sale invoice.
SaleID Sales
LineTypeID LineType
JobID Jobs
TaxCodeID TaxCodes
Overview
The ServiceSaleLines table contains information that is static to lines of Service type sale invoices. Historical sale
invoices are classified as Service sale invoices. Therefore, if historical sale invoices are recorded within the company
file, they are displayed within the ServiceSaleLines table.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice to that this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
Value of D only.
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account information
for this line of the sale invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax for this line of the sales invoice.
TaxBasisAmountIsInclusive Text 1xA Yes/No flag indicating if tax basis amount is inclusive. Note: To provide
consistency between comparisons the TaxBasisAmount should be
converted to a common basis of either all inclusive or all exclusive.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the sale line.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the sale invoice.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the Tax code for this line
of the sale invoice.
SaleLineID SaleLines
SaleID Sales
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
SERVICESALELINES 91
ItemSaleLines
Overview
The ItemSaleLines table contains information that is static to lines of Item type sale invoices.
Historical sale invoices are not reported in the ItemSaleLines table.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice to that this line
belongs.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full
line type definition. Value of D only (Data).
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are
applicable to the sale line.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this
line of the sale invoice.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the
tax code for this line of the sale invoice.
TaxBasisAmount Double 13.2xN The taxable amount used to calculate tax upon this
line of the sale invoice.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is
stored as a tax inclusive or a tax exclusive value.
^^^ ItemID Integer 10xN The ItemID (Items) of the record containing item
information for this line of the sale invoice.
Discount Double 9xN (with a maximum Discount rate applicable to the line of the sale invoice.
of two decimal places.
Decimal point counts
as one place.)
CostOfGoodsSoldAmount Double 13.2xN The cost of goods sold amount attributable to this line
of the sale invoice.
SaleLineID SaleLines
SaleID Sales
LineTypeID LineType
ItemID Items
JobID Jobs
TaxCodeID TaxCodes
SalesTaxCalBasisID PriceLevels
LocationID Locations
ITEMSALELINES 93
ProfessionalSaleLines
Overview
The ProfessionalSaleLines table contains information that is static to lines of Professional type sale invoices. Historical
sale invoices are not reported in the ProfessionalSaleLines table.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice to that this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line
type definition. Value of D only (Data).
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account
information for this line of the sale invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax for this line of the sales
invoice.
TaxBasisAmountIsInclusive Text 1xA Yes/No flag indicating if tax basis amount is inclusive. Note:
To provide consistency between comparisons the
TaxBasisAmount should be converted to a common basis of
either all inclusive or all exclusive.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of
the sale invoice.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to
the sale line.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code
for this line of the sale invoice.
SaleLineID SaleLines
SaleID Sales
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
PROFESSIONALSALELINES 95
TimeBillingSaleLines
Overview
The TimeBillingSaleLines table contains information that is static to lines of Time Billing type sale invoices.
Historical sale invoices are not reported in the TimeBillingSaleLines table.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice to which this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type
definition. Value of D only (Data).
^^^ ActivityID Integer 10xN The ActivityID (Activities) of the record containing activity
information for this line of the sale invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the sale
invoice.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is stored as a tax
inclusive or a tax exclusive value.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the
sale invoice.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to
the sale line.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for
this line of the sale invoice.
EstimatedCost Double 13.2xN The estimated cost attributable to this line of the sale invoice.
^^^ LocationID Integer 10xN LocationID (Locations) of the Location record containing full
details of the location assigned to this line of the item order.
SaleLineID SaleLines
SaleID Sales
LineTypeID LineType
ActivityID Activities
JobID Jobs
TaxCodeID TaxCodes
LocationID Locations
TIMEBILLINGSALELINES 97
MiscSaleLines
Overview
The MiscSaleLines table contains information that is static to lines of Miscellaneous type sale invoices. Historical sale
invoices are not reported in the MiscSaleLines table.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice to that this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
Value of D only.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the sale invoice.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the sale line.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the sale invoice.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is stored as a tax inclusive
or a tax exclusive value.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line of
the sale invoice.
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account information
for this line of the sale invoice.
SaleLineID SaleLines
SaleID Sales
LineTypeID LineType
JobID Jobs
AccountID Accounts
TaxCodeID TaxCodes
Overview
The Purchases table displays information that is static to all lines of a Purchase Order transaction. Details about
entries made within the allocation table are detailed within the PurchaseLines table.
The Purchases table contains one record for each Purchase created. This includes any Open, Closed, Credit, Quote
or Order purchases.
Both historical and post conversion purchases are included in the Purchases table. Historical purchase orders contain
only a fraction of the information contained within a post conversion purchase order, therefore, a large number of
fields will report as 0 within historical purchase records.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or SupplierID (Suppliers) of the
record containing supplier information for this purchase order
entry.
IsHistorical Text 1xAN If the purchase order was generated via the Historical
Purchase window.
*** BackorderPurchaseID Integer 10xN The set number to which this purchase order belongs. Used to
link purchase orders together.
Date Date Formatted by the Date of the purchase order entry. To avoid SQL reserved word
operating system conflicts, use the PurchaseDate field below.
PurchaseDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system data as the Date field above.
PurchaseTypeID Text 1xAN The InvoiceTypeID (InvoiceType) of the record containing the
full purchase type definition.
PurchaseStatusID Text 2xAN The StatusID (Status) of the record containing the full
purchase order status definition.
PURCHASES 99
Field Name Type Format Description
OrderStatusID Text 2xAN The OrderStatusID (OrderStatus) of the record containing the
full Order Status of the purchase.
ReversalLinkID Integer 10xN The PurchaseID (Purchases) of the record that is the reversal of
the receive item purchase order.
*** TermsID Integer 10xN The TermsID (Terms) of the record containing terms
information for this purchase entry.
TotalLines Double 13.2xN The sum of all tax exclusive line amounts applicable to this
purchase order.
TaxExclusiveFreight Double 13.2xN The tax exclusive Freight amount applicable to this purchase
order.
TaxInclusiveFreight Double 13.2xN The tax inclusive Freight amount applicable to this purchase
order.
^^^ FreightTaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the Tax Code
applied against the Freight amount on this purchase order.
TotalTax Double 13.2xN The total of all Tax amounts applicable to this purchase order.
TotalPaid Double 13.2xN The total of all payments made against this purchase order.
TotalDeposits Double 13.2xN The total of all deposit payments made against a purchase
order.
TotalDebits Double 13.2xN The total debits applied against this purchase order from
another purchase order, OR the total debits applied from this
purchase order to another purchase order.
TotalDiscounts Double 13.2xN The total amount of discounts applied against this purchase
order.
OutstandingBalance Double 13.2xN The amount still payable on the purchase order.
^^^ ShippingMethodID Integer 10xN The ShippingID (Shipping) of the record containing ship via
information for this purchase order entry.
IsAutoRecorded Text 1xAN Y/N flag indicating if the purchase order was automatically
recorded.
DaysTillPaid Integer 10xN Number of days taken until the purchase order was paid in
full.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing the
currency information for this order entry.
IsTaxInclusive Text 1xA Y/N flag indicating if the transaction status is tax inclusive.
Note: Historical Purchases can only be recorded as tax
inclusive. All historical purchases should therefore report as Y.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
^^^ CategoryID Integer 10xN The CategoryID assigned to the Purchase Order.
LinesPurged Text 1xAN Y/N flag indicates if the lines of the purchase have been
purged.
PreAuditTrail Text 1xAN Y/N flag indicates if the purchase order involves inventoried
stock items and was recorded using a non inventory audit trail
version of MYOB accounting software.
CardRecordID Cards Cards are contained in both the Suppliers and the Cards tables.
Suppliers
PurchaseTypeID InvoiceType
PurchaseStatusID Status
OrderStatusID OrderStatus
ReversalLinkID Purchases
TermsID Terms
FreightTaxCodeID TaxCodes
ShippingMethodID Methods
InvoiceDeliveryID InvoiceDelivery
CurrencyID Currency
CategoryID Categories
PURCHASES 101
PurchaseLines
Overview
The PurchaseOrderLines table contains information that is static to purchase lines of all purchase order types. Further
detailed information generic to a particular type of invoice is stored within either the ServicePurchaseLines table, the
ItemPurchaseLines table, the ProfessionalPurchaseLines table, the TimeBillingPurchaseLines table or the
MiscPurchaseLines table. This includes any Open, Closed, Credit, Quote or Order purchases.
Both historical and post conversion purchases are included in the PurchaseLines table. Historical purchase order lines
contain only a fraction of the information contained within a post conversion purchase order line, so many fields will
report as 0 within historical purchase line records.
*** PurchaseID Integer 10xN The PurchaseID (Purchases) of the purchase order to that this line belongs.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
Value of D only (Data).
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the purchase
line. Multiple jobs cannot be assigned to Purchase Orders. IsMultipleJob will
always be N within PurchaseLines.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the purchase
order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the Purchase Order.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is stored as a tax inclusive or
a tax exclusive value.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line of
the purchase order.
PurchaseID Purchases
LineTypeID LineType
JobID Jobs
TaxCodeID TaxCodes
Overview
The ServicePurchaseLines table contains information that is static to lines of Service type purchase orders.
Historical purchase orders are classified as Service purchase orders. Therefore, if historical purchase orders are
recorded within the data file, they are displayed within the ServicePurchaseLines table.
*** PurchaseLineID Integer 10xN The PurchaseLineID (PurchaseLines) of the corresponding record within the
PurchaseLines table.
*** PurchaseID Integer 10xN The PurchaseID (Purchases) of the purchase order to which this line belongs.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
Value of D only.
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account information for
this line of the purchase order.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the service
purchase line.
Multiple jobs cannot be assigned to ServicePurchase Orders. IsMultipleJob will
always be N within ServicePurchaseLines.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the purchase order.
TaxBasisAmountIsInclusiv Text 1xA Y/N flag indicating if the tax calculation amount is stored as a tax inclusive or a
e tax exclusive value.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line of
the purchase order.
PurchaseLineID PurchaseLines
PurchaseID Purchases
LineTypeID LineType
SERVICEPURCHASELINES 103
Foreign Keys Table sourced
JobID Jobs
AccountID Accounts
TaxCodeID TaxCodes
Overview
The ItemPurchaseLines table contains information that is static to lines of Item type purchase orders.
Historical purchase orders are not reported in the ItemPurchaseLines table.
*** PurchaseID Integer 10xN The PurchaseID of the purchase order to which this
line belongs.
LineNumber Integer 10xN The sequence of the entry within the purchase order
set.
LineTypeID Text 1xAN LineTypeID of the record containing the full line type
definition. Value of D only.
^^^ ItemID Integer 10xN The ItemID of the record containing item information
for this line of the purchase order.
Discount Double 9xN (with a maximum Discount rate applicable to the line of the purchase
of two decimal places. order.
Decimal point counts
as one place.)
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are
applicable to the purchase line. Multiple jobs cannot
be assigned to Item Purchase Orders. IsMultipleJob
will always be N within ItemPurchaseLines.
^^^ JobID Integer 10xN JobID of the record containing the job for this line of
the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of
the Purchase Order.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is
stored as a tax inclusive or a tax exclusive value.
ITEMPURCHASELINES 105
Field Name Type Format Description
^^^ TaxCodeID Integer 10xN TaxCodeID of the record containing the Tax code for
this line of the purchase order.
Received Double 8.3xN The quantity of items received. Positive quantities are
reported in the positive parenthesis and negative
quantities are reported in the negative parenthesis.
PurchaseLineID PurchaseLines
PurchaseID Purchases
LineTypeID LineType
ItemID Items
JobID Jobs
TaxCodeID TaxCodes
LocationID Locations
Overview
The ProfessionalPurchaseLines table contains information that is static to lines of Professional type purchase orders.
Historical purchase orders are not reported in the ProfessionalPurchaseLines table.
*** PurchaseID Integer 10xN The PurchaseID (Purchases) of the purchase order to which
this line belongs.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line
type definition. Value of D only (Data).
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are
applicable to the purchase line. Multiple jobs cannot be
assigned to Professional Purchase Orders. IsMultipleJob
will always be N within ProfessionalPurchaseLines.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of
the purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the
Purchase Order.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is stored
as a tax inclusive or a tax exclusive value.
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing
account information for this line of the purchase order.
PurchaseLineID PurchaseLines
PurchaseID Purchases
PROFESSIONALPURCHASELINES 107
Foreign Keys Table sourced
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
Overview
The MiscPurchaseLines table contains information that is static to lines of Miscellaneous type purchase orders.
Historical purchase orders are not reported in the MiscellaneousPurchaseLines table.
*** PurchaseID Integer 10xN The PurchaseID (Purchases) of the purchase order to that this line belongs.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
Value of D only (Data).
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the purchase
line. Multiple jobs cannot be assigned to Miscellaneous Purchase Orders.
IsMultipleJob will always be N within MiscPurchaseLines.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the job for this line of the purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line of
the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the Purchase Order.
TaxBasisAmountIsInclusive Text 1xA Y/N flag indicating if the tax calculation amount is stored as a tax inclusive or a
tax exclusive value.
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account information for
this line of the purchase order.
PurchaseLineID PurchaseLines
PurchaseID Purchases
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
MISCPURCHASELINES 109
CustomerPayments
Overview
The Customer Payments table produces a summary of information that is static to all transaction lines within
Customer Payment entries. The CustomerPayments table should reflect what is displayed within the header of the
Customer Payment window.
Only one Customer Payment record is required for each Customer Payment cash set. The CustomerPayment record
is sourced from the first record in the customer payment cash set.
Included in the Customer Payments table is the FinanceCharge field and the ExchangeGainLoss field. When the user
records a finance charge within a Customer Payment entry, a Sales Journal entry is created that defines that accounts
are affected by the additional income. These records are contained within the CustomerFinanceCharges table
below.
The CustomerFinanceCharges table cannot be linked with the CustomerPayments table as no invoicePrt or
CustomerPayment link exists within the Finance Charge record.
Date Date Formatted by the Date of the customer payment entry. To avoid SQL
operating system reserved word conflicts, use the TransactionDate field
below.
TransactionDate Date Formatted by the Date of this transaction entry. This field contains the same
operating system data as the Date field above.
^^^ MethodOfPaymentID Integer 10xN The PaymentMethodID of the record containing the
Method of Payment.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status
is tax inclusive. Note: Customer Payment entries and thus
customer finance charge entries cannot be recorded as tax
inclusive. IsTaxInclusive should always be N for customer
finance charge entries.
FinanceCharge Double 13.2xN Finance Charge amount applicable to the deposit. All
amounts within the CustomerPayments table are displayed
in their originating currency.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** RecipientAccountID Integer 10xN The cheque account or credit card account assigned as the
depositing cheque/credit card account for this transaction.
DepositStatusID Text 1xAN DepositStatus of the record containing the full deposit
status definition.
D = Direct
U = Unselected
S = Selected
T = Transferred
RecipientAccountID Accounts
CurrencyID Currency
CardRecordID Cards Card will be contained in both the Customers and the
Customers Cards tables.
MethodOfPaymentID PaymentMethods
DepositStatusID DepositStatus
CUSTOMERPAYMENTS 111
CustomerPaymentLines
Overview
The CustomerPaymentLines table produces a listing of entries displayed within the allocation table of the Customer
Payment entry window.
Entries within the CustomerPaymentLines table are displayed in their originating currency.
Information static in all entries within the CustomerPaymentLines table is contained within the CustomerPayments
table. The CustomerPayments table is accessed via the CustomerPaymentID foreign key within the
CustomerPaymentLines table.
*** CustomerPaymentID Integer 10xN CustomerPaymentID of the record containing the header
information such as memo, and date for this line of the
Customer Payment transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice record to which this
amount was applied against.
IsDepositPayment Text 1xAN Yes/No flag to determine if the payment is made against a
pending invoice, the payment is a deposit. N = No, Y = Yes.
CustomerPaymentID CustomerPayments
SaleID Sales
Overview
The Customer Finance Charges table produces details of Customer Finance Charge applied within the Customer
Payment entry window. There can only be Customer Finance Charge per Customer Payment. It is, therefore, not
necessary to generate a Customer Finance Charges Lines table.
Only one Customer Finance Charge record is required for each Customer Finance Charge cash set. The
CustomerFinanceCharges record is sourced from the first record in the cash set.
Entries within the CustomerPaymentLines table are displayed in their originating currency.
Date Date Formatted by the Date of the customer finance charge entry. To avoid
operating system SQL reserved word conflicts, use TransactionDate.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the
operating system same data as the Date field above.
Memo Text 255xAN Memo text of the customer finance charge entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** LateChargesAccountID Integer 10xN The account (Accounts) debited or credited with the
finance charge.
CUSTOMERFINANCECHARGES 113
Field Name Type Format Description
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default
status is Tax inclusive. Note: Customer Payment
entries and thus customer finance charge entries
cannot be recorded as Tax inclusive. IsTaxInclusive
should always be N for customer finance charge
entries.
LateChargesAccountID Accounts
CurrencyID Currency
CardRecordID Cards Card will be contained in both the Customers and the
Customers Cards tables.
MethodOfPaymentID PaymentMethods
Overview
NOTE : The CustomerDiscounts table will only display early payment discounts generated by versions prior to MYOB
Premier v7 or MYOB Accounting/Plus v13. Early payment discounts applied using MYOB Premier v7 or MYOB
Accounting/Plus v13 or later will be reported within the SettledCredits table.
The CustomerDiscounts table displays information that is static to all lines of a CustomerDiscount transaction.
Details about discounts provided within the allocation table are detailed within the CustomerDiscountLines table.
Only one CustomerDiscounts record is required for each Customer Discount cash set.
The CustomerDiscounts table cannot be linked with the CustomerPayments table as no invoicePrt or
CustomerPayment link exists within the Discount record. Both the Customer Payment and the Customer Discount
have a common point in that they will both point to the same invoice record. Only one discount can be applied
against a sale invoice. The same invoice could however have an unlimited number of customer payments made
against it. Transaction dates can assist us in matching discounts with customer payments but if more than one
customer payment was made against the same invoice on the same day, it is impossible to match the discount with
its original customer payment record.
Entries within the CustomerDiscounts table are displayed in their originating currency.
Date Date Formatted by the Date of the customer discount entry. To avoid SQL
operating system reserved word conflicts, use the TransactionDate field
below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the
operating system same data as the Date field above.
CUSTOMERDISCOUNTS 115
Field Name Type Format Description
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** DiscountAccountID Integer 10xN The account debited or credited with the discount.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default
status is tax inclusive. Note: Customer Payment entries
and thus customer discount entries cannot be recorded
as tax inclusive. IsTaxInclusive should always be N for
customer discount entries.
DiscountsAccountID Accounts
CurrencyID Currency
CardRecordID Cards Card will be contained in both the Customers and the
Customers Cards tables.
MethodOfPaymentID PaymentMethods
Overview
NOTE : The CustomerDiscountLines table will only display early payment discounts generated by versions prior to MYOB
Premier v7 or MYOB Accounting/Plus v13. Early payment discounts applied using MYOB Premier v7 or MYOB
Accounting/Plus v13 or later will be reported within the SettledCreditLines table.
The CustomerDiscountLines table produces a listing of discount amounts displayed within the allocation table of the
Customer Payment entry window.
Entries within the CustomerDiscountLines table are displayed in their originating currency.
Information static in all entries within the CustomerDiscountLines table is contained within the CustomerDiscounts
table. The CustomerDiscounts table is accessed via the CustomerDiscountID foreign key within the
CustomerDiscountLines table.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice record to that this amount
was applied against.
CustomerDiscountID CustomerDiscounts
SaleID Sales
CUSTOMERDISCOUNTLINES 117
CustomerDeposits
Overview
The Customer Deposits table produces details of deposit amounts transferred from the deposit control account and
applied against an invoice. Only one Customer Deposit record is created for all previous deposits made. It is,
therefore, not necessary to generate a Customer Deposit Lines table.
Entries within the CustomerDeposits table are displayed in their originating currency.
The CustomerDeposits table cannot be linked with the original Customer Payment record as no CustomerPayment
link exists within the Deposit applied record. Both the Customer Payment and the Customer Deposit have a
common point in that they will both point to the same invoice record. More than one deposit can be applied against
a pending sale invoice but when the pending sale invoice is converted into an actual invoice and the deposits are
applied, all previous deposits are applied in one lump sum.
Date Date Formatted by the Date of the customer deposit application. To avoid SQL
operating system reserved word conflicts, use the TransactionDate field
below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system data as the Date field above.
Memo Text 255xAN Memo text of the customer deposit applied entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** CustomerDepositsAccountID Integer 10xN The account debited or credited when the deposit was
released.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice record to that the
deposit amount was applied against.
*** CardRecordID Integer 10xN The customer attached to this deposit application.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status
is Tax inclusive. Note: Customer Payment entries and thus
customer deposit applied entries cannot be recorded as
Tax inclusive. IsTaxInclusive should always be N for
customer deposit applied entries.
ExchangeGainLoss Double 13.2xN Gains are reported as a positive amount applied. Losses are
reported as a negative amount applied.
CurrencyID Currency
CustomerDepositsAccountID Accounts
CardRecordID Cards Card will be contained in both the Customers and the
Customers Cards tables
SaleID Sales
CUSTOMERDEPOSITS 119
SupplierPayments
Overview
The Supplier Payments table produces a summary of information that is static to all transaction lines within Supplier
Payment entries. The SupplierPayments table should reflect what is displayed within the header of the Supplier
Payment window.
Included in the Supplier Payments table are the FinanceCharge field and the ExchangeGainLoss field. When the user
records a finance charge within a Supplier Payment entry, a Purchases Journal entry is created that defines that
accounts are affected by the additional expense. These records are contained within the SupplierFinanceCharges
table below. The SupplierFinanceCharges table is unable to be linked with the SupplierPayments table as no
invoicePrt or SupplierPayment link exists within the Finance Charge record.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system data as the Date field above.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** IssuingAccountID Integer 10xN The cheque account or credit card account assigned as the
issuing cheque/credit card account for this transaction.
CardRecordID Integer 10xN The supplier attached to this supplier payment transaction.
IssuingAccountID Accounts
CardRecordID Cards Cards are contained in both the Supplier and the Cards tables
Suppliers
CurrencyID Currency
PaymentDeliveryID InvoiceDelivery
SUPPLIERPAYMENTS 121
SupplierPaymentLines
Overview
The SupplierPaymentLines table produces a listing of entries displayed within the allocation table of the Supplier
Payment entry window. Entries within the SupplierPaymentLines table is displayed in their originating currency.
Information static to all entries within the SupplierPaymentLines table is contained within the SupplierPayments
table. The SupplierPayments table is accessed via the SupplierPaymentID foreign key within the
SupplierPaymentLines table.
The SupplierPaymentLines table produces a listing of allocation lines within a Supplier Payment entry. It should
reflect what is displayed within the allocation table of the Supplier Payments window.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** PurchaseID Integer 10xN PurchaseID of the purchase order record to which this amount was
applied against.
IsDepositPayment Text 1xAN If the payment is made against an order, the payment is a deposit.
SupplierPaymentID SupplierPayments
PurchaseID Purchases
Overview
The Supplier Finance Charges table produces details of Supplier Finance Charge applied within the Supplier
Payment entry window. There can only be Supplier Finance Charge per Supplier Payment. It is, therefore, not
necessary to generate a Supplier Finance Charges Lines table.
Only one Supplier Finance Charge record is required for each Supplier Finance Charge cash set. The
SupplierFinanceCharges record is sourced from the first record in the cash set.
Entries within the SupplierPaymentLines table is displayed in their originating currency.
Date Date Formatted by the Date of the supplier finance charge entry. To avoid SQL
operating system reserved word conflicts, use TransactionDate.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system data as the Date field above.
Memo Text 255xAN Memo text of the supplier finance charge entry.
IsTaxInclusive Text 1xA If the transactions default status is tax inclusive. Supplier
payment entries and thus supplier finance charge entries
cannot be recorded as tax inclusive. IsTaxInclusive should
always be N for supplier finance charge entries.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this supplier finance charge entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
*** LateChargesAccountID Integer 10xN The account debited or credited with the finance charge.
CardRecordID Integer 10xN The supplier attached to this finance charge transaction.
SUPPLIERFINANCECHARGES 123
Foreign Keys Table sourced Notes
LateChargesAccountID Accounts
CurrencyID Currency
Overview
NOTE : The SupplierDiscounts table will only display early payment discounts generated by versions prior to MYOB Premier
v7 or MYOB Accounting/Plus v13. Early payment discounts applied using MYOB Premier v7 or MYOB Accounting/Plus v13 or
later will be reported within the SettledDebits table.
The SupplierDiscounts table displays information that is static to all lines of a SupplierDiscount transaction. Details
about discounts provided within the allocation table are detailed within the SupplierDiscountLines table.
Only one SupplierDiscounts record is required for each Supplier Discount cash set.
The SupplierDiscounts table cannot be linked with the Payments table as no invoicePrt or SupplierPayment link
exists within the Discount record. Both the Supplier Payment and the Supplier Discount have a common point in
that they will both point to the same purchase record. Only one discount can be applied against a purchase order.
The same purchase could, however, have an unlimited number of Supplier Payments made against it. Transaction
dates can assist us in matching discounts with Supplier Payments, but if more than one Supplier Payment was made
against the same purchase on the same day it is impossible to match the discount with its original Supplier Payment
record.
Entries within the SupplierDiscounts table is displayed in the originating currency.
Date Date Formatted by the Date of the supplier discount entry. To avoid SQL reserved
operating system word conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data
operating system as the Date field above.
IsTaxInclusive Text 1xA If the transactions default status is tax inclusive. Supplier
payment entries and thus supplier discount entries cannot be
recorded as tax inclusive. IsTaxInclusive should always be N for
supplier discount entries.
CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this supplier discount entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
*** DiscountAccountID Integer 10xN The account debited or credited with the discount.
SUPPLIERDISCOUNTS 125
Field Name Type Format Description
CardRecordID Integer 10xN The supplier attached to this supplier discount transaction.
DiscountAccountID Accounts
CurrencyID Currency
Overview
NOTE : The SupplierDiscountLines table will only display early payment discounts generated by versions prior to MYOB
Premier v7 or MYOB Accounting/Plus v13. Early payment discounts applied using MYOB Premier v7 or MYOB
Accounting/Plus v13 or later will be reported within the SettledDebitLines table.
The SupplierDiscountLines table produces a listing of discount amounts displayed within the allocation table of the
Supplier Payment entry window.
Entries within the SupplierDiscountLines table is displayed in their originating currency.
Information static to all entries within the SupplierDiscountLines table is contained within the SupplierDiscounts
table. The SupplierDiscounts table is accessed via the SupplierDiscountID foreign key within the
SupplierDiscountLines table.
*** SupplierDiscountID Integer 10xN SupplierDiscountID (SupplierDiscounts) of the record containing the
header information such as memo, and date for this line of the
Supplier Discount Transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** PurchaseID Integer 10xN The PurchaseID (Purchases) of the purchase order record against
which this amount was applied.
SupplierDiscountID SupplierDiscounts
PurchaseID Purchases
SUPPLIERDISCOUNTLINES 127
SupplierDeposits
Overview
The Supplier Deposits table produces details of deposit amounts transferred from the deposit control account and
applied against a purchase. Only one Supplier Deposit record is created for all previous deposits made. It is,
therefore, not necessary to generate a Supplier Deposit Lines table.
Entries within the SupplierDeposits table is displayed in their originating currency.
The SupplierDeposits table is unable to be linked with the original Supplier Payment record as no SupplierPayment
link exists within the Deposit applied record. Both the Supplier Payment and the Supplier Deposit have a common
point in that they will both point to the same purchase record. More than one deposit can be applied against a
pending purchase order, but when the pending purchase order is converted into an actual purchase and the
deposits are applied, all previous deposits are applied in one lump sum.
Date Date Formatted by the Date of the supplier deposit application. To avoid SQL
operating system reserved word conflicts, use the TransactionDate field
below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the
operating system same data as the Date field above.
Memo Text 255xAN Memo text of the supplier deposit applied entry.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
*** SupplierDepositAccountID Integer 10xN The account debited or credited when the deposit is
released.
*** CardRecordID Integer 10xN The supplier attached to this deposit application.
IsTaxInclusive Text 1xA Y/N flag indicating if the transaction default status is
tax inclusive. Supplier payment entries and thus
supplier deposits applied entries cannot be recorded
as tax inclusive. IsTaxInclusive should always be N for
supplier deposits applied entries.
SupplierDepositAccountID Accounts
PurchaseID Purchases
CardRecordID Cards Cards are contained in both the Supplier and the
Suppliers Cards tables
CurrencyID Currency
SUPPLIERDEPOSITS 129
SettledCredits
Overview
NOTE : The SettledCredits table will only display early payment discounts generated by MYOB Premier v7 or MYOB
Accounting/Plus v13 or later. Early payment discounts applied using an earlier version will be reported within the
CustomerDiscounts table.
The SettledCredits table produces a summary of information that is static to all allocation lines within Settle Returns & Credit entries. The
SettledCredits table reflects the contents of the header of the Settle Returns & Credits window.
Only one SettledCredit record is required for each Settled Return & Credit cash set. The SettledCredit record is sourced from the first record
in the settled credit cash set.
Date Date Formatted by the Date of the Credit Settlement. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field above.
IsThirteenthPeriod Text 1xAN Yes/No flag identifying if the transaction was recorded as a
thirteenth period transaction. N = No, Y = Yes.
*** CreditNoteID Integer 10xN The SaleID (Sales) of the credit note being settled.
IsDiscount Text 1xAN The Y/N flag indicates if the credit is for an early payment
discount settlement.
FinanceCharge Double 13.2xN Finance Charge amount applicable to the credit note settlement.
*** CardRecordID Integer 10xN The Customer attached to this Settled Credit transaction. Only
one card is applicable to the same cashset. The CardRecordID
applicable to the cashset is contained in Line 0.
IsTaxInclusive Text 1xA Y/N flag indicating if the transaction default status is tax inclusive.
Note: Settled Credit entries cannot be recorded as tax inclusive.
IsTaxInclusive should always be N for settled credit entries.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
CreditNoteID Sales
CurrencyID Currency
SETTLEDCREDITS 131
SettledCreditLines
Overview
NOTE : The SettledCreditLines table will only display early payment discounts generated by MYOB Premier v7 or MYOB
Accounting/Plus v13 or later. Early payment discounts applied using an earlier version will be reported within the
CustomerDiscountLines table.
The SettledCreditLines table produces a listing of entries displayed within the allocation table of the Settle Returns &
Credits entry window. Entries within the SettledCreditLines table are displayed in their originating currency.
Information static to all entries within the SettledCreditLines table is contained within the SettledCredits table. The
SettledCredits table is accessed via the SettledCreditID foreign key within the SettledCreditLines table.
*** SettledCreditID Integer 10xN SettledCreditID (SettledCredits) of the record containing the header
information such as memo, and date for this line of the Settled Credit
transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** SaleID Integer 10xN The SaleID (Sales) of the sale invoice record to which this credit
amount was applied against.
IsDepositPayment Text 1xAN Yes/No flag identifying if the payment is made against an Order.
N = No, Y = Yes.
IsDiscount Text 1xAN Y/N flag indicates if the settlement is for an early payment discount.
SettledCreditID SettledCredits
SaleID Sales
Overview
The CreditRefunds table produces a listing of Credit Notes refunded to Customers. No allocation table is attached to
a Credit Refund transaction, therefore, all details regarding the credit refund are contained within the CreditRefunds
table.
Date Date Formatted by the Date of the credit refund. To avoid SQL reserved word conflicts,
operating system use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field above.
IsThirteenthPeriod Text 1xAN Yes/No flag identifying if the transaction was recorded as a
thirteenth period transaction. N = No, Y = Yes.
*** IssuingAccountID Integer 10xN The AccountID (Accounts) of the record containing information
about the cheque account or credit card account assigned as the
issuing account upon this transaction.
*** CreditNoteID Integer 10xN The SaleID (Sales) of the credit note being refunded.
*** CardRecordID Integer 10xN The Customer attached to this Credit Refund transaction.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status is tax
inclusive. Note: Credit Refund entries cannot be recorded as tax
inclusive. IsTaxInclusive should always be N for settled credit
entries.
CREDITREFUNDS 133
Field Name Type Format Description
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
IssuingAccountID Accounts
CreditNoteID Sales
PaymentDeliveryID InvoiceDelivery
CurrencyID Currency
Overview
NOTE : The SettledDebits table will only display early payment discounts generated by MYOB Accounting/Plus v13 or later.
Early payment discounts applied using an earlier version will be reported within the SuppliersDiscounts table.
The SettledDebits table produces a summary of information that is static to all allocation lines within Settle Returns
& Debit entries. The SettledDebits table reflects the contents of the header of the Settle Returns & Debits window.
Only one SettledDebit record is required for each Settled Return & Debit cash set. The SettledDebit record is sourced
from the first record in the settled debit cash set.
Date Date Formatted by the Date of the Debit Settlement. To avoid SQL reserved word conflicts,
operating system use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field above.
IsThirteenthPeriod Text 1xAN Yes/No flag identifying if the transaction was recorded as a
thirteenth period transaction. N = No, Y = Yes.
*** DebitNoteID Integer 10xN The PurchaseID (Purchases) of the debit note being settled.
IsDiscount Text 1xAN Y/N flag indicates if the settlement is for an early payment discount.
FinanceCharge Double 13.2xN Finance Charge amount applicable to the credit note settlement.
*** CardRecordID Integer 10xN The supplier attached to this Settled Debit transaction.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status is tax
inclusive. Note: Settled Debit entries and thus customer deposit
applied entries cannot be recorded as tax inclusive. IsTaxInclusive
should always be N for Settled Debit entries.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
SETTLEDDEBITS 135
Foreign Keys Table sourced Notes
DebitNoteID Purchases
CurrencyID Currency
Overview
NOTE : The SettledDebitLines table will only display early payment discounts generated by MYOB Premier v7 or MYOB
Accounting/Plus v13 or later. Early payment discounts applied using an earlier version will be reported within the
SuppliersDiscountLines table.
The SettledDebitLines table produces a listing of entries displayed within the allocation table of the Settle Returns &
Debits entry window. Entries within the SettledDebitLines table are displayed in their originating currency.
Information static to all entries within the SettledDebitLines table is contained within the SettledDebits table. The
SettledDebits table is accessed via the SettledDebitID foreign key within the SettledDebitLines table.
*** SettledDebitID Integer 10xN SettledDebitID (SettledDebits) of the record containing the header
information such as memo, and date for this line of the Settled Debit
transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** PurchaseID Integer 10xN The PurchaseID (Purchases) of the purchase order record against which this
debit amount was applied.
IsDepositPayment Text 1xAN Yes/No flag identifying if the payment is made against an Order.
IsDiscount Text 1xAN Y/N flag indicates if the settlement is for an early payment discount.
SettledDebitID SettledDebits
PurchaseID Purchases
SETTLEDDEBITLINES 137
DebitRefunds
Overview
The DebitRefunds table produces a listing of Debit Notes refunded to suppliers. No allocation table is attached to a
Debit Refund transaction, therefore, all details regarding the debit refund are contained within the DebitRefunds
table.
Date Date Formatted by the Date of the debit refund. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the
operating system same data as the Date field above.
IsThirteenthPeriod Text 1xAN Yes/No flag identifying if the transaction was recorded as
a thirteenth period transaction. N = No, Y = Yes.
*** RecipientAccountID Integer 10xN The AccountID (Accounts) of the record containing
information about the Cheque account or credit card
account assigned as the recipient account upon this
transaction.
PaymentBankAccountName Text 32xAN Valid characters are 0-9 A-Z & - / . '
DepositStatusID Text 1xAN Defines whether the receipt was deposited directly to a
bank account, or the receipt was deposited into
undeposited funds. If the latter is true, this field also
defines the status of the undeposited fund.
D = Direct
U = Unselected
S = Selected
T = Transferred
DebitNoteID Integer 10xN The PurchaseID (Purchases) of the debit note being
refunded.
*** CardRecordID Integer 10xN The supplier attached to this Debit Refund transaction.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default
status is Tax inclusive. Note: Debit Refund entries cannot
be recorded as Tax inclusive. IsTaxInclusive should
always be N for settled debit entries.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of
recording.
RecipientAccountID Accounts
CurrencyID Currency
MethodOfPaymentID PaymentMethods
DebitNoteID Purchases
DepositStatusID DepositStatus
DEBITREFUNDS 139
InventoryAdjustments
Overview
The InventoryAdjustments table displays information that is static to all lines of an Inventory Adjustment transaction.
Entries within the allocation table of an Inventory Adjustment are not stored within the data file, consequently no
detail table can be provided.
Only one Inventory Adjustment record is required for each Inventory Adjustment cash set.
The InventoryAdjustments table does not allow the user to display line by line information regarding recorded
Inventory Adjustments. The InventoryAdjustment table simply displays generic information to the transaction such
as date, memo and Inventory journal number.
Date Date Formatted by the Date of the inventory adjustment entry. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as the
operating system Date field.
IsThirteenthPeriod Text 1xAN If the transaction was recorded as a thirteenth period transaction.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status is tax
inclusive. Note: Inventory Adjustments cannot be recorded as tax
inclusive. IsTaxInclusive should always be N for inventory adjustments.
CurrencyID Integer 10xN The CurrencyID of the record containing currency information for this
inventory adjustment entry. Inventory Adjustments cannot be
recorded in non-local currencies. CurrencyID should always be 0 for
inventory adjustments.
CategoryID Integer 10xN The CategoryID of the record containing the CategoryID assigned to
the Inventory transfer.
TransactionExchangeRate Double 6.6xN The exchange rate at the time of recording. Inventory Adjustments
cannot be recorded in non-local currencies, so
TransactionExchangeRate is 1.000000.
CurrencyID Currency
CategoryID Categories
Overview
The InventoryAdjustmentLines table is a listing of allocation lines displayed within the allocation table of the Adjust
Inventory entry window.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** ItemID Integer 10xN The ID of the item used in the adjustment line.
UnitCost Double 11.2 The Unit Cost assigned to the item adjustment.
AccountID Integer 10xN The ID of the account used in the adjustment line.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the
inventory adjustment line. Multiple jobs cannot be assigned to
Inventory adjustment transactions. IsMultipleJob will always be N
within InventoryAdjustmentLines.
IsCOGSAdjustment Text 1xA Y/N flag indicating if the sale invoice that generated the Cost of
Goods Sold Adjustment has been deleted. N=No, Y.=Yes
^^^ SaleID Integer 10xN The SaleID (Sales) of the sale invoice that generated the Cost of
Goods Sold Adjustment.
JobID Integer 10xN The ID of the job assigned to the adjustment line.
^^^ LocationID Integer 10xN LocationID (Locations) of the Location record containing full details
of the location
InventoryAdjustmentID InventoryAdjustments
ItemID Items
AccountID Accounts
INVENTORYADJUSTMENTLINES 141
Foreign Keys Table sourced
SaleID Sales
SaleLineID SaleLines
ItemSaleLines
JobID Jobs
LocationID Locations
Overview
The InventoryTransfers table displays information that is static to all lines of an Inventory Transfer transaction. Entries
within the allocation table of an Inventory Transfer are not stored within the data file, consequently no detail table
can be provided.
Only one InventoryTransfer record is required for each Inventory Transfer cash set.
The InventoryTransfers table does not allow the user to display line by line information regarding recorded Inventory
Transfers. The InventoryTransfers table simply displays generic information to the transaction such as date, memo,
and Inventory journal number.
Date Date Formatted by the Date of the Inventory transfer entry. To avoid SQL reserved word
operating system conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field above.
IsThirteenthPeriod Text 1xAN If the transaction was recorded as a thirteenth period transaction.
Memo Text 255xAN Memo text of the end of year adjustment entry.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status is tax
inclusive. Note: Inventory Transfers cannot be recorded as tax
inclusive. IsTaxInclusive should always be N for Inventory transfers.
CurrencyID Integer 10xN The CurrencyID of the record containing currency information for
this Inventory Transfer.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
CategoryID Integer 10xN The ID of the record containing the CategoryID assigned to the
Transfer
CurrencyID Currency
ID Categories
INVENTORYTRANSFERS 143
InventoryTransferLines
Overview
The InventoryTransferLines table lists the allocation lines displayed within the allocation table of the Transfer
Inventory entry window.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
*** ItemID Integer 10xN The ID of the item used in the transfer line.
UnitCost Double 11.2 The Unit Cost assigned to the item transfer.
IsMultipleJob Text 1xAN Y/N flag indicating if multiple job allocations are applicable to the
Inventory adjustment line. Multiple jobs cannot be assigned to
Inventory transfer transactions. IsMultipleJob will always be N within
InventoryTransferLines.
^^^ JobID Integer 10xN The ID of the job assigned to the transfer line.
^^^ LocationID Integer 10xN LocationID (Locations) of the Location record containing full details
of the location
InventoryTransferID InventoryTransfers
ItemID Items
JobID Jobs
LocationID Locations
Overview
The BankDeposits table produces a summary of information that is static to all allocation lines within Bank Deposit
entries. The BankDeposits table reflects the contents of the header of the Prepare Bank Deposit window.
Bank Deposits can only be generated with local currency transactions, therefore, all amounts displayed within the
BankDeposits table are of the local currency.
Date Date Formatted by the Date of the bank deposit. To avoid SQL reserved word conflicts,
operating system use TransactionDate.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as
operating system the Date field.
IsThirteenthPeriod Text 1xAN Yes/No flag identifying if the transaction was recorded as a
thirteenth period transaction. N = No, Y = Yes.
*** RecipientAccountID Integer 10xN The AccountID (Accounts) of the record containing information
about the recipient deposit account of this transaction.
IsTaxInclusive Text 1xA Y/N flag used to determine if the transaction default status is tax
inclusive. Note: Bank Deposit cannot be recorded as tax
inclusive. IsTaxInclusive should always be N for Bank Deposit.
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording.
RecipientAccountID Accounts
CurrencyID Currency
BANKDEPOSITS 145
BankDepositLines
Overview
The BankDepositLines table produces a listing of entries displayed within the allocation table of the Prepare Bank
Deposit window. Bank Deposits can only be generated with local currency transactions, therefore, all amounts
displayed within the BankDepositLines table are of the local currency.
Information static in all entries within the BankDepositLines table is contained within the BankDeposits table. The
BankDeposits table is accessed via the BankDepositID foreign key within the BankDepositLines table.
*** BankDepositID Integer 10xN BankDepositID (BankDeposits) of the record containing the header information
such as memo, and date for this line of the Bank Deposit transaction.
LineNumber Integer 10xN The sequence of the entry within the journal record set.
JournalTypeID Text 3xAN JournalTypeID (JournalTypes) of the record containing the full journal type
definition of the undeposited fund transaction transferred in this bank deposit.
MR = Money Received
CP = Customer Payments.
DRD = Debit Refund Deposit.
DepositStatusID Text 1xAN (DepositStatus) Defines whether the receipt was deposited directly to a bank
account, or the receipt was deposited into undeposited funds. If the latter is true,
this field also defines the status of the undeposited fund.
D = Direct
U = Unselected
S = Selected
T = Transferred
BankDepositID BankDeposits
SourceID MoneyReceived
DebitRefunds
CustomerPayments
JournalTypeID JournalTypes
DepositStatusID DepositStatus
Overview
The TransferMoney table displays information reported within the Transfer Money window. Both the From Account
and To Account details are displayed within the TransferMoney Table.
Date Date Formatted by the Transaction date of this entry. To avoid SQL reserved word conflicts,
operating system use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data as the
operating system Date field above.
*** FromAccountID Integer 10xN The AccountID (Accounts) of the record containing information
about the cheque account or credit card account assigned as the
Transfer Money From selection within this transaction.
*** ToAccountID Integer 10xN The AccountID (Accounts) of the record containing information
about the cheque account or credit card account assigned as the
Transfer Money To selection within this transaction.
IsTaxInclusive Text 1xA Yes/No flag indicating if the transaction status is Tax inclusive
IsAutoRecorded Text
CurrencyID Integer 10xN The CurrencyRecordID (Currency) of the record containing currency
information for this Transfer Money entry
TransactionExchangeRate Double 6.6xN The exchange rate of this transaction at the time of recording
CategoryID Integer 10xN The CategoryID (Categories) of the record containing the Category
assigned to the Transfer Money entry
FromAccountID Accounts
ToAccountID Accounts
CurrencyID Currency
CategoryID Categories
TRANSFERMONEY 147
Recurring Journal Records and
Transactions
RecurringMoneySpent
The RecurringMoneySpent table displays header and schedule information which is static to all lines of a Recurring
Spend Money transaction. Details about recurring Money Spent allocation lines are detailed within the
RecurringMoneySpentLines table.
*** IssuingAccountID Integer 10xN The AccountID (Accounts) of the record containing account
information about the cheque account or credit card account
assigned as the issuing cheque/credit card account for this
transaction.
^^^ CardRecordID Integer 10xN The card attached to this Write Cheque transaction found
within the Cards, Customers, Suppliers, Employees or Personal
Cards table
PayeeLine1 Text 255xAN First line of Payee text, which is sourced from the first character
in the field to the last character before the first carriage return.
PayeeLine2 Text 255xAN Second line of Payee text, which is sourced from the first
character after the first carriage return in the field to the last
character before the second carriage return.
PayeeLine3 Text 255xAN Third line of Payee text, which is sourced from the first character
after the second carriage return in the field to the last character
before the third carriage return.
PayeeLine4 Text 255xAN Fourth line of Payee text, which is sourced from the first
character after the third carriage return in the field to the last
character before the fourth carriage return. Any subsequent text
after the fourth carriage return is not reported.
IsTaxInclusive Text 1xA Indicates whether the transaction’s status is Tax inclusive.
N = No, Y = Yes.
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this entry.
^^^ CategoryID Integer 10xN The CategoryID (Category) of the record containing the
Category assigned to the Spend Money entry.
*** RecurringName Text 30xAN The Recurring Transaction Name as entered within the Edit
Recurring Schedule window.
FrequencyID Text 2xAN The FrequencyID (Frequencies) of the record containing the full
definition of the frequency selected within the Edit Recurring
Schedule window.
V = Never
D = Daily
W = Weekly
F = Every two weeks
T = Twice a month
3W = Every three weeks
4W = Every four weeks
M = Monthly
O = Every other month
Q = Quarterly
4M = Every four months
6M = Every six months
A = Annually
StartingOn Date Formatted by the Starting on date as assigned within the Edit Recurring Schedule
operating system. window.
*** NextDue Date Formatted by the Next Due date as assigned within the Edit Recurring Schedule
operating system. window.
RepeatedOn Date Formatted by the Repeated on date as assigned within the Edit Recurring
operating system. Schedule window. Only used when the FrequencyID is T.
ScheduleID Text 1xAN The ScheduleID (Schedule) containing the full definition of how
long the recurring transaction is scheduled to be performed.
I = Continue Indefinitely
U = Continue until a date
P = Perform a number of times
ContinueUntil Date Formatted by the The date that the recurring transaction is last scheduled to be
operating system. notified / recorded. Only used when the ScheduleID is U.
PerformTimes Integer 2xN The number of times that the transaction is scheduled to be
notified / recorded. Only used when the ScheduleID is P.
RECURRINGMONEYSPENT 149
Field Name Type Format Description
RemainingTime Integer 2xN The number of times that the transaction is still required to be
notified / recorded. Only used when the ScheduleID is P.
AlertID Text 1xAN The AlertID (Alerts) containing the full definition of how the user
is alerted that a transaction is required to be recorded or that a
transaction has been recorded.
^^^ AlertUserID Integer 10xN UserID (Users) of the record containing user details of the
person notified that a transaction is required to be recorded or
has been recorded.
AlertTypeID Text 1xAN The AlertTypeID (AlertTypes) containing the full definition of
when the user is reminded to record this transaction.
N = Never
D = On its due date
A = # days in advance
DaysInAdvance Integer 2xN The number of days in advance that the user is notified that
they need to record this transactions. Only used when the
AlertID is R and the AlertTypeID is A.
AppliedNumber Text 8xAN The Cheque # applied to all transactions. Only applies to
transactions when the NumberingTypeID is S.
RetainChanges Text 1xAN Indicates whether changes made to the recurring transaction
are saved when the user records a transaction.
N = No, Y = Yes.
LastPosted Date Formatted by the Transaction date assigned the last time a transaction was
operating system. recorded using this recurring template.
IssuingAccountID Accounts
CardRecordID Cards
Customers
Employees
Suppliers
PersonalCards
CurrencyID Currency
PaymentDeliveryID InvoiceDelivery
CategoryID Categories
FrequencyID Frequencies
ScheduleID Schedule
AlertID Alerts
AlertUserID Users
AlertTypeID AlertTypes
NumberingTypeID NumberingTypes
RECURRINGMONEYSPENT 151
RecurringMoneySpentLines
The RecurringMoneySpentLines table produces a list of allocation lines applicable to a recurring Spend Money
transaction.
LineNumber Integer 10xN The sequence of the entry within the allocation line table.
*** AccountID Integer 10xN The AccountID (Accounts) of the record containing account
information for this line of the allocation table.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of
the allocation table.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code
for this line of the allocation table.
RecurringMoneySpentID RecurringMoneySpent
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
The RecurringMoneyReceived table displays header and schedule information which is static to all lines of a
Recurring Receive Money transaction. Details about recurring Receive Money allocation lines are detailed within the
RecurringMoneyReceivedLines table.
*** RecipientAccountID Integer 10xN The AccountID (Accounts) of the record containing
account information about the cheque account or credit
card account assigned as the depositing cheque/credit
card account for this transaction.
^^^ CardRecordID Integer 10xN The Payor attached to this Make a Deposit transaction
found within the Cards, Customers, Suppliers,
Employees or Personal cards table
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing
currency information for this entry.
^^^ CategoryID Integer 10xN The CategoryID (Category) of the record containing the
Category assigned to the entry.
*** RecurringName Text 30xAN The Recurring Transaction Name as entered within the
Edit Recurring Schedule window.
RECURRINGMONEYRECEIVED 153
Field Name Type Format Description
V = Never
D = Daily
W = Weekly
F = Every two weeks
T = Twice a month
3W = Every three weeks
4W = Every four weeks
M = Monthly
O = Every other month
Q = Quarterly
4M = Every four months
6M = Every six months
A = Annually
StartingOn Date Formatted by the Starting on date as assigned within the Edit Recurring
operating system. Schedule window.
*** NextDue Date Formatted by the Next Due date as assigned within the Edit Recurring
operating system. Schedule window.
RepeatedOn Date Formatted by the Repeated on date as assigned within the Edit Recurring
operating system. Schedule window. Only used when the FrequencyID is
T.
ScheduleID Text 1xAN The ScheduleID (Schedule) containing the full definition
of how long the recurring transaction is scheduled to be
performed.
I = Continue Indefinitely
U = Continue until a date
P = Perform a number of times
ContinueUntil Date Formatted by the The date that the recurring transaction is last scheduled
operating system. to be notified / recorded. Only used when the
ScheduleID is U.
PerformTimes Integer 2xN The number of times that the transaction is scheduled to
be notified / recorded. Only used when the ScheduleID
is P.
RemainingTime Integer 2xN The number of times that the transaction is still required
to be notified / recorded. Only used when the
ScheduleID is P.
AlertID Text 1xAN The AlertID (Alerts) containing the full definition of how
the user is alerted that a transaction is required to be
recorded or that a transaction has been recorded.
^^^ AlertUserID Integer 10xN UserID (Users) of the record containing user details of
the person notified that a transaction is required to be
recorded or has been recorded.
N = Never
D = On its due date
A = # days in advance
DaysInAdvance Integer 2xN The number of days in advance that the user is notified
that they need to record this transactions. Only used
when the AlertID is R and the AlertTypeID is A.
AppliedNumber Text 8xAN The Cheque # applied to all transactions. Only applies to
transactions when the NumberingTypeID is S.
LastPosted Date Formatted by the Transaction date assigned the last time a transaction was
operating system. recorded using this recurring template.
RecipientAccountID Accounts
MethodofPaymentID PaymentMethods
CardRecordID Cards
Customers
Employees
Suppliers
PersonalCards
CurrencyID Currency
CategoryID Categories
RECURRINGMONEYRECEIVED 155
Foreign Keys Table sourced
FrequencyID Frequencies
ScheduleID Schedule
AlertID Alerts
AlertUserID Users
AlertTypeID AlertTypes
NumberingTypeID NumberingTypes
The RecurringMoneyReceivedLines table will produce a listing of allocation lines applicable to a recurring Receive
Money transaction.
LineNumber Integer 10xN The sequence of the entry within the allocation line table.
*** AccountID Integer 10xN The AccountID (Accounts) of the record containing
account information for this line of the allocation table.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of
the allocation table.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the allocation table.
RecurringMoneyReceivedID RecurringMoneyReceived
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGMONEYRECEIVEDLINES 157
RecurringTransferMoney
The RecurringTransferMoney table displays recurring Transfer Money details. Both the From Account and To
Account details are displayed within the RecurringTransferMoney table.
*** FromAccountID Integer 10xN The AccountID (Accounts) of the record containing
information about the account assigned as the Transfer
Money From selection within this transaction.
*** ToAccountID Integer 10xN The AccountID (Accounts) of the The AccountID
(Accounts) of the record containing information about
account assigned as the Transfer Money To selection
within this transaction.
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing
currency information for this Write Cheque entry.
^^^ CategoryID Integer 10xN The CategoryID (Category) of the record containing the
Category assigned to the entry.
*** RecurringName Text 30xAN The Recurring Transaction Name as entered within the
Edit Recurring Schedule window.
V = Never
D = Daily
W = Weekly
F = Every two weeks
T = Twice a month
3W = Every three weeks
4W = Every four weeks
M = Monthly
O = Every other month
Q = Quarterly
4M = Every four months
6M = Every six months
A = Annually
StartingOn Date Formatted by the Starting on date as assigned within the Edit Recurring
operating system. Schedule window.
*** NextDue Date Formatted by the Next Due date as assigned within the Edit Recurring
operating system. Schedule window.
RepeatedOn Date Formatted by the Repeated on date as assigned within the Edit Recurring
operating system. Schedule window. Only used when the FrequencyID is
T.
ScheduleID Text 1xAN The ScheduleID (Schedule) containing the full definition
of how long the recurring transaction is scheduled to be
performed.
I = Continue Indefinitely
U = Continue until a date
P = Perform a number of times
ContinueUntil Date Formatted by the The date that the recurring transaction is last scheduled
operating system. to be notified / recorded. Only used when the
ScheduleID is U.
PerformTimes Integer 2xN The number of times that the transaction is scheduled
to be notified / recorded. Only used when the
ScheduleID is P.
RemainingTime Integer 2xN The number of times that the transaction is still required
to be notified / recorded. Only used when the
ScheduleID is P.
AlertID Text 1xAN The AlertID (Alerts) containing the full definition of how
the user is alerted that a transaction is required to be
recorded or that a transaction has been recorded.
^^^ AlertUserID Integer 10xN UserID (Users) of the record containing user details of
the person notified that a transaction is required to be
recorded or has been recorded.
If AlertID is R, the AlertUserID is the UserID of the person
reminded that the transaction is to be recorded.
If AlertID is A, the AlertUserID is the UserID of the person
notified that a transaction has been recorded.
N = Never
D = On its due date
A = # days in advance
DaysInAdvance Integer 2xN The number of days in advance that the user is notified
that they need to record this transactions. Only used
when the AlertID is R and the AlertTypeID is A.
RECURRINGTRANSFERMONEY 159
Field Name Type Format Description
AppliedNumber Text 8xAN The Cheque # applied to all transactions. Only applies
to transactions when the NumberingTypeID is S.
LastPosted Date Formatted by the Transaction date assigned the last time a transaction
operating system. was recorded using this recurring template.
FromAccountID Accounts
ToAccountID Accounts
CurrencyID Currency
CategoryID Categories
FrequencyID Frequencies
ScheduleID Schedule
AlertID Alerts
AlertUserID Users
AlertTypeID AlertTypes
NumberingTypeID NumberingTypes
The RecurringGeneralJournals table displays header and schedule information which is static to all lines of a recurring
General Journal transaction. Details about entries made within the allocation table are detailed within the
RecurringGeneralJournalLines table.
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing
currency information for this Write Cheque entry.
^^^ CategoryID Integer 10xN The CategoryID (Category) of the record containing the
Category assigned to the entry.
*** RecurringName Text 30xAN The Recurring Transaction Name as entered within the
Edit Recurring Schedule window.
V = Never
D = Daily
W = Weekly
F = Every two weeks
T = Twice a month
3W = Every three weeks
4W = Every four weeks
M = Monthly
O = Every other month
Q = Quarterly
4M = Every four months
6M = Every six months
A = Annually
StartingOn Date Formatted by the Starting on date as assigned within the Edit Recurring
operating system. Schedule window.
*** NextDue Date Formatted by the Next Due date as assigned within the Edit Recurring
operating system. Schedule window.
RepeatedOn Date Formatted by the Repeated on date as assigned within the Edit Recurring
operating system. Schedule window. Only used when the FrequencyID is T.
RECURRINGGENERALJOURNALS 161
Field Name Type Format Description
ScheduleID Text 1xAN The ScheduleID (Schedule) containing the full definition
of how long the recurring transaction is scheduled to be
performed.
I = Continue Indefinitely
U = Continue until a date
P = Perform a number of times
ContinueUntil Date Formatted by the The date that the recurring transaction is last scheduled
operating system. to be notified / recorded. Only used when the
ScheduleID is U.
PerformTimes Integer 2xN The number of times that the transaction is scheduled to
be notified / recorded. Only used when the ScheduleID
is P.
RemainingTime Integer 2xN The number of times that the transaction is still required
to be notified / recorded. Only used when the
ScheduleID is P.
AlertID Text 1xAN The AlertID (Alerts) containing the full definition of how
the user is alerted that a transaction is required to be
recorded or that a transaction has been recorded.
^^^ AlertUserID Integer 10xN UserID (Users) of the record containing user details of
the person notified that a transaction is required to be
recorded or has been recorded.
N = Never
D = On its due date
A = # days in advance
DaysInAdvance Integer 2xN The number of days in advance that the user is notified
that they need to record this transactions. Only used
when the AlertID is R and the AlertTypeID is A.
AppliedNumber Text 8xAN The Cheque # applied to all transactions. Only applies to
transactions when the NumberingTypeID is S.
LastPosted Date Formatted by the Transaction date assigned the last time a transaction was
operating system. recorded using this recurring template.
CurrencyID Currency
CategoryID Categories
FrequencyID Frequencies
ScheduleID Schedule
AlertID Alerts
AlertUserID Users
AlertTypeID AlertTypes
NumberingTypeID NumberingTypes
RECURRINGGENERALJOURNALS 163
RecurringGeneralJournalLines
The RecurringGeneralJournalLines table produces a listing of allocation lines applicable to a recurring General
Journal transaction.
LineNumber Integer 10xN The sequence of the entry within the allocation line table.
*** AccountID Integer 10xN The AccountID (Accounts) of the record containing account
information for this line of the allocation table.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of
the allocation table.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the allocation table.
RecurringGeneralJournalID RecurringGeneralJournals
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
The RecurringSales table displays header and schedule information which is static to all lines of a recurring Sale
Invoice transaction. Details about entries made within the allocation table are detailed within the RecurringSaleLines
table.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) of the
record containing customer information for this sale invoice
entry.
ShipToAddress Text 255xAN Ship To address of the sale invoice. Only relevant when the
InvoiceTypeID is S or I.
ShipToAddressLine1 Text 255xAN First line of the Ship To address text, which is sourced from the
first character in the field to the last character before the first
carriage return. Only relevant when the InvoiceTypeID is S or I.
ShipToAddressLine2 Text 255xAN Second line of the Ship To address text, sourced from the first
character after the first carriage return in the field to the last
character before the second carriage return. Only relevant
when the InvoiceTypeID is S or I.
ShipToAddressLine3 Text 255xAN Third line of the Ship To address text, which is sourced from the
first character after the second carriage return in the field to the
last character before the third carriage return. Only relevant
when the InvoiceTypeID is S or I.
ShipToAddressLine4 Text 255xAN Fourth line of the Ship To address text, which is sourced from
the first character after the third carriage return in the field to
the last character before the fourth carriage return. Any
subsequent text after the fourth carriage return is not reported.
Only relevant when the InvoiceTypeID is S or I.
S = Service
I = Item
P = Professional
T = Time Billing
M = Miscellaneous
InvoiceStatusID Text 2xAN StatusID (Status) of the record containing the full sale invoice
status definition.
Q = Quote
OR = Order
O = Open
RECURRINGSALES 165
Field Name Type Format Description
*** TermsID Integer 10xN The TermsID (Terms) of the record containing terms
information for this sale entry.
TaxExclusiveFreight Double 13.2xN The Tax exclusive freight amount applicable to this sale invoice.
Only relevant when the InvoiceTypeID is S or I.
TaxInclusiveFreight Double 13.2xN The Tax inclusive freight amount applicable to this sale invoice.
Only relevant when the InvoiceTypeID is S or I.
^^^ FreightTaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the code
applied against the freight amount on this sale invoice. Only
relevant when the InvoiceTypeID is S or I.
^^^ SalesPersonID Integer 10xN The CardRecordID (Cards) or EmployeeID (Employees) of the
record containing salesperson information for this sale invoice
entry. Only relevant when the InvoiceTypeID is S, I or M.
Comment Text 255xAN Comment of the sale invoice. Only relevant when the
InvoiceTypeID is S, I P or T.
^^^ ReferralSourceID Integer 10xN The ReferralSourceID (ReferralSources) of the record containing
Referral Source for this sale invoice entry.
IsTaxInclusive Text 1xA Indicates whether the transaction’s status is Tax inclusive.
N = No, Y = Yes
P = To be printed
E = To be emailed
B = To be printed and emailed
A = Already printed or sent
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this entry.
^^^ CategoryID Integer 10xN The CategoryID (Category) of the record containing the
Category assigned to the entry.
RecurringName Text 30xAN The Recurring Transaction Name as entered within the Edit
Recurring Schedule window.
FrequencyID Text 2xAN The FrequencyID (Frequencies) of the record containing the full
definition of the frequency selected within the Edit Recurring
Schedule window.
V = Never
D = Daily
W = Weekly
F = Every two weeks
T = Twice a month
3W = Every three weeks
4W = Every four weeks
M = Monthly
O = Every other month
Q = Quarterly
4M = Every four months
6M = Every six months
A = Annually
StartingOn Date Formatted by the Starting on date as assigned within the Edit Recurring Schedule
operating system. window.
NextDue Date Formatted by the Next Due date as assigned within the Edit Recurring Schedule
operating system. window.
RepeatedOn Date Formatted by the Repeated on date as assigned within the Edit Recurring
operating system. Schedule window. Only used when the FrequencyID is T.
ScheduleID Text 1xAN The ScheduleID (Schedule) containing the full definition of how
long the recurring transaction is scheduled to be performed.
I = Continue Indefinitely
U = Continue until a date
P = Perform a number of times
ContinueUntil Date Formatted by the The date that the recurring transaction is last scheduled to be
operating system. notified / recorded. Only used when the ScheduleID is U.
PerformTimes Integer 2xN The number of times that the transaction is scheduled to be
notified / recorded. Only used when the ScheduleID is P.
RemainingTime Integer 2xN The number of times that the transaction is still required to be
notified / recorded. Only used when the ScheduleID is P.
AlertID Text 1xAN The AlertID (Alerts) containing the full definition of how the
user is alerted that a transaction is required to be recorded or
that a transaction has been recorded.
RECURRINGSALES 167
Field Name Type Format Description
^^^ AlertUserID Integer 10xN UserID (Users) of the record containing user details of the
person notified that a transaction is required to be recorded or
has been recorded.
AlertTypeID Text 1xAN The AlertTypeID (AlertTypes) containing the full definition of
when the user is reminded to record this transaction.
N = Never
D = On its due date
A = # days in advance
DaysInAdvance Integer 2xN The number of days in advance that the user is notified that
they need to record this transactions. Only used when the
AlertID is R and the AlertTypeID is A.
AppliedNumber Text 8xAN The Invoice # applied to all transactions. Only applies to
transactions when the NumberingTypeID is S.
RetainChanges Text 1xAN Indicates whether changes made to the recurring transaction
are saved when the user records a transaction. N = No, Y = Yes.
LastPosted Date Formatted by the Transaction date assigned the last time a transaction was
operating system. recorded using this recurring template.
CardRecordID Cards
Customers
InvoiceTypeID InvoiceType
InvoiceStatusID Status
TermsID Terms
FreightTaxCodeID TaxCodes
SalesPersonID Cards
Employees
ShippingMethodID Methods
ReferralSourceID ReferralSources
InvoiceDeliveryID InvoiceDelivery
CurrencyID Currency
CategoryID Categories
FrequencyID Frequencies
ScheduleID Schedule
AlertID Alerts
AlertUserID Users
AlertTypeID AlertTypes
NumberingTypeID NumberingTypes
RECURRINGSALES 169
RecurringSaleLines
The RecurringSaleLines table contains information which is static to invoice lines of a recurring sale for all invoice
types. Further detailed information generic to a particular type of invoice is stored within either the
RecurringServiceSaleLines table, the RecurringItemSaleLines table, the RecurringProfessionalSaleLines table, the
RecurringTimeBillingSaleLines table or the RecurringMiscSaleLines table.
*** RecurringSaleID Integer 10xN The RecurringSaleID (RecurringSales) of the recurring sale template to
which this line belongs.
LineNumber Integer 10xN The sequence of the entry within the allocation line table.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of the sales
invoice.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line
of the sales invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the sale invoice.
The TaxBasisAmt can be stored as either a tax exclusive or a tax inclusive
amount.
TaxBasisAmountIsInclusive Text 1xA If the TaxBasisAmount is stored as a tax inclusive or a tax exclusive value
N = No, Y = Yes.
RecurringSaleID RecurringSales
LineTypeID LineType
JobID Jobs
TaxCodeID TaxCodes
The RecurringServiceSaleLines table contains recurring service sale invoice line details.
*** RecurringSaleLineID Integer 10xN The RecurringSaleLineID (RecurringSaleLines) of the corresponding record
within the RecurringSaleLines table.
*** RecurringSaleID Integer 10xN The RecurringSaleID (RecurringSales) of the recurring sale template to
which this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account information
for this line of the sale invoice.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of the sale.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the Tax code for this line
of the sale invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the sale invoice. The
TaxBasisAmount can be stored as either a tax exclusive or a tax inclusive
amount.
TaxBasisAmountIsInclusive Text 1xA If the TaxBasisAmount is stored as a tax inclusive or a tax exclusive value.
N = No, Y = Yes.
RecurringSaleLineID RecurringSaleLines
RecurringSaleID RecurringSales
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGSERVICESALELINES 171
RecurringItemSaleLines
The RecurringItemSaleLines table contains recurring Item sale invoice line details.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full
line type definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ ItemID Integer 10xN The ItemID (Items) of the record containing item
information for this line of the sale invoice.
^^^ LocationID Integer 10xN LocationID (Locations) of the location record containing
the full details of the location assigned to this line of the
item sales invoice.
Discount 9xN (with a maximum Discount rate applicable to the line of the sale invoice.
of two decimal places. Discount can be greater than 100% only if the rate is
Decimal point counts negative.
as one place.)
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line
of the sale.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the sale invoice.
SalesTaxCalBasisID Text 3xA PriceLevelID (PriceLevels) of the record containing the full
Sales Tax Calculation Basis definition:
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the
sale invoice. The TaxBasisAmount can be stored as either
a tax exclusive or a tax inclusive amount.
RecurringSaleLineID RecurringSaleLines
RecurringSaleID RecurringSales
LineTypeID LineType
ItemID Items
LocationID Locations
JobID Jobs
TaxCodeID TaxCodes
SalesTaxCalBasisID PriceLevels
RECURRINGITEMSALELINES 173
RecurringProfessionalSaleLines
The RecurringProfessionalSaleLines table contains recurring Professional sale invoice line details.
*** RecurringSaleID Integer 10xN The RecurringSaleID (RecurringSales) of the recurring sale
template to which this line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full
line type definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
LineDate Date Formatted by the Date attached to the line entry. It is not compulsory that
operating system. each professional line entry has a date attached.
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing
account information for this line of the sale invoice.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of
the sale.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the sale invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the
sale invoice. The TaxBasisAmount can be stored as either a
tax exclusive or a tax inclusive amount.
RecurringSaleLineID RecurringSaleLines
RecurringSaleID RecurringSales
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGPROFESSIONALSALELINES 175
RecurringTimeBillingSaleLines
The RecurringTimeBillingSaleLines table contains recurring Time Billing sale invoice line details.
LineNumber Integer 10xN The sequence of the entry within the sale invoice
set.
D = Data
H = Header
S = Subtotal
W = Without item or account
LineDate Date Formatted by the Date attached to the line entry. It is not compulsory
operating system. that each professional line entry has a date
attached
^^^ ActivityID Integer 10xN The ActivityID (Activities) of the record containing
activity information for this line of the sale invoice.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for
this line of the sale.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line
of the sale invoice. The TaxBasisAmount can be
stored as either a tax exclusive or a tax inclusive
amount.
RecurringSaleLineID RecurringSaleLines
RecurringSaleID RecurringSales
LineTypeID LineType
ActivityID Activities
LocationID Locations
JobID Jobs
TaxCodeID TaxCodes
RECURRINGTIMEBILLINGSALELINES 177
RecurringMiscSaleLines
The RecurringMiscSaleLines table contains recurring Miscellaneous sale invoice line details.
*** RecurringSaleLineID Integer 10xN The RecurringSaleLineID (RecurringSaleLines) of the corresponding record
within the RecurringSaleLines table.
*** RecurringSaleID Integer 10xN The RecurringSaleID (RecurringSales) of the recurring template to which the
line belongs.
LineNumber Integer 10xN The sequence of the entry within the sale invoice set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account information for
this line of the sale invoice.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of the sale.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this line of
the sale invoice.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the sale invoice. The
TaxBasisAmount can be stored as either a tax exclusive or a tax inclusive
amount.
TaxBasisAmountIsInclusive Text 1xA If the TaxBasisAmount is stored as a tax inclusive or a tax exclusive value.
N = No, Y = Yes.
RecurringSaleLineID RecurringSaleLines
RecurringSaleID RecurringSales
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGMISCSALELINES 179
RecurringPurchases
The RecurringPurchases table displays header and schedule information which is static to all lines of a recurring
Purchase Order transaction. Details about entries made within the allocation table are detailed within the
RecurringPurchaseLines table. The RecurringPurchases table contains one record for each recurring purchase
template. This includes all Quote, Order or Invoice templates.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or SupplierID (Suppliers) of the
record containing customer information for this purchase order
entry.
ShipToAddress Text 255xAN Ship To address of the purchase order. Only relevant when the
PurchaseTypeID is S or I.
ShipToAddressLine1 Text 255xAN First line of the Ship To address text, which is sourced from the
first character in the field to the last character before the first
carriage return. Only relevant when the PurchaseTypeID is S or
I.
ShipToAddressLine2 Text 255xAN Second line of the Ship To address text, sourced from the first
character after the first carriage return in the field to the last
character before the second carriage return. Only relevant
when the PurchaseTypeID is S or I.
ShipToAddressLine3 Text 255xAN Third line of the Ship To address text, which is sourced from the
first character after the second carriage return in the field to the
last character before the third carriage return. Only relevant
when the PurchaseTypeID is S or I.
ShipToAddressLine4 Text 255xAN Fourth line of the Ship To address text, which is sourced from
the first character after the third carriage return in the field to
the last character before the fourth carriage return. Any
subsequent text after the fourth carriage return is not reported.
Only relevant when the PurchaseTypeID is S or I.
PurchaseTypeID Text 1xAN PurchaseTypeID (InvoiceType) of the record containing the full
purchase type definition.
S = Service
I = Item
P = Professional
M = Miscellaneous
PurchaseStatusID Text 2xAN StatusID (Status) of the record containing the full sale purchase
order status definition.
Q = Quote
OR = Order
O = Open
*** TermsID Integer 10xN The TermsID (Terms) of the record containing terms
information for this purchase entry.
TaxExclusiveFreight Double 13.2xN The Tax exclusive freight amount applicable to this purchase
order. Only relevant when the PurchaseTypeID is S or I.
TaxInclusiveFreight Double 13.2xN The Tax inclusive freight amount applicable to this purchase
order. Only relevant when the PurchaseTypeID is S or I.
^^^ FreightTaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the code
applied against the freight amount on this purchase order.
Only relevant when the PurchaseTypeID is S or I.
Comment Text 255xAN Comment of the purchase order. Only relevant when the
PurchaseTypeID is S, I or P.
IsTaxInclusive Text 1xA Indicates whether the transaction’s status is Tax inclusive
N = No, Y = Yes.
P = To be printed
E = To be emailed
B = To be printed and emailed
A = Already printed or sent
*** CurrencyID Integer 10xN The CurrencyID (Currency) of the record containing currency
information for this entry.
^^^ CategoryID Integer 10xN The CategoryID (Category) of the record containing the
Category assigned to the entry.
RecurringName Text 30xAN The Recurring Transaction Name as entered within the Edit
Recurring Schedule window.
RECURRINGPURCHASES 181
Field Name Type Format Description
FrequencyID Text 2xAN The FrequencyID (Frequencies) of the record containing the
full definition of the frequency selected within the Edit
Recurring Schedule window.
V = Never
D = Daily
W = Weekly
F = Every two weeks
T = Twice a month
3W = Every three weeks
4W = Every four weeks
M = Monthly
O = Every other month
Q = Quarterly
4M = Every four months
6M = Every six months
A = Annually
StartingOn Date Formatted by the Starting on date as assigned within the Edit Recurring Schedule
operating system. window.
NextDue Date Formatted by the Next Due date as assigned within the Edit Recurring Schedule
operating system. window.
RepeatedOn Date Formatted by the Repeated on date as assigned within the Edit Recurring
operating system. Schedule window. Only used when the FrequencyID is T.
ScheduleID Text 1xAN The ScheduleID (Schedule) containing the full definition of
how long the recurring transaction is scheduled to be
performed.
I = Continue Indefinitely
U = Continue until a date
P = Perform a number of times
ContinueUntil Date Formatted by the The date that the recurring transaction is last scheduled to be
operating system. notified / recorded. Only used when the ScheduleID is U.
PerformTimes Integer 2xN The number of times that the transaction is scheduled to be
notified / recorded. Only used when the ScheduleID is P.
RemainingTime Integer 2xN The number of times that the transaction is still required to be
notified / recorded. Only used when the ScheduleID is P.
AlertID Text 1xAN The AlertID (Alerts) containing the full definition of how the
user is alerted that a transaction is required to be recorded or
that a transaction has been recorded.
^^^ AlertUserID Integer 10xN UserID (Users) of the record containing user details of the
person notified that a transaction is required to be recorded or
has been recorded.
AlertTypeID Text 1xAN The AlertTypeID (AlertTypes) containing the full definition of
when the user is reminded to record this transaction.
N = Never
D = On its due date
A = # days in advance
DaysInAdvance Integer 2xN The number of days in advance that the user is notified that
they need to record this transactions. Only used when the
AlertID is R and the AlertTypeID is A.
AppliedNumber Text 8xAN The Purchase # applied to all transactions. Only applies to
transactions when the NumberingTypeID is S.
RetainChanges Text 1xAN Indicates whether changes made to the recurring transaction
are saved when the user records a transaction. N = No, Y = Yes.
LastPosted Date Formatted by the Transaction date assigned the last time a transaction was
operating system. recorded using this recurring template.
CardRecordID Cards
Suppliers
PurchaseTypeID InvoiceType
PurchaseStatusID Status
TermsID Terms
FreightTaxCodeID TaxCodes
SalesPersonID Cards
Employees
ShippingMethodID Methods
InvoiceDeliveryID InvoiceDelivery
CurrencyID Currency
RECURRINGPURCHASES 183
Foreign Keys Table sourced
CategoryID Categories
FrequencyID Frequencies
ScheduleID Schedule
AlertID Alerts
AlertUserID Users
AlertTypeID AlertTypes
NumberingTypeID NumberingTypes
The RecurringPurchaseLines table contains information which is static to lines of a recurring purchase order for all
invoice types. Further detailed information generic to a particular type of purchase order is stored within either the
RecurringServicePurchaseLines table, the RecurringItemPurchaseLines table, the RecurringProfessionalPurchaseLines
table or the RecurringMiscPurchaseLines table.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line type
definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of the
purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax code for this
line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the purchase
order. The TaxBasisAmount can be stored as either a tax exclusive or a
tax inclusive amount.
TaxBasisAmountIsInclusive Text 1xA If the TaxBasisAmount is stored as a tax inclusive or a tax exclusive
value. N = No, Y = Yes.
RecurringPurchaseID RecurringPurchases
LineTypeID LineType
JobID Jobs
TaxCodeID TaxCodes
RECURRINGPURCHASELINES 185
RecurringServicePurchaseLines
The RecurringServicePurchaseLines table contains recurring service purchase order line details.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full
line type definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing
account information for this line of the purchase order.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line
of the purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the
purchase order. The TaxBasisAmount can be stored as
either a tax exclusive or a tax inclusive amount.
RecurringPurchaseLineID RecurringPurchaseLines
RecurringPurchaseID RecurringPurchases
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGSERVICEPURCHASELINES 187
RecurringItemPurchaseLines
The RecurringItemSaleLines table contains recurring Item purchase order line details.
LineNumber Integer 10xN The sequence of the entry within the purchase order
set.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ ItemID Integer 10xN The ItemID (Items) of the record containing item
information for this line of the purchase order.
Discount 9xN (with a maximum Discount rate applicable to the line of the purchase
of two decimal places. order. Discount can be greater than 100% only if the
Decimal point counts rate is negative.
as one place.)
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this
line of the purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the
tax code for this line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of
the purchase order. The TaxBasisAmount can be
stored as either a tax exclusive or a tax inclusive
amount.
RecurringPurchaseLineID RecurringPurchaseLines
RecurringPurchaseID RecurringPurchases
LineTypeID LineType
ItemID Items
LocationID Locations
JobID Jobs
TaxCodeID TaxCodes
RECURRINGITEMPURCHASELINES 189
RecurringProfessionalPurchaseLines
The RecurringProfessionalPurchaseLines table contains recurring Professional purchase order line details.
LineNumber Integer 10xN The sequence of the entry within the purchase
order set.
D = Data
H = Header
S = Subtotal
W = Without item or account
LineDate Date Formatted by the Date attached to the line entry. It is not compulsory
operating system. that each professional line entry has a date attached
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing
account information for this line of the purchase
order.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this
line of the purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the
tax code for this line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line
of the purchase order. The TaxBasisAmount can be
stored as either a tax exclusive or a tax inclusive
amount.
RecurringPurchaseLineID RecurringPurchaseLines
RecurringPurchaseID RecurringPurchases
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGPROFESSIONALPURCHASELINES 191
RecurringMiscPurchaseLines
The RecurringMiscPurchaseLines table contains recurring Miscellaneous purchase order line details.
LineNumber Integer 10xN The sequence of the entry within the purchase order set.
LineTypeID Text 1xAN LineTypeID (LineType) of the record containing the full line
type definition.
D = Data
H = Header
S = Subtotal
W = Without item or account
^^^ AccountID Integer 10xN The AccountID (Accounts) of the record containing account
information for this line of the purchase order.
^^^ JobID Integer 10xN JobID (Jobs) of the record containing the Job for this line of
the purchase order.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the tax
code for this line of the purchase order.
TaxBasisAmount Double 13.2xN The tax amount used to calculate tax upon this line of the
purchase order. The TaxBasisAmount can be stored as either
a tax exclusive or a tax inclusive amount.
RecurringPurchaseLineID RecurringPurchaseLines
RecurringPurchaseID RecurringPurchases
LineTypeID LineType
AccountID Accounts
JobID Jobs
TaxCodeID TaxCodes
RECURRINGMISCPURCHASELINES 193
Sales and Purchases Information
SalesHistory
*** CardRecordID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) of the record
containing customer history information.
Period Integer 2xN The period of the financial year in which the sales occurred.
SaleAmount Double 13.2xN Net sales that occurred during the period.
CardRecordID Cards Cards are contained in both the Customers and the Cards tables
Customers
Overview
The PurchasesHistory table displays total monthly purchase history for suppliers. Supplier purchase history is stored
and thus reportable for the current financial year, next financial year and the previous five financial years.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or SupplierID (Suppliers) of the record
containing supplier history information.
Period Integer 2xN The period of the financial year in which the purchases occurred.
PurchaseAmount Double 13.2xN Net purchases that occurred during the period.
CardRecordID Cards Cards are contained in both the Suppliers and the Cards tables
Suppliers
PURCHASESHISTORY 195
SalespersonHistory
Overview
The SalespersonHistory table displays total monthly sales history for employees (salesperson). Salesperson sales
history is stored and thus reportable for the current financial year, next financial year and the previous five financial
years.
*** CardRecordID Integer 10xN The CardRecordID (Cards) or EmployeeID (Employees) of the record
containing salesperson history information.
Period Integer 2xN The period of the financial year in which the sales occurred.
SoldAmount Double 13.2xN Net sales which occurred during the period.
CardRecordID Cards Cards are contained in both the Employees and the Cards tables
Employees
Overview
Comments can be selected when the user is recording a Service, Item, Professional or Time Billing Sale Invoice or a
Service, Item or Professional Purchase Order. Once the Comment has been selected within the body of the sale
invoice or purchase order, the text of the comment can be edited on the transaction entry window.
The Comments list is purely a list of default comments. There is no direct link between the comment stored within
the body of a sale invoice or purchase order and the default list of comments.
COMMENTS 197
Methods
Overview
The Shipping Method is directly linked with the sale invoice or purchase order. A Shipping Method selected on a sale
invoice or purchase order will always attach itself to the list of Shipping Methods. If the text of a Shipping Method is
edited, then all existing sale invoices and purchase orders attached to this Shipping Method will also be impacted.
Overview
Referral Sources can be selected when the user is recording a Sale Invoice. The Referral Source is selected via the
Referral Source field within the Sale Invoice entry window.
The Referral Source is directly linked with the sale invoice. A Referral Source selected on a sale invoice will always
attach itself to the list of Referral Sources. If the text of a Referral Source is edited, then all existing sale invoices
attached to this Referral Source will also be affected.
REFERRALSOURCES 199
Job Information
Jobs
*** ParentJobID Integer 10xN JobsID (Jobs) of the record that is the header to this job.
IsTrackingReimburseable Text 1xAN If reimbursable expenses are tracked against this job.
StartDate Date Formatted by the The date the job started, user entered.
operating system
FinishDate Date Formatted by the The date the job was completed, user entered.
operating system
^^^ CustomerID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) or the
customer card assigned as the Linked Customer for this job.
CustomerID Cards Card will be contained in both the Customers and the Cards
Customers tables.
*** JobID Integer 10xN The JobID (Jobs) of the job that owns this job account information.
*** AccountID Integer 10xN The AccountID (Accounts) of the account that owns this job account
information.
OpeningBalance Double 13.2xN The opening balance (user entered) amount for this account within
this job.
CurrentBalance Double 13.2xN All activity assigned to this account within this job. Includes all opening
balance, pre last year, last year, this year and post this year activity.
PreLastYearActivity Double 13.2xN All activity assigned to this account within this job that occurred earlier
than the beginning of last year.
LastYearOpeningBalance Double 13.2xN The balance of this account within this job at the beginning of last
financial year.
ThisYearOpeningBalance Double 13.2xN The balance of this account within this job at the beginning of this
financial year.
PostThisYearActivity Double 13.2xN All activity assigned to this account within this job that occurred after
the end of this year.
JobID Jobs
AccountID Accounts
JOBACCOUNTS 201
JobAccountActivities
*** JobID Integer 10xN The JobID (Jobs) of the job that owns this job account information.
*** AccountID Integer 10xN The AccountID (Accounts) of the account that owns this job account
information.
FinancialYear Integer 4xN Financial year in that the activity was generated.
Period Integer 2xN The period of the financial year in that the activity was generated.
Amount Double 13.2xN Net activity within the account for this job.
JobID Jobs
AccountID Accounts
Overview
The JobBudgets table displays information regarding job budgets. Each Job Account represented in the JobAccounts
table will only have one budget figure representing the budget value of this job account for the lifetime of the job.
Each account could be represented several times within JobAccounts table but each representation is linked to a
different JobID.
JobBudget records are generated for every account including those whereby a zero value is budgeted.
*** JobID Integer 10xN The JobID (Jobs) of the job that owns this budget information.
*** AccountID Integer 10xN The AccountID (Accounts) of the account to which this budget amount relates.
Amount Double 13.2xN Budgeted activity within profit and loss accounts or budgeted balance of
balance sheet accounts.
JobID Jobs
AccountID Accounts
JOBBUDGETS 203
JobJournalRecords
Overview
The JobJournalRecords table contains job allocation postings.
Each JobJournalRecord record links back to a record within the JournalRecord table. Sale Invoice and Purchase Order
JournalRecords can have more than the one JobJournalRecord pointing to the same JournalRecord transaction. Sale
invoice and purchase order transactions are consolidated before posting to the JournalRecords table. The sum of Sale
Invoice and Purchase Order JobJournalRecords allocated to the same JournalRecord transaction should equal the
amount of the JournalRecord.
JobJournalRecords sourced from sale invoice or purchase order transactions also have a direct link with the SaleLines
or PurchaseLines table. This link is presented via the SalePurchaseLineID field.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same data
operating system as the Date field above.
*** JobID Integer 10xN The JobID (Jobs) of the job attached to this journal record.
*** JournalRecordID Integer 10xN The JournalRecordID (JournalRecords) of the journal record to
which this job journal record applies.
JournalTypeID Text 3xAN JournalTypeID (JournalTypes) of the record containing the full
journal type definition.
IsReimbursed Text 1xAN Flag field to indicate whether the entry has been reimbursed or
removed from the list of reimbursable expenses.
*** AccountID Integer 10xN The AccountID of the account associated with this amount.
JobID Jobs
JournalRecordID JournalRecords
JournalTypeID JournalTypes
AccountID Accounts
JOBJOURNALRECORDS 205
Category Information
Categories
Overview
The Categories table contains details of each category created in the company file.
*** CategoryID Integer 10xN The unique identifier for the category.
Overview
The CategoryAccounts table presents the account–category relationship.
*** CategoryAccountID Integer 10xN The unique identifier for the category account.
CurrentBalance Double 13.2xN All activity assigned to this account within this cost centre.
Includes all opening balance, pre last year, last year, this
year and post this year activity.
PreLastYearActivity Double 13.2xN All activity assigned to this account within this cost centre
that occurred earlier than the beginning of last year.
LastYearOpeningBalance Double 13.2xN The balance of this account within this cost centre at the
beginning of last financial year.
ThisYearOpeningBalance Double 13.2xN The balance of this account within this cost centre at the
beginning of this financial year.
PostThisYearActivity Double 13.2xN All activity assigned to this account within this cost centre
that occurred after the end of this year.
CategoryID Categories
AccountID Accounts
CATEGORYACCOUNTS 207
CategoryAccountActivities
Overview
The CategoryAccountActivities table contains details of the account activity for each category created in the
company file.
FinancialYear Integer 4xN Financial year in which the activity was generated.
Period Integer 2xN The period of the financial year in which the activity was generated,
1-13.
Amount Double 13.2xN Net activity within the account for this category.
CategoryID Categories
AccountID Accounts
Overview
The CategoryJournalRecords table contains details of the account activity for each category created in the company
file.
*** CategoryJournalRecordID Integer 10xN This unique identifier is for the category Journal Record.
Date Date Formatted by the Transaction date of this entry. To avoid SQL reserved word
operating system. conflicts, use the TransactionDate field below.
TransactionDate Date Formatted by the Transaction date of this entry. This field contains the same
operating system. data as the Date field above.
IsThirteenthPeriod Text 1xAN Y/N flag indicates if the transaction was recorded as a
thirteenth period transaction.
*** AccountID Integer 10xN The ID of the account assigned to the journal.
CategoryID Categories
AccountID Accounts
JournalRecordID JournalRecords
JournalTypeID JournalTypes
CATEGORYJOURNALRECORDS 209
Tax Records
TaxCodes
Overview
The TaxCodes table displays all consolidated and non-consolidated Tax codes. Information regarding sub-taxes that
make up a consolidated Tax code is presented within the TaxCodeConsolidations table.
The TaxCodes table contains one record for each Tax Code in the company file. The TaxCodes table contains all
information presented within the Tax Code Information window.
*** TaxCode Text 3xAN The up to 3 digit code assigned to the tax code.
^^^ TaxCollectedAccountID Integer 10xN The AccountID (Accounts) of the record containing account
information about the Linked Account for Tax Collected or information
about the Account for Withholding Credits.
^^^ TaxPaidAccountID Integer 10xN The AccountID (Accounts) of the record containing account
information about the Linked Account for Tax Paid.
^^^ LinkedCardID Integer 10xN The CardRecordID (Cards) or SupplierID (Suppliers) of the record
containing Suppliers information about the Linked Card.
TaxCodeTypeID TaxCodeConsolidations
TaxCollectedAccountID Accounts
TaxPaidAccountID Accounts
TAXCODES 211
TaxCodeConsolidations
Overview
The TaxCodeConsolidations table displays a listing of non-consolidated tax codes that make up a consolidated tax
code. The TaxCodeConsolidations table contains one record for each element Tax Code within a consolidation.
*** ConsolidatedTaxCodeID Integer 10xN The TaxCodeID (TaxCodes) of the record that is the consolidated
tax code of the tax code element.
*** ElementTaxCodeID Integer 10xN The TaxCodeID (TaxCodes) of the record that is the tax code
element of the consolidated tax code.
ConsolidatedTaxCodeID TaxCodes
ElementTaxCodeID TaxCodes
Overview
TaxInformation records are only available in transactions whereby the user has the ability to assign a tax code to a
line of the transaction, thus the following types of transactions can have a Tax information record:
Sale Invoices (all types)
Purchase Orders (all types)
Money Spent
Money Received
General Journal
The TaxInformation record can be linked back to its originating transaction via the TransactionID record within the
table. As the TaxInformation record could be linked to one of five tables, the TransactionID must be read in
conjunction with the TransactionType field. The TransactionType field indicates the originating source of the
TaxInformation record. Below is a summary of TransactionType entries and appropriate ODBC table containing
details of the originating transaction:
SI Sales SaleID
PO Purchases PurchaseID
GJ GeneralJournals GeneralJournalID
MS MoneySpent MoneySpentID
MR MoneyReceived MoneyReceivedID
*** TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing information about the
Tax Code.
JournalTypeID Text 2xAN JournalTypeID (JournalTypes) of the record containing the full journal
type definition.
TaxPercentageRate Double 8.4xN The tax rate applicable to this tax code at the time this tax information
record was produced.
TaxableAmount Double 13.2xN The total of all tax exclusive line amounts applied with this tax code or a
consolidation that contains this tax code.
TaxBasisAmount Double 13.2xN The tax exclusive amount used when calculating the tax amount.
TAXINFORMATION 213
Field Name Type Format Description
TaxAmount Double 13.2xN The amount of tax applied against transactions lines with this tax code.
TaxAmountIsChanged Text 1xAN If the user has manually edited the tax amount within the Tax Information
window from its calculated amount.
JournalTypeID JournalTypes
TaxCodeID TaxCodes
Overview
Whenever a consolidated tax code is used on a transaction, a break-up occurs from the consolidated tax code to the
consolidation elements. The TaxInformationConsolidations table displays the component of an element displayed
within the TaxInformation table towards the consolidated tax code.
*** ConsolidationTaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing information
about the consolidation tax code.
*** ElementTaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing information
about the element tax code.
JournalTypeID Text 2xAN The type of transaction that generated the TaxInformation record.
ElementTaxableAmount Double 13.2xN Tax Information records generated by Purchase Orders, Spend
Money and General Journals are stored in the negative
parenthesis. To correct, the TaxableAmount stored within the tax
information record should be reversed when its creator is one of
the above mentioned transaction types.
ElementTaxBasisAmount Double 13.2xN Tax Information records generated by Purchase Orders, Spend
Money and General Journals whereby the Display in GST [BAS]
radio button selection is Purchase (Acquisition) are stored in the
negative parenthesis. To correct, the TaxBasisAmount stored
within the tax information record should be reversed when its
creator is one of the above mentioned transaction types.
ElementTaxAmount Double 13.2xN Tax Information records generated by Purchase Orders, Spend
Money and General Journals whereby the Display in GST [BAS]
radio button selection is Purchase (Acquisition) are stored in the
negative parenthesis. To correct, the TaxAmount stored within
the tax information record should be reversed when its creator is
one of the above mentioned transaction types.
JournalTypeID JournalTypes
ConsolidationTaxCodeID TaxCodes
TAXINFORMATIONCONSOLIDATIONS 215
Foreign Keys Table sourced Notes
ElementTaxCodeID TaxCodes
Items
Overview
The Items table contains one record for each inventory item. The Items table reports all information that can be
assigned within the Item Information window.
PositiveAverageCost Double 21.2xN The item’s average cost displayed in the Item Information window
when the quantity on hand is equal to or greater than zero.
SellOnOrder Double 12.3xN The quantity of this item held in pending sale invoices.
PurchaseOnOrder Double 12.3xN The quantity of this item held in pending purchase orders.
ReceivedOnOrder Double 12.3xN The quantity of received items contained within purchase orders of
the status Order.
QuantityAvailable Double 12.3xN The calculated quantity of this item available for sale.
LastUnitPrice Double 11.4xN The last tax exclusive unit price assigned to this item on a Sale
Invoice or Purchase Order.
NegativeQuantityOnHand Double 12.3xN The number of items received into inventory whilst the
QuantityOnHand is less than zero.
NegativeAverageCost Double 21.2xN The item’s average cost displayed within the Profile tab of the Item
Information window when the QuantityOnHand is less than zero.
^^^ IncomeAccountID Integer 10xN The AccountID of the record containing the income account for
tracking sales.
^^^ ExpenseAccountID Integer 10xN The AccountID of the record containing either the expense
account for tracking expenses (non-inventoried item) or the cost of
sales Account (inventoried item).
^^^ InventoryAccountID Integer 10xN The AccountID of the record containing the asset account for item
inventory.
UseDescription Text 1xAN Use description text instead of item name on sale invoices and
purchase orders. Is only used within the Premier release.
^^^ CustomList1ID Integer 10xN The CustomListID of the record containing the Custom List 1
selection for this inventory item. Is only used within the Premier
release.
^^^ CustomList2ID Integer 10xN The CustomListID (CustomLists) of the record containing the
Custom List 2 selection for this inventory item. Is only used within
the Premier release.
^^^ CustomList3ID Integer 10xN The CustomListID of the record containing the Custom List 3
selection for this inventory item. Is only used within the Premier
release.
CustomField1 Text 30xAN Custom Field 1 text attached to this item. Custom Field 1 is only
used within the Premier release.
CustomField2 Text 30xAN Custom Field 2 text attached to this item. Custom Field 2 is only
used within the Premier release.
CustomField3 Text 30xAN Custom Field 3 text attached to this item. Custom Field 3 is only
used within the Premier release.
PriceIsInclusive Text 1xAN Y/N flag indicating whether the selling prices attached to this item
are quoted inclusive of tax.
^^^ SellTaxCodeID Integer 10xN TaxCodeID of the record containing the Tax Code When Sold for
this inventory item. Note: The SellTaxCode will not always be the
default tax code used when generating a sale invoice. The
SellTaxCode must be read in conjunction with the
UseCustomerTaxCode selection within the Customer table.
SalesTaxCalcBasisID Text 3xAN PriceLevelID of the record containing the full Sales Tax Calculation
Basis Definition.
TaxInclusiveLastPurchasePrice Double 11.4xN The item’s price per unit when last purchased.
TaxExclusiveLastPurchasePrice Double 11.4xN The item’s tax exclusive price per unit when last purchased.
^^^ BuyTaxCodeID Integer 10xN TaxCodeID of the record containing the Tax Code When Bought
for this inventory item. Note: The BuyTaxCode will not always be
the default tax code used when generating a purchase order. The
BuyTaxCode must be read in conjunction with the
UseSupplierTaxCode selection within the Supplier table.
^^^ PrimarySupplierID Integer 10xN The CardRecordID or SupplierID or the record containing
information about the primary supplier for reorders.
MinLevelBeforeReorder Double 10.3xN The minimum number of items on hand before needing to reorder.
DefaultSellLocationID Integer 10xN LocationID (Locations) of the record containing full details of the
default location assigned to the item within the Sales window or
assigned to the item with a negative quantity within the Build Items
window.
DefaultReceiveLocationID Integer 10xN LocationID (Locations) of the record containing full details of the
default location assigned to the item within the Purchases window
or assigned to the item with a positive quantity within the Build
Items window.
ChangeControl Text 10xAN Number used to control change within the record. Value is
incremented whenever the record is updated.
IncomeAccountID Accounts
ExpenseAccountID Accounts
InventoryAccountID Accounts
CustomList1ID CustomLists
CustomList2ID CustomLists
CustomList3ID CustomLists
DefaultSellLocationID Locations
DefaultReceiveLocationID Locations
PrimarySupplierID Cards Card will be contained in both the Suppliers and the Cards tables.
Suppliers
SellTaxCodeID TaxCodes
SalesTaxCalcBasisID PriceLevels
BuyTaxCodeID TaxCodes
ITEMS 219
MoveItems
Overview
The Move Items table provides details of move item transactions. A MoveItem record is generated for each line of
the Move Items window which contains a cell with an item movement.
*** ItemID Integer 10xN The ItemID (Items) of the record containing information for the
item that was moved.
UserID Integer 10xN UserID (Users) for the creator of this MoveItem record.
ItemID Items
UserID Users
Overview
The Locations table contains information about locations displayed within the Location Information window.
CanBeSold Text 1xAN If items can be sold or shipped from this location. N = No, Y = Yes.
LOCATIONS 221
ItemLocations
Overview
Items can be stored in multiple locations. The ItemLocations table provides a breakdown of quantities stored within
each location.
*** ItemID Integer 10xN ItemID (Items) of the Item record containing full details of the item.
*** LocationID Integer 10xN LocationID (Locations) of the location record containing full details of
the location.
QuantityOnHand Double 12.3xN The quantity of units held in inventory at this location.
SellOnOrder Double 12.3xN The quantity of this item in Order sale invoices at this location.
PurchaseOnOrder Double 12.3xN The quantity of this item in Order purchases at this location.
ItemID Items
LocationID Locations
Overview
The ItemPrices table has removed the selling price matrix from the Items table to generate its own table. Note that
the selling price matrix feature is only available in certain versions of MYOB business management software.
QuantityBreak and QuantityBreakAmount fields have been included. The QuantityBreak field provides the user with
a value of 1 to 5 whereas the QuantityBreakAmount field provides the user with the numeric amount from where the
level commences. Additionally, the PriceLevel and PriceLevelName fields have been included. The PriceLevel field
provides the user with an A to F value whereas the PriceLevelName field provides the user with a link to the user
defined field name. User-defined field names are reported within the table PriceLevels.
*** ItemID Integer 10xN ItemID of item record that owns this selling price.
QuantityBreak Integer 1xN Quantity break level applicable to this selling price.
QuantityBreakAmount Double 10.3xN The quantity break amount applicable to this selling price.
PriceLevel Text 1xAN The price level applicable to this selling price.
PriceLevelNameID Text 3xAN PriceLevelID of the record containing the full Price Level
definition.
SellingPrice Double 11.4xN The items selling price from the price matrix. All item selling
prices are stored in the local currency.
PriceIsInclusive Text 1xA Y/N flag indicating if item selling price is tax inclusive.
ChangeControl Text 5xAN Number used to control change within the record. Value is
incremented whenever the record is updated.
ItemID Items
PriceLevelNameID PriceLevels
ITEMPRICES 223
ItemMovement
Overview
The ItemMovement table displays monthly movement within an item’s Quantity On Hand and Current Value. Item
movement may be stored and thus reportable for the current financial year, the next financial year and the previous
four financial years.
Period Integer 2xN The period of the financial year in which the movement occurred, 1-13.
UnitChange Double 10.3xN The change in the items Quantity on Hand which occurred during the
period.
DollarChange Double 13.2xN The change in the items Current Value which occurred during the period.
ItemID Items
Overview
The ItemOpeningBalance table displays an item’s Quantity On Hand and Current Value at the beginning of the
financial year.
Units Double 10.3xN The item’s quantity on hand at the beginning of the financial year.
Dollars Double 13.2xN The item’s current value at the beginning of the financial year.
ItemID Items
ITEMOPENINGBALANCE 225
ItemSalesHistory
Overview
The ItemSalesHistory table displays total monthly unit sales, dollar sales and cost of sales for items. Item sales history
is stored and thus reportable for the current financial year, next financial year and the previous five financial years.
*** ItemID Integer 10xN ItemID of the item record that owns this sale activity.
Period Integer 2xN The period of the financial year in that the sales occurred.
UnitsSold Double 10.2xN The number of units sold during the period.
SaleAmount Double 13.2xN The dollar value of sales that occurred during the period.
CostOfSalesAmount Double 13.2xN The dollar cost of sales value of inventoried goods sold during the
reporting period.
ItemID Items
Overview
The ItemPurchasesHistory table displays total monthly unit purchases and dollar purchases for items. Item purchase
history is stored and thus reportable for the current financial year, next financial year and the previous five financial
years.
*** ItemID Integer 10xN ItemID of item record that owns this purchase activity.
Period Integer 2xN The period of the financial year in that the purchases occurred.
UnitsBought Double 10.2xN The number of units bought during the period.
PurchaseAmount Double 13.2xN The dollar value of purchases that occurred during the period.
ItemID Items
ITEMPURCHASESHISTORY 227
BuiltItems
*** ItemID Integer 10xN The ItemID of the inventoried item that is being built.
QuantityBuilt Double 11.3xN The minimum quantity that can be built of this item. Additional quantities can
be built provided they are in multiples of the QuantityBuilt.
ItemID Items
Overview
The BuildComponents table can be linked with the BuiltItems table via the BuiltItemID foreign key within the
BuildComponents table.
*** BuiltItemID Integer 10xN The BuiltItemID of the built item to that this item is a component.
SequenceNumber Integer 10xN The sequence of the component within the bill of materials.
*** ComponentID Integer 10xN The ItemID of the record containing item details about this bill of
material.
QuantityNeeded Double 11.3xN The quantity of this component used in making the specified
QuantityBuilt of the BuiltItem.
BuiltItemID BuiltItems
ComponentID Items
BUILDCOMPONENTS 229
NegativeInventory
Overview
The NegativeInventory table provides a link between the SaleLines record that resulted in an item obtaining a
negative on-hand quantity and ItemPurchaseLines, InventoryAdjustmentLines and InventoryTransferLines records
that utilised the negative on-hand quantity.
The link between the negative on-hand generating SaleLine record and those records that utilise the negative
on-hand quantity is used to calculate differences between the UnitCost value assigned to the originating SaleLine
record and the record that utilises the negative on-hand quantity.
SaleLineID Integer 10xN The SaleLineID (SaleLines) of the sale invoice line for this allocation. Will
also have a corresponding entry within the ItemSaleLines, or
ProfessionalSaleLines, or TimeBillingSaleLines, or
MiscellaneousSaleLines tables.
Quantity Double 8.3xN The Quantity of the item not yet offset, or the quantity being used.
IsCreditOffset Text 1xA Indicates if the negative inventory record has been offset by a credit
note: N = No, Y = Yes.
BaseCost Double 13.4xN The average cost value applied at the time that the negative inventory
record was created.
ItemID Integer 10xN The ItemID (Items) of the record containing item information.
LocationID Integer 10xN LocationID (Locations) of the record containing full details of the
location assigned to the SaleLineID record.
SaleLineIsPurged Text 1xAN Indicates whether the SaleLineID record has been purged:
N = No, Y = Yes.
TransactionIsPurged Text 1xAN Indicates whether the TransactionID record has been purged:
N = No, Y = Yes.
JournalTypeID Text 3xAN The JournalTypeID (JournalTypes) of the transaction that caused the
item on hand to go into negative:
SI = Sales Invoice
PO = Purchase Order
IA= Inventory Adjustment
IT = Inventory Transfer
SaleLineID SaleLines
ItemID Items
LocationID Locations
TransactionID SaleLines
InventoryAdjustmentLines
InventoryTransfers
JournalTypeID JournalTypes
NEGATIVEINVENTORY 231
Activities
Overview
The Activities table contains one record for each activity. The Activities table contains all information displayed within
the Activity Information window. Activities can be sold but cannot be purchased.
^^^ IncomeAccountID Integer 10xN The AccountID (Accounts) of the record containing the Income Account.
IsHourly Text 1xAN Y/N flag indicating if the Activity Type is hourly.
IsChargeable Text 1xAN Y/N flag indicating if the Activity Status is chargeable.
BillingRateUsedID Text 1xAN (BillingRateUsed) Indicates whether to use the employee, customer or
activity billing rate.
E = Employee
C = Customer
A = Activity
UseDescription Text 1xAN Use description text instead of activity name on sale invoices.
N = No, Y = Yes.
^^^ TaxCodeID Integer 10xN TaxCodeID (TaxCodes) of the record containing the Tax Code When Sold
for this activity.
ChangeControl Integer 10xAN Number used to control change within the record. Value is incremented
whenever the record is updated.
IncomeAccountID Accounts
BillingRateUsedID BillingRateUsed
CodeID TaxCodes
Overview
The ActivitySalesHistory table displays total monthly unit sales, dollar sales and estimated cost of sales for activities.
Activity sales history is stored and thus reportable for the current financial year, next financial year and the previous
five financial years.
*** ActivityID Integer 10xN ActivityID (Activities) of Activity record that owns this sale
activity.
Period Integer 2xN The period of the financial year in that the sales occurred.
UnitsSold Double 10.2xN The number of units sold during the period.
SaleAmount Double 13.2xN The dollar value of sales that occurred during the period.
ActivityID Activities
ACTIVITYSALESHISTORY 233
ActivitySlips
Overview
The ActivitySlips table contains one record for each activity slip created. The ActivitySlips table includes both
chargeable and non-chargeable activity slips.
*** ActivityID Integer 10xN The ActivityID (Activities) of the record containing activity
information for this activity slip.
*** EmployeeSupplierID Integer 10xN The CardRecordID (Cards) or SupplierID (Suppliers) or EmployeeID
(Employees) of the record containing supplier or employee
information for this activity slip entry.
CardTypeID Text 1xAN CardTypeID (CardTypes) of the record containing the full card type
definition.
S = Supplier
E = Employee
*** CustomerID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) of the record
containing customer information for this activity slip entry.
*** ActivitySlipNumber Text 8xAN The CardRecordID (Cards) or CustomerID (Customers) of the record
containing customer information for this activity slip entry.
Date Date Formatted by the Date of Activity Slip Entry. To avoid SQL reserved word conflicts, use
operating system the ActivityDate field below.
*** ActivityDate Date Formatted by the Date of Activity Slip Entry. This field contains the same data as the
operating system Date field above.
^^^ JobID Integer 10xN The JobID (Jobs) of the record containing job information for this
activity slip.
AlreadyBilledAmount Double 11.4xN The dollar value of the activity already billed.
AdjustmentUnits Double 11.2xN The quantity written off against this activity.
AdjustmentAmount Double 11.4xN The dollar value written off against this activity.
StartTime Text HH:MM The time that the Start button was first depressed within this activity
slip.
StopTime Text HH:MM The time that the Stop button was last depressed within this activity
slip.
ElapsedTime Integer 5xN Time that the job was in Start mode. Measured in seconds.
ElapsedTime will not always equal the difference between the
StopTime and the StartTime. ElapsedTime equals the total time the
activity was in Start mode.
SlipStatusID Text 1xAN StatusID (Status) of the record containing the full activity slip status
definition
O = Open
N = Non-chargeable
C = Closed
ActivityID Activities
EmployeeSupplierID Cards Supplier cards are contained in both the Suppliers and the Cards tables.
Suppliers Employee cards are contained in both the employees and Cards tables.
Employees
CardTypeID CardTypes
CustomerID Cards Card is contained in both the Customers and the Cards tables.
Customers
JobID Jobs
SlipStatusID Status
ACTIVITYSLIPS 235
ActivitySlipInvoiced
Overview
Activity slips generated within the data file can be invoiced over one or more time billing sale invoices. The
ActivitySlipInvoiced table provides a link between the ActivitySlips table and the SaleInvoices table in that the user
can see that sale invoice the activity slip was billed upon.
*** ActivitySlipID Integer 10xN The ActivitySlipID (ActivitySlips) of the activity slip that was invoiced
in part or in whole in this transaction.
*** SaleID Integer 10xN The SaleID (Sales) of the time billing sale invoice that was used to
invoice part of, or all of, the activity slip.
ActivitySlipID ActivitySlips
SaleID Sales
CustomListNumber Integer 1xN The number of the custom list to which this record belongs.
CustomListName Text 30xAN The name of the custom list applicable to the custom list text.
ChangeControl Text 5xAN Number used to control change within the record. Value is incremented
whenever the record is updated.
CustomListType Text 10xAN The type of custom list to which this record belongs.
CUSTOMLISTS 237
Payroll Information Tables
Wages
UseFixedRate Text 13.4xN Indicates whether the pay rate is a multiple of the regular rate or a fixed
hourly rate. If the value is "Y", the pay rate is a multiple of the regular
rate; if the value is "N", the pay rate is a fixed hourly rate.
RegularRateMultiplier Double 3.4xN The pay rate multiplier for calculating the paycheque extension based
upon the number of hours applied. Used only when UseFixedRate=N.
^^^ OverideAccountID Integer 10xN The account ID of the record to use as the expense account for this
wages category.
LinkEntitlement Integer 10xN The number of entitlement categories that are linked to this wage
category.
IsBonusLumpSumPayment Text 1xA (Malaysia) Indicates whether the wages type is a Lump Sum Payment.
Y=Yes, N=No.
IsCalTaxBaseOnPrevYrRate Text 1xA (Malaysia) Indicates whether to use the previous year’s rate for the tax
calculation of a lump sum payment. Y=Yes, N=No.
IncomeType Text 1xA (Singapore) Classifies the income type as ordinary or additional:
O=Ordinary
A=Additional
PayBasisID PayBasis
OverideAccountID Accounts
*** ExpenseAccountID Integer 10xN The AccountID (Accounts) of the record to use as the linked expense
account for this EPF payroll category.
*** PayableAccountID Integer 10xN The AccountID (Accounts) of the record to use as the linked payable
account for this EPF payroll category.
PrintOnPayAdvice Text 1xA If EPF is printed upon the Pay Advice stub. N = No, Y = Yes.
ExpenseAccountID Accounts
PayableAccountID Accounts
ContributionTypeID ContributionTypes
BasisTypeID BasisTypes
EPF 239
CPF
*** ExpenseAccountID Integer 10xN The AccountID (Accounts) of the record to use as the linked expense
account for this CPF payroll category.
*** PayableAccountID Integer 10xN The AccountID (Accounts) of the record to use as the linked payable
account for this CPF payroll category.
PrintOnPayAdvice Text 1xA If CPF is printed upon the Pay Advice stub. N = No, Y = Yes.
ExpenseAccountID Accounts
PayableAccountID Accounts
ContributionTypeID ContributionTypes
BasisTypeID BasisTypes
*** PayableAccountID Integer 10xN The account ID of the record to use as the linked payable account for
this deduction category.
DeductionBasisID Text 1xA The basis type ID of the record containing the full definition of the
type of deduction. Possible values include
U = User-entered,
P = Percentage
D = Fixed Dollar
N = No Limit
H = Fixed Hours
Y = Service Years
DeductionPercent Double 3.5xN The percentage to deduct. This field is valid only when the
DeductionBasisID value is P.
DeductionPercentBaseID Integer 10xN The wage ID of the wages category chosen in the Percent Of popup
list. This field is valid only when the DeductionBasisID value is P.
DeductionAmount Double 13.5xN The dollar amount to deduct. This field is valid only when the
DeductionBasisID value is D.
DeductionAmountFrequencyID Text 1xA The frequency ID of the record containing the full definition of the
frequency chosen in the Dollars Per popup list. This field is valid only
when the DeductionBasisID value is D.
LimitBasisID Text 1xA The basis type ID of the record containing the full definition of the
deduction limit. Possible values include
N = No Limit
P = Percentage
D = Fixed DollarU = User-Entered
H = Fixed Hours
Y = Service Years
LimitPercent Double 3.5xN The percent limit. This field is valid only when the LimitBasisID value is
P.
LimitPercentBaseID Integer 10xN The wage ID of the wages category chosen in the Percent Of popup
list. This field is valid only when the LimitBasisID value is P.
LimitAmount Double 13.5xN The dollar limit. This field is valid only when the LimitBasisID value is
D.
LimitAmountFrequencyID Text 1xA The frequency ID of the record containing the full definition of the
frequency chosen in the Dollars Per popup list.
This field is valid only when the LimitBasisID value is D.
IsTaxDeductible Text 1xA Used for Zakat deduction type to cater for Zakat relief from Tax
amount. Y=Yes, N=No.
PayableAccountID Accounts
DeductionBasisID BasisTypes
DeductionPercentBaseID Wages
DeductionAmountFrequencyID Frequencies
LimitBasisID BasisTypes
LimitPercentBasisID Wages
LimitAmountFrequencyID Frequencies
DEDUCTIONS 243
EmployerExpenses
*** ExpenseAccountID Integer 10xN The account ID of the record to use as the expense account for this employer
expense category.
*** PayableAccountID Integer 10xN The account ID of the record to use as the linked payable account for this
employer expense category.
ExpenseBasisID Text 1xA The basis type ID of the record containing the full definition of the expense
basis.
ExpensePercent Double 3.5xN The Expense Basis Percentage. This field is valid only if the ExpenseBasisID
value is P.
ExpensePercentBaseID Integer 10xN The wage ID, CPF/EPF ID or deduction ID of the category used in the
percentage calculation. This field is valid only if the ExpenseBasisID value is P.
ExpenseAmount Double 13.5xN The dollar amount used in the employer expense. This field is valid only if the
ExpenseBasisID value is D.
ExpenseAmountFrequencyID Text 1xA The frequency ID of the record containing the full definition of the frequency
chosen in the Dollars Per popup list. Possible values include:
P = Pay Period
M = Monthly
Y = Yearly
LimitBasisID Text 1xA The basis type ID of the record containing the full definition of the expense
limit. Possible values include:
N = No Limit
P = Percentage
D = Fixed Dollar
U = User-Entered
H = Fixed Hours
Y = Service Years
LimitPercent Double 3.5xN The percentage limit of the expense. This field is valid only if the LimitBasisID
value is P.
LimitPercentBaseID Integer 10xN The wage ID, CPF/EPF ID or deduction ID of the category chosen in the
Percent Of popup list. This field is valid only if the LimitBasisID value is P.
LimitAmount Double 13.5xN The dollar limit of the expense. This field is valid only if the LimitBasisID value
is D.
LimitAmountFrequencyID Text 1xA The frequency ID of the record containing the full definition of the frequency
chosen in the Dollars Per popup list.
Possible values include
P = Pay Period
M = Monthly
Y = Yearly
PrintOnPayAdvice Text 1xA Indicates whether the employer expense is printed on the pay advice.
ExpenseAccountID Accounts
PayableAccountID Accounts
ExpenseBasisID BasisTypes
ExpensePercentBaseID Wages
Deductions
CPF
EPF
ExpensePercentBaseTypeID PayrollCategoryTypes
ExpenseAmountFrequencyID Frequencies
LimitBasisID BasisTypes
LimitPercentBaseID Wages
Deductions
CPF
EPF
LimitPercentBaseTypeID PayrollCategoryTypes
LimitAmountFrequencyID Frequencies
EMPLOYEREXPENSES 245
Entitlements
EntitlementBasisID Text 1xA Basis type ID of the record containing the full definition of the type of
Entitlement.
PrintOnPayAdvice Text 1xA Indicates whether the entitlement is printed upon the pay advice.
CarryOver Text 1xA Indicates whether remaining entitlement are carried over to the next
payroll year.
EntitlementBasisID BasisTypes
LinkedWagesAccountID Wages
The LinkedEmployees table displays a listing of all employees that are linked to the parent payroll category.
*** PayrollCategoryID Integer 10xN The ID of the record containing full details of the parent payroll
category.
CardRecordID Integer 10xN The parent employee card found within the Cards or Employees table.
PayrollCategoryID Wages
Entitlements
Deductions
EmployerExpenses
EPF
CPF
PayrollCategoryTypeID PayrollCategoryTypes
CardRecordID Cards
Employees
LINKEDEMPLOYEES 247
WageHourHistory
WageHourHistoryID Integer 12xN Unique identifier. This value is to be assigned by ODBC. For ODBC
purposes, wage history will be presented on a record-by-record
basis. ODBC is required to generate a unique identifier for each
record created in the WageHourHistory table.
*** WageID Integer 10xN The wage ID of the wage category associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated
with this history.
Period Integer 4xN The period of the payroll year in which the activity occurred.
Possible values include numbers 1 through 12.
PayrollYear Integer 4xN Payroll year in which the activity occurred. (Payroll history is
stored only for the current payroll year.)
Hours Double 12.2xN Hours of activity that occurred during the period of the payroll
year.
A positive value in this field indicates that hours have been added
to a paycheque. A negative value indicates that hours have been
deducted from a paycheque.
WageID Wages
CardRecordID Cards
Employees
WageDollarHistoryID Integer 12xN Unique identifier. This value is to be assigned by ODBC. For ODBC
purposes, wage history will be presented on a record-by-record basis.
ODBC is required to generate a unique identifier for each record created
in the WageDollarHistory table.
*** WageID Integer 10xN The wage ID associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
PayrollYear Integer 4xN Payroll year in which the activity occurred. (Payroll history is stored only
for the current payroll year.)
Dollars Double 12.2xN Dollar amount of activity which occurred during the specific payroll
period.
A positive value represents an addition to a paycheque. A negative value
represents a withholding from a paycheque.
WageID Wages
CardRecordID Cards
Employees
WAGEDOLLARHISTORY 249
WageDayHistory
*** WageID Integer 10xN The wage ID associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
WageID Wages
CardRecordID Cards
Employees
*** EPFID Integer 10xN The EPF ID associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
EPFID EPF
CardRecordID Cards
Employees
EPFHISTORY 251
SOCSOHistory
*** SOCSOID Integer 10xN The SOCSO ID associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
SOCSOID SOCSOSchemeTypes
CardRecordID Cards
Employees
*** TAXID Integer 10xN The TAX ID associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
TAXID TaxTypes
CardRecordID Cards
Employees
TAXHISTORY 253
CPFHistory
*** CPFID Integer 10xN The CPF ID associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
CPFID CPFSchemeTypes
CardRecordID Cards
Employees
DeductionHistoryID Integer 12xN Unique identifier. This value is to be assigned by ODBC. For ODBC
purposes, deduction history will be presented on a record-by-record
basis. ODBC is required to generate a unique identifier for each record
created in the DeductionHistory table.
*** DeductionID Integer 10xN The deduction ID of the deduction category associated with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
PayrollYear Integer 4xN Payroll year the activity occurred. (Payroll history is stored only for the
current payroll year.)
Dollars Double 12.2xN Value of activity which occurred during the specific payroll period. A
positive value in this field indicates that an amount has been withheld
from a paycheque. A negative value indicates that an amount has been
added to a paycheque.
DeductionID Deductions
CardRecordID Cards
Employees
DEDUCTIONHISTORY 255
EmployerExpenseHistory
EmployerExpenseHistoryID Integer 12xN Unique identifier. This value is to be assigned by ODBC. For ODBC
purposes, employer expense history will be presented on a
record-by-record basis. ODBC is required to generate a unique identifier
for each record created in the EmployerExpenseHistory table.
*** EmployerExpenseID Integer 10xN The employer expense ID of the employer expense category associated
with this history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
PayrollYear Integer 4xN Payroll year in which the activity occurred. (Payroll history is stored only
for the current payroll year.)
Dollars Double 12.2xN Value of activity which occurred during the specific payroll period.
A positive value in this field indicates that an amount has been withheld
from a paycheque. A negative value indicates that an amount has been
added to a paycheque.
EmployerExpenseID EmployerExpenses
CardRecordID Cards
Employees
EntitlementHistoryID Integer 12xN Unique identifier. This value is to be assigned by ODBC. For ODBC
purposes, entitlement history will be presented on a record-by-record
basis. ODBC is required to generate a unique identifier for each record
created in the EntitlementHistory table.
*** EntitlementID Integer 10xN The Entitlement ID of the entitlement category associated with this
history.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with this
history.
Period Integer 4xN The period of the payroll year in which the activity occurred. Possible
values include numbers 1 through 12.
PayrollYear Integer 4xN Payroll year in which the activity occurred. (Payroll history is stored only
for the current payroll year.)
Day Double 12.2xN Days accrued during the period of the payroll year. A positive value in this
field indicates that entitlements have been added to a paycheque. A
negative value indicates that entitlements have been deducted from a
paycheque.
EntitlementID Entitlements
CardRecordID Cards
Employees
ENTITLEMENTHISTORY 257
EntitlementCarryOver
*** EntitlementID Integer 10xN The Entitlement ID of the entitlement category associated with these
carryover days.
*** CardRecordID Integer 10xN The card record ID or employee ID of the employee associated with
these carryover hours.
PayrollYear Integer 4xN Payroll year in which the activity occurred. Carry-over history is stored
only for the previous two payroll years.
EntitlementID Entitlements
CardRecordID Cards
Employees
ENTITLEMENTSERVICEYEARS 259
Timesheets
*** EmployeeID Integer 10xN The CardRecordID (Cards) or EmployeeID (Employees) of the
record containing employee information for this timesheet entry.
*** WagesID Integer 10xN The WageID (Wages) containing full details of the wage category
assigned to the timesheet entry.
^^^ JobID Integer 10xN The JobID (Jobs) of the record containing job information for this
timesheet entry.
*** CustomerID Integer 10xN The CardRecordID (Cards) or CustomerID (Customers) of the
record containing customer information for this timesheet entry.
Units Double 11.2xN The value assigned within the cell of the Enter Timesheet window.
PayrollStatusID Text 1xA StatusID (Status) of the record containing the full payroll
processing status of the timesheet
U = Unselected
S = Selected
R = Ready to pay
P = Paid
*** SetID Integer 10xN Links timesheet entries with like attributes together allowing rows
to be generated within the Enter Timesheet window
EmployeeID Cards
Employees
WagesID Wages
JobID Jobs
CustomerID Cards
Customers
PayrollStatusID Status
JournalRecordID JournalRecords
TransferMoney
SetID JournalSets
CONTRIBUTIONTYPES 261
EmploymentClassifications
EMPLOYMENTDEPARTMENT 263
Definitions
JournalTypes
JournalTypeID Text 3xAN Unique Identifier. Predefined from the following list: GJ, BD, MS, MR, SI, CP, CFC,
CDC, CDP, PO,SP, SFC, SDC, SDP, CRC, SC, SD, DRD, IA, IT, EP, TM, N/A
Overview
The JournalTypes table provides a full definition of the TaxCodeTypeID. The TaxCodeTypeID is used within the
TaxCodes table in order to reduce memory usage, provide shorter string comparison and promote database
normalisation. By providing definitions as a separate table, the description of the Tax code type can be changed
without affecting existing queries as the TaxCodeTypeID reported information stays the same in TaxCodes table.
The TaxCodeTypes table derives its information from a predefined list.
TaxCodeTypeID Text 3xAN Unique Identifier. Predefined from the following list; C, ID, ST, GST, IT
Import Duty =1
Sales Tax = 2
Goods and Services Tax = 3
Input Taxed = 4
Luxury Car Tax = 6
Voluntary Withholdings = 7
No ABN/TFN = 8
TAXCODETYPES 265
PriceLevels
Overview
The PriceLevels table provides a full definition of the price levels. The PriceLevelID (or SalesTaxCalculationBasisID) is
used within the Customers, ItemPrices, ItemSaleLines and Items tables in order of reducing memory usage,
providing shorter string comparison and promoting database normalisation.
By providing definitions as a separate table, the description of the price level can be changed without affecting
existing queries as the PriceLevelID (or SalesTaxCalculationBasisID) reported information stays the same in the
tables.
PriceLevelID Text 3xAN Unique Identifier. Predefined from the following list; ASP BSP, PLA, PLB,
PLC, PLD, PLE, PLF
Description Text 30xAN Actual Selling Price; Base Selling Price; Price Level {A, B, C, D, E, F}
Overview
The Identifiers table provides the description attached to the identifier code. The IdentifierID is used within the
Cards, Customers, Suppliers, Employees and PersonalCards tables to reduce memory usage, providing shorter string
comparison and promoting database normalisation. By providing identifier descriptions within a separate table,
descriptions can be changed without affecting existing queries as the IdentifierID reported within the Cards,
Customers, Suppliers, Employees or PersonalCards table will remain the same. The Identifiers table derives its
information from information stored within the ALPHAFILEID filette. Contents of the list are presented in the table
below:
IdentifierID Text 3xAN Each of the 26 letters in the alphabet can be used.
ChangeControl Text 5xAN Number used to control change within the record. Value is incremented
whenever the record is updated.
IDENTIFIERS 267
TermsOfPayment
Overview
The TemsOfPayment table provides a full definition of the TermsOfPaymentID field. The TermsOfPaymentID field is
found within the Terms table. Use of the TermsOfPaymentID within the Terms table reduces memory usage,
provides shorter string comparison and promotes database normalisation.
The TermsOfPayment table derives its information from a predefined list.
TermsOfPaymentID Text 4xAN Unique Identifier. Predefined from the following list: COD, PPD, GND, DOM,
NDAE, DMAE
Overview
The CardTypes table provides a full definition of the CardTypeID field. The CardTypeID field is found within the
Cards table. Use of the CardTypeID within the Cards table reduces memory usage, provides shorter string
comparison and promotes database normalisation.
CardTypeID Text 1xAN Unique Identifier. Predefined from the following list; C, S, E, P
CARDTYPES 269
AccountClassification
Overview
The AccountClassification table provides a full definition of the AccountClassificationID field. The
AccountClassificationID field is found within the Accounts table. Use of the AccountClassificationID within the
Accounts table reduces memory usage, provides shorter string comparison and promotes database normalisation.
The AccountClassification table derives its information from a predefined list.
AccountClassificationID Text 4xAN Unique Identifier. Predefined from the following list; A, L, EQ, I, COS,
EXP, OI, OEXP
Description Text 13xAN Asset; Liability; Equity; Income; Cost of Sales; Expense; Other Income;
Other Expense
Overview
The AccountType table provides a full definition of the AccountTypeID field. The AccountTypeID field is found within
the Accounts table. Use of the AccountTypeID within the Accounts table reduces memory usage, provides shorter
string comparison and promotes database normalisation.
The AccountType table derives its information from a predefined list.
AccountTypeID Text 1xAN Unique Identifier. Predefined from the following list; S, B, H, D, N
ACCOUNTTYPE 271
InvoiceType
Overview
The InvoiceType table provides a full definition of the InvoiceTypeID field. The InvoiceTypeID foreign key field found
within the Sales table links to the InvoiceTypeID primary key within the InvoiceType table. The PurchaseTypeID
foreign key field found within the Purchases table links to the InvoiceTypeID primary key within the InvoiceType
table. Use of the InvoiceTypeID field within the Sales table and the PurchaseTypeID field within the Purchases table
reduces memory usage, provides shorter string comparison and promotes database normalisation.
InvoiceTypeID Text 1xAN Unique Identifier. Predefined from the following list; S, I, P, T, M, N.
Description Text 13xAN Service; Item; Professional; Time Billing; Miscellaneous; No Default.
Overview
The Status table provides a full definition of the StatusID field.
The InvoiceStatusID foreign key field found within the Sales table links to the StatusID primary key within the
Status table.
The PurchaseStatusID foreign key field found within the Purchases table links to the StatusID primary key within
the Status table.
The SlipStatusID foreign key field found within the ActivitySlips table links to the StatusID primary key within the
Status table.
Use of the InvoiceStatusID field within the Sales table, the PurchaseStatusID field within the Purchases table and the
SlipStatusID field within the ActivitySlips table reduces memory usage, provides shorter string comparison and
promotes database normalisation.
The Status table derives its information from a predefined list.
StatusID Text 2xAN Unique Identifier. Predefined from the following list:
O
C
Q
OR
DR
CR
N
U
S
R
P
CP
STATUS 273
BillingRateUsed
Overview
The BillingRateUsed table provides a full definition of the BillingRateUsedID field. The BillingRateUsedID field is found
within the Activities table. Use of the BillingRateUsedID within the Activities table reduces memory usage, provides
shorter string comparison and promotes database normalisation.
The BillingRateUsed table derives its information from a predefined list.
BillingRateUsedID Text 2xAN Unique Identifier. Predefined from the following list:
E, C, A.
Overview
The ReconciliationStatus table provides a full definition of the ReconciliationStatusID field. The
ReconciliationStatusID field is found within the JournalRecords table.
Use of the ReconciliationStatusID within the JournalRecords table reduces memory usage, provides shorter string
comparison and promotes database normalisation.
The ReconciliationStatus table derives its information from a predefined list.
ReconciliationStatusID Text 1xAN Unique Identifier. Predefined from the following list; D, S, R
D = Deselected
S = Selected
R = Reconciled
RECONCILIATIONSTATUS 275
DepositStatus
Overview
The DepositStatus table provides a full definition of the status of a number of deposit transactions. The
DepositStatusID is used within the MoneyReceived and CustomerPayments tables to reduce memory usage, provide
shorter string comparison and promote database normalisation. By providing definitions as a separate table, the
description of the deposit status can be changed without affecting existing queries as the DepositStatusID stays the
same within the MoneyReceived and CustomerPayments tables.
The DepositStatus table derives its information from a predefined list.
D = Direct
S = Selected
T = Transferred
U = Unselected
The LimitTypes table provides a full definition of the exceed credit limit action combo-box selection within the Sales
tab of the Preferences window. The LimitTypeID is used within the DataFileInformation table in order to reduce
memory usage, provide shorter string comparison and promote database normalisation.
By providing definitions as a separate table, the description of the LimitType can be changed without affecting
existing queries as the LimitTypeID reported information will stay the same in the DataFileInformation table.
LimitTypeID Text 1xAN Unique identifier. Predefined from the following list: W, P
LIMITTYPES 277
PayBasis
Overview
The PayBasis table provides a full definition of the PayBasisID field.
Overview
The Frequencies table provides a full definition of the FrequencyID field. FrequencyID is used within tables in order
to reduce memory usage, provide shorter string comparison and promote database normalisation.
The Frequencies table derives its information from a predefined list.
FREQUENCIES 279
BasisTypes
Overview
The BasisTypes table provides a full definition of the BasisTypeID field.
EntitlementID Entitlements
WageID Wages
LINKEDWAGES 281
PayrollCategoryTypes
Overview
The PayrollCategoryTypes table provides a full definition of the PayrollCategoryTypeID field.
MARITALSTATUS 283
Rounding
Overview
The Rounding table provides a full definition of the RoundToID field.
RoundingID Text 1xAN Unique identifier. Predefined from the following list: U, D, N
Overview
The SubAccountType table provides a full definition of the SubAccountTypeID field. SubAccountTypeID is used
within tables to reduce memory usage, provide shorter string comparison and promote normalisation.
SubAccountTypeID is the equivalent of SubAccountTypeID within the Accounts table.
SubAccountTypeID Text 3xAN Unique identifier. Predefined from the following list: B, AR,
OCA, FA, OA, CC, AP, OCL, LTL, OL, EQ, I, COS, EXP, OI,
OE
SUBACCOUNTTYPES 285
CashFlowClassifications
Overview
The CashFlowClassifications table provides a full definition of the CashFlowClassificationsID field.
CashFlowClassificationsID is used within tables to reduce memory usage, provide shorter string comparison and
promote database normalisation.
The CashFlowClassifications table derives its information from a predefined list.
CashFlowClassID Text 3xAN Unique identifier. Predefined from the following list:
N/A
NI
C
O
I
F
E
Overview
The LineType table provides a full definition of the LineTypeID field. The LineTypeID is used within a number of
tables to reduce memory usage, provide shorter string comparison and promote database normalisation.
By providing definitions as a separate table, the description of the line type can be changed without affecting
existing queries as the LineTypeID stays the same within all tables.
The LineType table derives its information from a predefined list.
LineTypeID Text 1xAN Unique identifier. Predefined from the following list:
D
H
S
W
D = Data
H = Header
S = Subtotal
W = Without Item or Account
LINETYPE 287
PaymentTypes
The PaymentTypes table provides a full definition of the Payment Type option within the Pay Employee window. The
PaymentTypeID is used within the WritePaycheque table in order to reduce memory usage, provide shorter string
comparison and promote database normalisation.
By providing definitions as a separate table, the description of the PaymentType can be changed without affecting
existing queries as the PaymentTypeID reported information will stay the same in the WritePaycheque table.
PaymentTypeID Text 1xA Unique identifier. Predefined from the following list: C, Q, B.
The InvoiceDelivery table provides a full definition of the Invoice Delivery combo-box selection within an Employees
card, the Invoice Delivery Status within the Sales window or the Bill Delivery Status within the Purchases window.
The InvoiceDeliveryID is used within a number of tables in order to reduce memory usage, provide shorter string
comparison and promote database normalisation.
By providing definitions as a separate table, the description of the InvoiceDelivery can be changed without affecting
existing queries as the InvoiceDeliveryID reported information will stay the same in the applicable tables.
InvoiceDeliveryID Text 1xAN Unique identifier. Predefined from the following list: P, E, B, A
P = To be Printed
E = To be Emailed
B = To be Printed and Emailed
A = Already Printed or Sent
INVOICEDELIVERY 289
AuditTypes
The AuditTypes table provides a full definition of the audit record type. The AuditTypeID is used within the AuditTrail
table in order to reduce memory usage, provide shorter string comparison and promote database normalisation.
By providing definitions as a separate table, the description of the AuditType can be changed without affecting
existing queries as the AuditTypeID reported information will stay the same in the applicable tables.
AuditTypeID Text 1xAN Unique identifier. Predefined from the following list: T, X, A, S
DayNamesID Text 3xA Unique identifier. Predefined from the following list:
MON
TUE
WED
THU
FRI
SAT
SUN
MON = Monday
TUE = Tuesday
WED = Wednesday
THU = Thursday
FRI = Friday
SAT = Saturday
SUN = Sunday
DAYNAMES 291
OrderStatus
The OrderStatus table provides a full definition of the OrderStatusID field. The OrderStatusID foreign key field found
within the Purchases table links to the OrderStatusID primary key within the OrderStatus table.
Use of the OrderStatusID field within the Purchases table reduces memory usage, provides shorter string comparison
and promotes database normalisation.
The OrderStatus table derives its information from a predefined list.
OrderStatusID Text 2xAN Unique identifier. Predefined from the following list:
T
N
S
A
B
F
CR
RR
T = Not An Order
N = No Items Received
S = Some Items Received
A = All Items Received
B = Billed from Partially Received Order
F= Billed from Fully Received Order
CR= Receive Item Converted to a Bill
RR= Reversal of Receive Item
The Schedule table provides a full definition of the ScheduleID field. The ScheduleID foreign key links to the
ScheduleID primary key within the Schedule table. The ScheduleID foreign key field is found within the following
tables:
RecurringSales
RecurringPurchases
RecurringSpendMoney
RecurringReceiveMoney
RecurringTransferMoney
RecurringGeneralJournals
Use of the ScheduleID foreign key within a number of tables reduces memory usage, provides shorter string
comparison and promotes database normalisation. The Schedule table derives its information from a predefined list.
ScheduleID Text 3xAN Unique identifier. Predefined from the following list:
I
U
P
I = Continue Indefinitely
U = Continue Until a Date
P = Perform a Number of Times
SCHEDULE 293
Alerts
The Alerts table provides a full definition of the AlertID field. The AlertID foreign key links to the AlertID primary key
within the Alerts table. The AlertID foreign key field is found within the following tables:
RecurringSales
RecurringPurchases
RecurringSpendMoney
RecurringReceiveMoney
RecurringTransferMoney
RecurringGeneralJournals
Use of the AlertID foreign key within a number of tables reduces memory usage, provides shorter string comparison
and promotes database normalisation. The Alerts table derives its information from a predefined list.
AlertID Text 3xAN Unique identifier. Predefined from the following list:
R
A
The AlertTypes table provides a full definition of the AlertTypeID field. The AlertTypeID foreign key links to the
AlertTypeID primary key within the AlertTypes table. The AlertTypeID foreign key field is found within the following
tables:
RecurringSales
RecurringPurchases
RecurringSpendMoney
RecurringReceiveMoney
RecurringTransferMoney
RecurringGeneralJournals
Use of the AlertTypeID foreign key within a number of tables reduces memory usage, provides shorter string
comparison and promotes database normalisation. The AlertTypes table derives its information from a predefined
list.
AlertTypeID Text 3xAN Unique identifier. Predefined from the following list:
N
D
A
N = Never.
D = On Its Due Date.
A = # Days in Advance.
ALERTTYPES 295
NumberingTypes
The NumberTypes table provides a full definition of the NumberingTypeID field. The NumberingTypeID foreign key
links to the NumberingTypeID primary key within the NumberingTypes table. The NumberingTypeID foreign key
field is found within the following tables:
RecurringSales
RecurringPurchases
RecurringSpendMoney
RecurringReceiveMoney
RecurringTransferMoney
RecurringGeneralJournals
Use of the NumberingTypeID foreign key within a number of tables reduces memory usage, provides shorter string
comparison and promotes database normalisation. The NumberingTypes table derives its information from a
predefined list.
NumberingTypeID Text 3xAN Unique identifier. Predefined from the following list:
N
S
EmploymentCategoryID Text xAN Unique identifier. Predefined from the following list: P, T, C
EMPLOYMENTCATEGORY 297
EmploymentStatus
The EmploymentStatus table provides a full definition of the EmploymentStatusID field. The EmploymentStatusID
foreign key field found within the Employees table links to the EmploymentStatusID primary key within the
EmploymentStatus table.
EmploymentStatusID Text 1xAN Unique identifier. Predefined from the following list: F, P, O, C
F = Full Time
P = Part Time
O = Other
C = Casual
SOCSOSchemeID Text 1xA Unique identifier. Predefined from the following list: 0, 1, 2
SOCSOSCHEMETYPES 299
TaxTypes
TaxID Text 1xA Unique identifier. Predefined from the following list: 0, 1, 2, 3, 4
CPFSchemeID Text 1xA Unique identifier. Predefined from the following list: 0, 1, 2, 3, 4, 5
CPFSCHEMETYPES 301
Password Restrictions
If a user is restricted from accessing an MYOB software function or window, for example the Spend Money window,
they will also be unable to access the table information relating to the function when using the MYOB ODBC Direct
driver.
The following table lists which ODBC tables and fields are restricted from a user when the related function has been
restricted in the company file.
DataFileInformation DefaultCustomerPriceLevelID
DefaultCustomerTaxCodeID
DefaultUseCustomerTaxCode
DefaultCustomerFreightTaxCodeID
DefaultCustomerCreditLimit
DefaultSupplierTaxCodeID
DefaultUseSupplierTaxCode
DefaultSupplierFreightTaxCodeID
DefaultSupplierCreditLimit
LinkedAccounts All
To Do List N/A
CustomiseForms N/A
RecurringMoneyReceived PaymentCardNumber
PaymentNameOnCard
PaymentExpirationDate
PaymentNotes
HOW TO WRITE
This section provides an overview of writing and committing information to an MYOB
company file.
NOTE : Note: There are differences in the import routine fields available in the multi-user and
single-user MYOB products. Ensure that when you develop applications or solutions using the
MYOB ODBC Direct driver that these solutions take into account the field differences between the
multi-user and the single-user products.
Before you can write to a company file, the file must have been activated. The driver will check
that the company file has been activated before importing any data. If the company file has
not been activated, the import will not proceed and the driver will return an error code.
For more information about:
connecting to a company file, see ‘Connecting to a data source’ on page 314
structuring the SQL insert statements, see ‘Structuring the SQL INSERT command’ on
page 315
connection keywords and supported values, see ‘Connection string keywords and
supported values’ on page 19
native commands, see ‘Native commands’ on page 34.
313
Connecting to a data source
You can connect to an MYOB company file (the data source) for read and write access in two
ways: either by setting up a Data Source Name (DSN) for the file using the Data Sources
(ODBC) administrative tool in the Windows Control Panel, or without a DSN.
When connecting to the data source for writing, a connection string is required. The
parameters within the connection string, defined by keywords and their assigned values,
override default DSN values.
A connection string is a concatenation of a number of keywords and assigned values in the
format of [KEYWORD]=[VALUE];
Keywords and their assigned values are separated from other keyword/value pairs with
semi-colons. A semi-colon is also required to terminate a connection string.
Connection strings can be used when connecting to a data source with a DSN or, when the
DRIVER keyword is set, connecting directly to the data source.
For more information, see ‘Connection string keywords and supported values’ on page 19
NOTE :Note: When connecting using a DSN, keywords and values in a connection string take
precedence over the equivalent values set in the DSN.
For more information, see ‘Connection string keywords and supported values’ on page 19
When structuring the INSERT command, the MYOB file import structure must be observed.
Refer to Chapter 5, ’Write tables,’ starting on page 321 for information about structuring an
import record set for an import table.
The INSERT command is in the standard SQL format for single and multiple line inserts.
However, when there are several transactions, such as sales or invoices, the individual
transactions need to be separated by executing the END TRANSACTION command.
The END TRANSACTION command allows the addition of multiple transactions. This
command cannot be parsed to the ODBC driver as part of an insert statement block, but must
be parsed separately. The ODBC driver buffers all insert statement blocks to the driver, only
committing them to the import routines of the MYOB application when a COMMIT is called.
myTrans.Commit();
NOTE :MYTRANS is an ODBC transaction object in the .NET environment. For information
regarding the MYTRANS ODBC transaction object, refer to the MSDN help files. A full example on
how to create the transaction object is available within the sample source code examples.
NOTE : The NULL keyword must only be used with MYOB ODBC Direct v6.0.13 or later. Using the
NULL keyword with earlier versions will cause an unrecoverable error.
If you don’t want an integer or a double field to be altered when importing data, use the NULL
keyword in the insert statement.
The following example shows the result of using 0, ‘’, and NULL in an insert statement. Assume
that c2 is an integer field.
insert into T(c1, c2) values (1, 0); => Column c2 will be passed value 0
insert into T(c1, c2) values (1, ‘’); => Column c2 will be passed value 0
insert into T(c1, c2) values (1, NULL); => Column c2 will be passed value NULL
The MYOB ODBC Direct driver supports the following stored procedures.
When inserting a sale, purchase, banking transaction or updating a card record, an ‘identify
by’ method is available using the CardRecordID (user assigned). In addition, the unique
RecordID of any card can also be used. The IDENTIFY_BY option can still be set in the
connection string, however, when using the new native commands listed in this document,
the INDENTIFY_BY parameter can be set as required.
NOTE : The IDENTIFY_BY option will only take effect on import routines that support the
identification method.
NOTE : The driver can only detect the Terminal Server environment if the process using the
ODBC driver is running within the Terminal Server session.
The licence count will not increment when using MYOB ODBC v8 with the 2008 release of
MYOB Premier and MYOB Premier Enterprise. The maximum number of users allowed by a
client’s licence can connect to the company file, in addition to any ODBC connections.
The username that is used to connect to the company file via MYOB ODBC Direct will be
shown as being connected and will be tracked by the audit tracking features, however, the
licence count will not increment.
NOTE : Due to technical limitations, users must connect to the company file before the additional
ODBC connections are made.
0<2%3UHPLHU 0<2%2'%&'LUHFW
XVHUFRQQHFWLRQV FRQQHFWLRQV
XVHU RGEF
0<2%3UHPLHU
XVHU FRPSDQ\ILOH
OLFHQFHFRXQW
RGEF
XVHU
WRITE TABLES
Import Account Budgets
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is
optional.
ThisYearPeriod1 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod2 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod3 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod4 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod5 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod6 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod7 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod8 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod9 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod10 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod11 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
ThisYearPeriod12 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod1 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod2 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod3 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
321
Field Name Type Format Notes
NextYearPeriod4 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod5 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod6 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod7 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod8 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod9 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod10 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod11 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
NextYearPeriod12 Double 13.2xN Negative values are indicated as such by way of a leading
negative sign. Currency formatting must not be applied.
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is optional.
Header Text 1xAN Any non-zero value indicates that the account is a Header. A Details
account can be converted to a Header account via importing. A
Header account cannot be converted to a Detail account via
importing.
Balance Double 13.2xN Negative values are indicated as such by way of a leading negative
sign. Currency formatting must not be applied.
AccountType Text 23xA Account Types cannot be updated via importing. The Account Type
of new accounts can be set using the following rules:
If Asset account:
- If Header, the AccountType can only be "Asset"
- If Non-Header, the following values can be assigned:
• Bank
• Accounts Receivable
• Other Current Asset
• Fixed Asset
• Other Asset
If Liability account:
- If Header, the AccountType can only be "Liability"
- If Non-Header, the following values can be assigned:
• Credit Card
• Accounts Payable
• Other Current Liability
• Long Term Liability
• Other Liability
If Equity account, the AccountType can only be "Equity"
If Income account, the AccountType can only be "Income"
If Cost of Sales account, the AccountType can only be "Cost of Sales"
If Expense account, the AccountType can only be "Expense"
If Other Income account, the AccountType can only be "Other
Income"
If Other Expense account, the AccountType can only be "Other
Expense"
ExchangeAccount Integer 6xN Only available in multi-user version. The account separator is
optional.
UseDescriptionOnSale Text 1xAN Any non-zero value indicates that the Activity Description is used on
Sales. The Use Description on Sales checkbox cannot be deselected
via importing.
NonHourly Text 1xAN Any non-zero value indicates that the Activity is Non-hourly. The
Hourly/Non-hourly status of an existing activity cannot be updated
through importing. The Hourly/Non-hourly status can only be set
when importing a new activity record.
NonChargeable Text 1xAN Any non-zero value indicates that the Activity is Non-chargeable. The
Chargeable/Non-chargeable status of an existing activity cannot be
updated through importing. The Chargeable/Non-chargeable status
can only be set when importing a new activity record.
EmpCoLastName Text 30xAN A value must exist within this field if no value exists within the EmpCardID and
EmpRecordID fields.
SlipDate Text 11xAN Date format is controlled within the Regional Settings of the operating system
CustFirstName Text 20xAN When the card is Individual, the format of the CustCoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company. When
the card is Company, the format of the CustCoLastName field is 50xAN.
Units Double 11.2xN Negative values are indicated as such by way of a leading negative sign.
AdjustmentDollars Double 11.2xN Negative values are indicated as such by way of a leading negative sign.
Currency formatting must not be applied.
AdjustmentUnits Double 11.2xN Negative values are indicated as such by way of a leading negative sign.
BilledDollars Double 11.2xN Negative values are indicated as such by way of a leading negative sign.
Currency formatting must not be applied.
BilledUnits Double 11.2xN Negative values are indicated as such by way of a leading negative sign.
StartTime Text 11xAN Field is to be formatted HH:MM:SS AM/PM. It is not necessary to include
AM/PM if the time is reported in 24 hour time.
StopTime Text 11xAN Field is to be formatted HH:MM:SS AM/PM. It is not necessary to include
AM/PM if the time is reported in 24 hour time.
EmpCardID Text 15xAN A value must exist within this field if no value exists within the
EmpCoLastName and EmpRecordID fields.
EmpRecordID Text 10xAN A value must exist within this field if no value exists within the
EmpCoLastName and EmpCardID fields.
CoLastName Text 50xAN Entry in this field is conditional. A value must exist
within this field if no value exists within the CardID and
CardRecordID fields.
CardID Text 15xAN Entry in this field is conditional. A value must exist
within this field if no value exists within the CoLastName
and CardRecordID fields.
CardRecordID Integer 10xN Entry in this field is conditional. A value must exist
within this field if no value exists within the CoLastName
and CardID fields.
LogDate Text 10xAN Date format is controlled within the Regional Settings of
the operating system.
ElapsedTime Text 5xAN Field can be formatted in hours and minutes (HH:MM)
or minutes only (NNNN).
RecontactDate Text 10xAN Date format is controlled within the Regional Settings of
the operating system.
ContactLogRecordID Integer 10xN A value must exist within this field if attempting to
update an existing contact log record.
I = Item
C = Customer
S = Supplier
E = Employee
P = Personal
1 = Custom List 1
2 = Custom List 2
3 = Custom List 3
UpdateCustomListName Text 30xAN A value must exist within this field if attempting to
update an existing custom list record.
CoLastName Text 50xAN Entry in this field is conditional. A value must exist within this field
if no value exists within the CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field
if no value exists within the CoLastName and RecordID fields.
Address4AddressLine2 Text 253xAN The maximum length of Address4 Line 2 is reduced by any content
existing within field Address1AddressLine1.
Address4AddressLine3 Text 251xAN The maximum length of Address4 Line 2 is reduced by any content
existing within fields Address1AddressLine1 and
Address1AddressLine2.
Address4AddressLine4 Text 249xAN The maximum length of Address4 Line 2 is reduced by any content
existing within fields Address1AddressLine1, Address1AddressLine2
and Address1AddressLine3.
Salesperson Text 50xAN If the Salesperson is an individual, the field should be populated in
the format <Last Name>, <First Name>
RecordID Text 10xAN A value must exist within this field if no value exists within the
CoLastName and CardID fields.
CoLastName Text 30xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CardID and RecordID fields.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and RecordID fields.
Address4AddressLine2 Text 253xAN The maximum length of Address4 Line 2 is reduced by any content
existing within field Address1AddressLine1.
Address4AddressLine3 Text 251xAN The maximum length of Address4 Line 2 is reduced by any content
existing within fields Address1AddressLine1 and
Address1AddressLine2.
Address4AddressLine4 Text 249xAN The maximum length of Address4 Line 2 is reduced by any content
existing within fields Address1AddressLine1, Address1AddressLine2
and Address1AddressLine3.
DateOfBirth Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
StartDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
TerminationDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and CardID fields.
NoofChildRelief Double 2.2xN (Malaysia) Number of Child Relief for the tax calculation
CountryCode Text 2xA (Malaysia) Country code for the tax statutory forms
CoLastName Text 50xAN A value must exist within this field if no value exists within the CardID
and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the CoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is
50xAN.
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax Inclusive.
PurchaseDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
Quantity Double 8.3xN Negative values are indicated as such by way of a leading negative sign.
ShippingDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
Ordered Double 8.3xN Negative values are indicated as such by way of a leading negative sign.
Received Double 8.3xN Negative values are indicated as such by way of a leading negative sign.
Billed Double 8.3xN Negative values are indicated as such by way of a leading negative sign.
CardID Text 10xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CoLastName and RecordID fields.
RecordID Text 15xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CoLastName and CardID fields.
AdjustmentDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
Amount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
CoLastName Text 50xAN A value must exist within this field if no value exists within the
CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax Inclusive.
SaleDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
Quantity Double 8.3xN Negative values are indicated as such by way of a leading negative
sign.
SalespersonFirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
SalespersonLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
SalespersonLastName field is 50xAN.
ShippingDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field
if no value exists within the CoLastName and RecordID fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field
if no value exists within the CoLastName and CardID fields.
Buy Text 1xAN Any non-zero value indicates that the Item is Bought. The I Buy
checkbox cannot be deselected via importing.
Sell Text 1xAN Any non-zero value indicates that the Item is Sold. The I Sell
checkbox cannot be deselected via importing.
Inventory Text 1xAN Any non-zero value indicates that the Item is Inventoried. The
Inventory checkbox cannot be deselected via importing.
PrimarySupplier Text 30xAN Card names can be up to 52 digits in length. The Items import
table within MYOB only provides for card names up to 30
characters in length.
SellPriceInclusive Text 1xAN Any non-zero value indicates that the Base Selling Price is
Tax/GST Inclusive. The Prices are Tax/GST Inclusive checkbox
cannot be deselected via importing.
StartDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
FinishDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
LinkedCustomer Text 50xAN Card names can be up to 52 digits in length. The Jobs import table
only provides for card names up to 50 characters in length.
CoLastName Text 50xAN A value must exist within this field if no value exists within the
CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
PurchaseDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system.
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax
Inclusive.
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is
optional.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not
be applied.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this
field if no value exists within the CoLastName and RecordID
fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this
field if no value exists within the CoLastName and CardID
fields.
CoLastName Text 50xAN A value must exist within this field if no value exists within the CardID
or RecordID field.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the CoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is
50xAN.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CoLastName or RecordID field.
SaleDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax Inclusive.
SalespersonFirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the SalespersonLastName
field is 30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the SalespersonLastName
field is 50xAN.
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CoLastName and CardID fields.
1 = Import Duty
2 = Sales Tax
3 = Goods & Services Tax
4 = Input Taxed
6 = Luxury Car Tax
7 = Voluntary Withholding
8 = No ABN/TFN
CoLastName Text 50xAN A value must exist within this field if no value exists within the CardID and
RecordID fields.
FirstName Text 20xAN When the card is Individual, the format of the CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is Company. When
the card is Company, the format of the CoLastName field is 50xAN.
PayeeLine2 Text 253xAN The maximum length of PayeeLine2 is reduced by any content existing
within field PayeeLine1.
PayeeLine3 Text 251xAN The maximum length of PayeeLine3 is reduced by any content existing
within fields PayeeLine1 and PayeeLine2.
PayeeLine4 Text 249xAN The maximum length of PayeeLine4 is reduced by any content existing
within fields PayeeLine1, PayeeLine2 and PayeeLine3.
PaymentAccount Integer 6xN Entry in this field is mandatory. The account separator is optional.
PaymentDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
PurchaseNumber Text 8xAN Entry in this field is conditional. A value must exist within this field if no value
exists within the SuppliersNumber field.
SuppliersNumber Text 20xAN Entry in this field is conditional. A value must exist within this field if no value
exists within the PurchaseNumber field.
BillDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
AmountApplied Double 13.2xN Entry in this field is mandatory. Currency formatting must not be applied.
AlreadyPrinted Text 1xAN Any non-zero value indicates that the Pay Bill entry is Already Printed.
CardID Text 15xAN A value must exist within this field if no value exists within the CoLastName
and RecordID fields.
RecordID Text 10xAN A value must exist within this field if no value exists within the CoLastName
and CardID fields.
CoLastName Text 50xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the CoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is
50xAN.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CoLastName and RecordID fields.
Address4AddressLine2 Text 253xAN The maximum length of Address Line 2 is reduced by any content
existing within field Address1AddressLine1.
Address4AddressLine3 Text 251xAN The maximum length of Address Line 2 is reduced by any content
existing within fields Address1AddressLine1 and Address1AddressLine2.
Address4AddressLine4 Text 249xAN The maximum length of Address Line 2 is reduced by any content
existing within fields Address1AddressLine1, Address1AddressLine2 and
Address1AddressLine3.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CoLastName and CardID fields.
CoLastName Text 50xAN A value must exist within this field if no value exists within the
CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the CoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
PurchaseDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax Inclusive.
DetailDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
Amount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
PromisedDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and RecordID fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and CardID fields.
CoLastName Text 50xAN A value must exist within this field if no value exists within the CardID
and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the CoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is
50xAN.
SaleDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax Inclusive.
DetailDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
PromisedDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
SalespersonFirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the SalespersonLastName
field is 30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the SalespersonLastName
field is 50xAN.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and RecordID fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and CardID fields.
DepositAccount Integer 6xN Entry in this field is mandatory. The account separator is optional.
ReceiptDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
CoLastName Text 50xAN Entry in this field is optional. Cards are identified by the CoLastName if a
value exists in the CoLastName field but not the CardID or RecordID fields.
FirstName Text 20xAN When the card is Individual, the format of the CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is 50xAN.
Inclusive Text 1xAN Any non-zero value indicates that the Receive Money entry is Tax Inclusive.
AllocationAccount Integer 6xN Entry in this field is mandatory if the record is an Allocation Line. The
account separator is optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Do not include the account separator.
Currency formatting must not be applied.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Do not include the account separator.
Currency formatting must not be applied.
NonTaxAmount Double 13.2xN Should only be reported within Allocation lines. Currency formatting must
not be applied.
TaxAmount Double 13.2xN Should only be reported within Allocation lines. Currency formatting must
not be applied.
CardID Text 15xAN Entry in this field is optional. Cards are identified by the CardID if a value
exists in the CardID field but not the RecordID field.
RecordID Text 10xAN Entry in this field is optional. Cards are identified by the RecordID if a value
exists in the RecordID field.
CoLastName Text 50xAN A value must exist within this field if no value exists within the CardID and
RecordID fields.
FirstName Text 20xAN When the card is Individual, the format of the CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is 50xAN.
DepositAccount Integer 6xN Entry in this field is mandatory. The account separator is optional.
ReceiptDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
InvoiceNumber Text 8xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the CustomersNumber field.
CustomersNumber Text 20xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the InvoiceNumber field.
InvoiceDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
AmountApplied Double 13.2xN Entry in this field is mandatory. Currency formatting must not be applied.
CardID Text 15xAN A value must exist within this field if no value exists within the
CoLastName and RecordID fields.
RecordID Text 10xAN A value must exist within this field if no value exists within the
CoLastName and CardID fields.
CoLastName Text 50xAN A value must exist within this field if no value exists within the
RecordID and CardID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax
Inclusive.
PurchaseDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is
optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be
applied.
ShippingDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
CardID Text 15xAN Entry in this field is conditional. A value must exist within this
field if no value exists within the CoLastName and RecordID
fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this
field if no value exists within the CoLastName and CardID fields.
CoLastName Text 50xAN A value must exist within this field if no value exists within the CardID and
RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual. When
the card is Individual, the format of the CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is Company. When
the card is Company, the format of the CoLastName field is 50xAN.
AddressLine2 Text 253xAN The maximum length of Address1AddressLine2 is reduced by any content
existing within field Address1AddressLine1.
AddressLine3 Text 251xAN The maximum length of Address1AddressLine3 is reduced by any content
existing within fields Address1AddressLine1 and Address1AddressLine2.
AddressLine4 Text 249xAN The maximum length of Address1AddressLine4 is reduced by any content
existing within fields Address1AddressLine1, Address1AddressLine2 and
Address1AddressLine3.
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax Inclusive.
SaleDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be applied.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not be applied.
SalespersonFirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual. When
the card is Individual, the format of the SalespersonLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is Company. When
the card is Company, the format of the SalespersonLastName field is 50xAN.
ShippingDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if no value
exists within the CoLastName and RecordID fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if no value
exists within the CoLastName and CardID fields.
ChequeAccount Integer 6xN Entry in this field is mandatory if the record is the Total Line. The account
separator is optional.
PaymentDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system
Inclusive Text 1xAN Any non-zero value indicates that the Spend Money entry is Tax Inclusive.
CoLastName Text 50xAN A value must exist within this field if the payment is electronic and no value
exists within the CardID and RecordID fields.
FirstName Text 20xAN When the card is Individual, the format of the CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CoLastName field is 50xAN.
PayeeLine2 Text 253xAN The maximum length of PayeeLine2 is reduced by any content existing
within field PayeeLine1.
PayeeLine3 Text 251xAN The maximum length of PayeeLine3 is reduced by any content existing
within fields PayeeLine1 and PayeeLine2.
PayeeLine4 Text 249xAN The maximum length of PayeeLine4 is reduced by any content existing
within fields PayeeLine1, PayeeLine2 and PayeeLine3.
AllocationAccount Integer 6xN Entry in this field is mandatory if the record is an Allocation Line. The
account separator is optional.
ExTaxAmount Double 13.2xN Entry in this field is mandatory. Do not include the account separator.
Currency formatting must not be applied.
IncTaxAmount Double 13.2xN Entry in this field is mandatory. Do not include the account separator.
Currency formatting must not be applied.
TaxAmount Double 13.2xN Should only be reported within Allocation lines. Currency formatting must
not be applied.
ImportDutyAmount Double 13.2xN Should only be reported within Allocation lines. Currency formatting must
not be applied.
AlreadyPrinted Text 1xAN Any non-zero value indicates that the Spend Money entry is Already
Printed.
CardID Text 15xAN A value must exist within this field if the payment is electronic and no value
exists within the CoLastName and RecordID fields.
RecordID Text 10xAN A value must exist within this field if the payment is electronic and no value
exists within the CoLastName and CardID fields.
CoLastName Text 50xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is Individual.
When the card is Individual, the format of the CoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and RecordID fields.
Address4AddressLine2 Text 253xAN The maximum length of Address4 Line 2 is reduced by any content
existing within field Address1AddressLine1.
Address4AddressLine3 Text 251xAN The maximum length of Address4 Line 2 is reduced by any content
existing within fields Address1AddressLine1 and
Address1AddressLine2.
Address4AddressLine4 Text 249xAN The maximum length of Address4 Line 2 is reduced by any content
existing within fields Address1AddressLine1, Address1AddressLine2
and Address1AddressLine3.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if
no value exists within the CoLastName and CardID fields.
CoLastName Text 50xAN A value must exist within this field if no value exists within the
CardID and RecordID fields.
FirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
CoLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
CoLastName field is 50xAN.
SaleDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
Inclusive Text 1xAN Any non-zero value indicates that the Sale Invoice is Tax
Inclusive.
DetailDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
HoursUnits Double 11.2xN Negative values are indicated as such by way of a leading
negative sign.
PromisedDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
SalespersonFirstName Text 20xAN If a value exists in this field, the Designation of the Card is
Individual. When the card is Individual, the format of the
SalespersonLastName field is 30xAN.
If no value exists in this field, the Designation of the Card is
Company. When the card is Company, the format of the
SalespersonLastName field is 50xAN.
CardID Text 15xAN Entry in this field is conditional. A value must exist within this
field if no value exists within the CoLastName and RecordID
fields.
RecordID Text 10xAN Entry in this field is conditional. A value must exist within this
field if no value exists within the CoLastName and CardID fields.
(^) Fields marked are only available when the “I Include Items on Time Billing Invoice” is selected within the UserID record.
EmpFirstName Text 20xAN When the card is Individual, the format of the EmpCoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the EmpCoLastName field is
50xAN.
CustFirstName Text 20xAN When the card is Individual, the format of the CustCoLastName field is
30xAN.
If no value exists in this field, the Designation of the Card is Company.
When the card is Company, the format of the CustCoLastName field is
50xAN.
TimesheetDate Text 11xAN Date format is controlled within the Regional Settings of the operating
system.
Units Double 11.2xN Negative values are indicated as such by way of a leading negative sign.
EmpCardID Text 15xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the EmpCoLastName and EmpRecordID fields.
EmpRecordID Text 10xAN Entry in this field is conditional. A value must exist within this field if no
value exists within the EmpCoLastName and EmpCardID fields.
JournalDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
AccountNumber Integer 6xN Entry in this field is mandatory. The account separator is
optional.
DebitAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not
be applied.
CreditAmount Double 13.2xN Entry in this field is mandatory. Currency formatting must not
be applied.
JournalDate Text 11xAN Date format is controlled within the Regional Settings of the
operating system
AccountNumber Integer 5xN Entry in this field is mandatory. Do not include the account
separator.
387
SQL Tester
SQL Tester is an MYOB database browsing tool. This tool is part of the ODBC driver download
and is located in the Test Applications folder.
This application allows you to connect to an MYOB company file via the MYOB ODBC Direct
driver. You can configure your connection string in a variety of ways to allow read-only or
read/write access.
This application allows you to read and write to any table described in the MYOB ODBC Data
Dictionary. Samples have been provided.
System Requirements
The following software needs to be installed:
A compatible MYOB program, such as MYOB Accounting
MYOB ODBC Direct driver.
Dependencies
This sample application references the following libraries and controls:
msvbvm60.dll – Visual Basic for Applications
msvbvm60.dll\3 – Visual Basic runtime objects and procedures
vb6.olb – Visual Basic objects and procedures
stdole2.tlb – OLE Automation
msado27.tlb – Microsoft ActiveX Data Objects 2.7 Library
mshflxgrd.ocx – Microsoft Hierarchical FlexGrid Controls 6.0 (OLEDB)
Section 1
Section 2
Section 3
Section 4
Section 1 is used to set keyword values for a connection string to connect to an MYOB
company file. Once a connection has been established, this section is locked and cannot be
altered until you disconnect from the DSN.
Section 2 is used to type SQL read and write statements to be sent to the MYOB company file.
Section 3 is used to display the results of a read statement in column format.
Section 4 is used to display return codes, error and warning messages and, when an SQL read
statement is executed, the results of the read statement in tab-delimited format.
You can copy information from the section 4 (such as error codes and the results of read
statements) if you need to save this information, for example, to save a particular error code
for investigation.
The first section of the SQL Tester window provides a number of fields that are used to set
connection string keyword values. For more information about connection strings and
keyword values, refer to Chapter 4, ’How to write,’ starting on page 313.
In this example, the keyword values displayed provide enough information to establish a
connection to the sample company file using the DSN created in the procedure “SQL
Tester” on page 388.
2 Click Connect. The bottom section of the SQL Tester window displays a message
informing you if the connection to the MYOB company file DSN the connection was either
successful or unsuccessful.
Once you have established a connection to an MYOB company file using appropriate
connection string keyword values, you can use SQL Tester to check the accuracy of your SQL
read and write statements.
2 Click Execute Read. The results of the read statement are displayed in the middle section
of the SQL Tester window in column format and also in the bottom section as tab
delimited information.
You can copy and paste information from the bottom section of the window back into your
initial read statement. This enables you to easily refine your SQL query.
For example, you might want to select only the card identification, name and last name
information about customers.
3 Highlight CARDIDENTIFICATION NAME LASTNAME in the tab delimited bottom
section, then copy and paste this back into the top read statement, next to the insert
command. Include commas between the column names.
SELECT CARDIDENTIFICATION, NAME, LASTNAME
FROM Customers
BatchTester takes connection strings and SQL insert statements from supplied Excel
spreadsheets, and concatenates them in a script (.scr) file. Once a script file has been built,
BatchTester uses the script file to establish a connection to an MYOB company file and execute
the SQL statements.
When you execute a script file, a log file appears, showing the success or otherwise of the
import operation.
System Requirements
The following software must be installed:
A compatible MYOB program, such as MYOB Accounting
MYOB ODBC Direct driver
.Net Framework (If you need to install the .Net Framework, visit the MSDN website.)
Using BatchTester
The following procedures show how to use BatchTester to create a script file with a connection
string, add SQL insert statements to the script file and execute the script file.
BATCHTESTER 393
2 Go to the Select Tables menu and choose Connect Table. The Open File for CONNECT
Table Table window appears.
3 Select MYOBODBCConnect.xls and click Open. The MYOB ODBC BatchTester window
reappears.
Each line represents a different connection string and each column represents a
connection string keyword.
5 Select the second line, and expand the DATABASE column. This column holds the
DATABASE connection string keyword value which provides the location of the company
file to which you want to connect.
6 Change the text in this column to reflect the path and name of the sample company file.
8 In the File Name field, type test and click Open. The row you selected is converted to a
connection string and added to the test.scr script file.
See the following procedure, ‘To test the connection string’, for information on testing
your connection string.
2 Go to the File menu and choose Run Script or press CTRL + R. The script file is executed and
the Test.log file appears.
The above example shows that the connection to the company file was successful.
BATCHTESTER 395
To add SQL statements to the script file
The following procedure demonstrates how to add import SQL statements from an Excel
spreadsheet to the script file you created in the procedure, ‘To create a script file containing a
connection string’ on page 393.
1 Go to the Select Tables menu and choose Insert Tables. A list of all the MYOB ODBC
import tables appears.
Choose a table to insert information into. For this example, choose Cards and then
Suppliers. The Open File dialog appears.
2 Select MYOBODBCInsert.xls and click Open. The MYOB ODBC BatchTester window
reappears.
6 Select Test.scr and click Open. The SQL insert statement is added to the script file.
7 Press CTRL + R to run the script file. The script file is executed, and the test log file appears.
In the above example, the connection to the company file and the import operation were
successful.
BATCHTESTER 397
398 CHAPTER 6 ODBC TEST APPLICATIONS
7 Testing error codes
399
Example test code
The following pseudo-code examples provide basic information for looking up return codes,
determining the type of error and finding the description for the error using the appropriate
error or warning table. Working code examples can be found with the installation of the MYOB
ODBC Direct driver.
Note: you must declare the ADOConnection object with events - Private WithEvents
NOTE :
ADOConnection As ADODB.Connection.
1 Iterate through the ADO.Errors object until the ADO.Errors.Description = “[MYOB ODBC]”
and retrieve the NativeError from the same object.
2 Determine the value of the retrieved NativeError:
If the ADO.Errors.NativeError is between 10000 and less than 20000 then a
Transaction Error has occurred. Subtract 10000 from the NativeError and then set up the
following query:
sQuery = "Select Description from ImportErrors where ImportErrorID = " &
Trim(Str(nNativeError))
If the ADO.Errors.NativeError is between 1 and less than 10000 then a Transaction
Warning has occurred. Set up the following query:
sQuery = "Select Description from ImportWarnings where ImportWarningID = " &
Trim(Str(nNativeError))
If the ADO.Errors.NativeError is greater than 20000 then a Miscellaneous Error has
occurred. Set up the following query:
sQuery = "Select Description from InternalODBCErrors where NativeErrorNumber = "
& Trim(Str(nNativeError))
If the ADO.Errors.NativeError does not fall within the ranges listed above, then return
the default Visual Basic Error Description and exit from the function:
GetADO_Error = Err.Description
Exit Function
3 Execute the query set up in Step 2:
Set ADORecordset = ADOConnection.Execute(sQuery)
4 Retrieve the Error Description:
GetADO_Error = ADORecordset.Fields("Description").Value
ImportWarnings table
The ImportWarnings table provides a list of import warnings reported within the error log file.
Data reported within the ImportWarnings table is not stored within the company file. Instead,
data is obtained from the code when generating the error log.
The following table provides the description of each import warning return code.
ImportWarningID Description
7 Opening balance may not be set for Current Earnings account; balance ignored.
8 Opening balance may only be set for detail accounts; balance ignored.
9 P&L Opening balances may only be set for the current financial year; balance ignored.
10 Cannot specify last cheque number for account without cheque privileges; number
ignored.
403
ImportWarningID Description
12 Cheques/deposits are on file for this account. Cheque privileges may not be removed.
13 This account is being used in Spend Money. Cheque privileges may not be removed.
14 This account is being used in Receive Money. Cheque privileges may not be removed.
15 This account is being used in Print Cheques. Cheque privileges may not be removed.
16 This account is being used in Supplier Payments. Cheque privileges may not be removed.
17 This account is the default bank account for AR. Account Type Bank may not be removed.
18 This account is the default bank account for AP. Account Type Bank may not be removed.
41 Company Information must be recorded before balances can be set; balance ignored.
51 Items per buying unit must be a number from 1 to 9999; number ignored.
52 Items per selling unit must be a number from 1 to 9999; number ignored.
74 # Items per buying unit may only specified for items that are bought and inventoried.
75 # Items per selling unit may only specified for items that are sold and inventoried.
121 This account is being used in Write Paycheques. Cheque privileges may not be removed.
125 This account is being used in Customer Payments. Account type Bank may not be removed.
127 This account is being used in Settle Credits. Account type Bank may not be removed.
129 This account is being used in Settle Debits. Cheque privileges may not be removed.
137 N/A
140 N/A
141 N/A
142 N/A
151 Amount and quantity must have same sign; quantity changed.
152 Tax code missing; default Tax code does not allow Non-GST amounts; amount ignored.
153 Tax code missing; default tax code does not allow GST amounts; amount ignored.
154 Tax code missing; default tax code does not allow Import Duty amounts; amount ignored.
155 Freight tax code missing; default tax code does not allow Non-GST amounts; amount
ignored.
156 Freight tax code missing; default tax code does not allow GST amounts; amount ignored.
157 Freight tax code missing; default tax code does not allow Import Duty amounts; amount
ignored.
158 Tax code does not allow Non-GST amounts; amount ignored.
159 Tax code does not allow GST amounts; amount ignored.
160 Tax code does not allow Import Duty amounts; amount ignored.
161 Freight tax code does not allow Non-GST amounts; amount ignored.
162 Freight tax code does not allow GST amounts; amount ignored.
163 Freight tax code does not allow Import Duty amounts; amount ignored.
170 An account being used in Customer Reimbursable Expenses may not be a header.
173 Account name included header account information; header information ignored.
179 N/A
180 N/A.
181 N/A
182 N/A
183 N/A
184 N/A
185 N/A
198 Use Rate not specified; E (Use Employee Billing Rate) substituted.
203 Account number not found in list of postable accounts; activity may not be chargeable.
221 Sales Tax Calculation Method must be numeric; 0 (Actual Selling Price) substituted.
222 Tax Calculation Method must between 0 and 9; 0 (Actual Selling Price) substituted.
224 Item is sold; Tax Calculation Method not found; 0 (Actual Selling Price) substituted.
232 Quantity Break 2 must be greater than Quantity Break 1 and less than Quantity Break 3;
Quantity Break ignored.
233 Quantity Break 3 must be greater than Quantity Break 2 and less than Quantity Break 4;
Quantity Break ignored.
234 Quantity Break 4 must be greater than Quantity Break 3 and less than Quantity Break 5;
Quantity Break ignored.
235 Quantity Break 5 must be greater than Quantity Break 4; Quantity Break ignored.
236 Quantity Breaks may only be specified for items that are sold; Quantity Break ignored.
237 N/A
239 Selling Price may only be specified for items that are sold; Selling Price ignored.
240 Price Level A, Quantity Break 1 not equal to Base Selling Price; Bases Selling Price
substituted.
241 N/A
245 Price Level must be between 0 and 6; 0 (base selling price) substituted.
251 Foreign currency transaction must specify an exchange rate, current exchange rate
substituted.
273 Multiple exchange rates supplied, used first exchange rate supplied.
285 Foreign currency account may not be a header account; imported as a detail account.
291 "Use "Customer's/Supplier's Tax Code can not be changed through importing.
294 Tax Code When Sold tax type invalid; activity may not be chargeable.
301 Inc-Tax Amount does not equal sum of Ex-Tax Amount plus Tax Amounts; Ex-Tax Amount
recalculated.
303 Ex-Tax and Inc-Tax freight amounts contain an invalid amount; amounts ignored.
304 Ex-Tax freight amount contains an invalid or blank amount; amount recalculated.
305 Inc-Tax freight amount contains an invalid or blank amount; amount recalculated.
306 Inc-Tax freight amount does not equal sum of Ex-Tax freight amount plus freight tax
amounts; Ex-Tax freight amount recalculated.
323 Card default shipping method contains invalid characters; shipping method ignored.
330 Payment method field contains invalid characters; Payment method ignored.
343 Card picture path contains invalid characters; picture path ignored.
345 Card default form name contains invalid characters; default form name ignored.
349 Tax codes may only be set for detail accounts; ignored.
352 Tax code when sold not found in tax code list; activity may not be chargeable.
353 Tax code when sold not found in tax code list; tax code when sold ignored.
354 Invalid tax code when sold; activity may not be chargeable.
362 The Tax Code Description contains invalid characters; default substituted.
363 The Consolidated Tax Code Description contains invalid characters; default substituted.
374 You cannot change the Tax Type of a Tax code which has been used on transactions;
ignored.
375 Import Duty and Input Taxed are invalid tax types for Tax Code When Sold; ignored.
376 Import Duty and Input Taxed are invalid tax types for Customer Cards; ignored.
377 Import Duty and Input Taxed are invalid tax types for new Customer Cards; ignored.
395 The linked account for Tax Collected Field is missing; ignored.
397 The linked account for Tax Paid Field is missing; ignored.
398 The linked account for Tax Collected Field is not found in list of postable accounts; ignored.
399 The linked Account for Accrued Duty is not found in list of postable accounts; ignored.
400 The linked Account for Tax Paid is not found in list of postable accounts; ignored.
401 Invalid character for inactive checkbox import; status not changed to inactive.
439 The Amount Applied exceeds the Balance Due; credit memo created.
440 The Amount Applied exceeds the Balance Due; debit memo created.
443 N/A
454 Item may not be inventoried. You have sales or purchases on file for this item.
459 More than one category specified; used first one specified.
464 Job Number may not contain more than 5 characters; truncated.
474 Level cannot be higher than the preceding job; default level substituted.
476 Job cannot be 2 or 3 levels higher than its header; default level substituted.
478 A Detail jobs level cannot be lower than the following job; default level substituted
479 A Detail jobs level cannot be lower than the following job; ignored
483 Level 4 Jobs may not be Header Jobs; D (Detail Job) substituted.
486 Job cannot be changed to Detail Job whilst the job is a Header to other jobs; ignored.
487 A Job with balance information cannot be changed to a Header Job; ignored.
488 A Job with transaction allocations cannot be changed to a Header Job; ignored.
489 A Job with activity slip allocations cannot be changed to a header Job; ignored.
509 A Header jobs level cannot be 2 or 3 levels lower than the following job; default level
substituted
510 A Header jobs level cannot be 2 or 3 levels lower than the following job; ignored.
512 Bank Account Name cannot be more than 32 characters; name truncated.
531 Account Type cannot be specified for header accounts; default substituted.
534 Invalid Classification for Statement of Cash Flow; O (Operating) Classification substituted.
535 Invalid Classification for Statement of Cash Flow; E (Exclude from Statement of Cash Flow)
Classification substituted.
536 Classification for Statement of Cash Flow cannot be specified for header accounts; ignored
552 Payment Memo cannot be more than 256 characters; memo truncated.
554 Receipt Memo cannot be more than 256 characters; memo truncated.
561 This account is the default Bank account for Undeposited Funds. Account Type Bank may
not be removed.
563 Classification for Statement of Cash Flow cannot be specified for Bank, Income Expense and
Cost of Sales Account Types, classification ignored.
564 Invalid Clasification for Statement of Cash Flow. O (Operating) Classification substituted.
568 An account that is the currency exchange account of another account may not change its
currency.
569 Sub-Job Number may not contain more than 15 characters; truncated.
572 Salesperson Card ID does not match with Employee card; salesperson ignored.
596 Invalid character for Use Standard Pay Values checkbox import; checkbox value ignored.
598 Time Billing and Payroll timesheet preference not selected; payroll category ignored.
599 The Payroll module is required for payroll category import; payroll category ignored.
602 Time Billing and Payroll timesheet preference not selected; customer ignored.
603 N/A
607 Location ID may not be more than 10 characters; default location substituted.
608 Location ID not found in the locations list; default location substituted.
617 Default location substituted for blank location; results in negative on-hand quantity in
default location.
618 N/A
619 N/A
620 N/A
621 N/A
622 N/A
623 N/A
624 N/A
625 N/A
626 N/A
627 N/A
628 N/A
629 N/A
630 N/A
631 N/A
632 N/A
633 N/A
634 N/A
635 N/A
636 N/A
637 N/A
638 N/A
639 N/A
640 N/A
641 N/A
642 N/A
643 N/A
644 N/A
645 N/A
646 N/A
647 N/A
648 N/A
649 N/A
650 N/A
651 N/A
652 N/A
653 N/A
654 N/A
655 N/A
656 N/A
657 N/A
658 N/A
659 N/A
660 N/A
661 N/A
662 N/A
663 N/A
664 N/A
665 N/A
666 N/A
667 N/A
668 N/A
669 N/A
670 N/A
671 N/A
672 N/A
673 N/A
674 N/A
675 N/A
676 N/A
677 N/A
678 N/A
679 N/A
680 N/A
681 N/A
682 N/A
683 N/A
684 N/A
685 N/A
686 N/A
687 N/A
688 N/A
689 N/A
690 N/A
691 N/A
692 N/A
693 N/A
694 N/A
695 N/A
696 N/A
697 N/A
698 N/A
699 N/A
700 N/A
701 N/A
702 N/A
703 N/A
704 N/A
705 N/A
706 N/A
707 N/A
708 General Payroll Information has not been completed within the company file; Total Rebates
ignored.
708 N/A
709 N/A
710 N/A
711 N/A
712 N/A
713 N/A
714 N/A
715 N/A
716 N/A
717 N/A
718 N/A
719 N/A
720 N/A
721 N/A
722 N/A
723 N/A
724 N/A
725 N/A
726 N/A
727 N/A
728 N/A
729 N/A
730 N/A
731 N/A
732 N/A
733 N/A
734 N/A
735 N/A
736 N/A
737 N/A
738 N/A
739 N/A
740 N/A
741 N/A
742 N/A
743 N/A
744 N/A
745 N/A
746 N/A
747 N/A
748 N/A
749 N/A
750 N/A
751 N/A
752 N/A
753 N/A
754 N/A
755 N/A
756 N/A
757 N/A
758 N/A
759 N/A
760 N/A
761 N/A
762 N/A
763 N/A
764 N/A
765 N/A
766 N/A
767 N/A
768 N/A
769 N/A
770 N/A
771 N/A
772 N/A
773 N/A
774 N/A
775 N/A
776 N/A
777 N/A
778 N/A
779 N/A
780 N/A
781 N/A
782 N/A
783 N/A
784 N/A
785 N/A
786 N/A
787 N/A
788 N/A
789 N/A
790 N/A
791 N/A
792 N/A
793 N/A
794 N/A
795 N/A
796 N/A
797 N/A
798 N/A
799 N/A
800 N/A
801 N/A
802 N/A
803 N/A
804 N/A
805 N/A
806 N/A
807 N/A
808 N/A
809 N/A
810 N/A
811 N/A
812 N/A
813 N/A
814 N/A
815 N/A
816 N/A
817 N/A
818 N/A
819 N/A
820 N/A
821 N/A
822 N/A
823 N/A
824 N/A
825 N/A
830 Quantity and Unit Cost invalid or blank; 0 applied to both fields.
834 Unit Cost and Amount invalid or blank; 0 applied to both fields.
841 N/A
843 Insufficient quantity at Location specified will result in a negative item on-hand quantity.
844 Custom List Name cannot be more than 30 characters; name truncated.
845 Update Custom List Name cannot be more than 30 characters; name truncated.
848 Elapsed Time must be less than 100 hours; Elapsed Time ignored.
851 N/A
852 N/A
853 N/A
854 N/A
855 N/A
856 N/A
857 N/A
858 N/A
859 N/A
860 N/A
861 N/A
862 N/A
863 N/A
864 N/A
865 N/A
866 N/A
867 N/A
868 N/A
869 N/A
870 N/A
871 N/A
872 N/A
873 N/A
874 N/A
961 Invalid Payment Method. Ignored; Default Cheque payment method substituted.
962 Invalid Payment Method. Ignored; Payment Method Bank Instruction substituted.
964 Official Last Day cannot be earlier than Start Date, Official Last Day ignored.
965 Invalid Hours in a Full Time Work Week.Ignored; Default hours in a Full Time Work Week
substituted.
966 You may not have more than 168 hours in weekly pay period. Default hours in a Full Time
Work Week substituted.
967 Invalid Hours in a Full Time Work Day. Ignored; DefaultTime Work Day Hours substituted.
968 You may not have more than 24 hours in daily. Default Full Time Work Day Hours
substituted.
969 Invalid Pay Slip Delivery ; default Pay Slip Delivery substituted.
970 Pay Slip Delivery To be Printed selected; Pay Slip Email ignored.
971 Pay Slip Email missing; Pay Slip Delivery set to To be Printed.
972 Pay Slip Email cannot be more than 76 characters, Pay Slip Email truncated.
985 Tax File Number cannot be more than 20 characters, Tax File Number truncated.
986 (Malaysia) LHDNM Branch cannot be more than 30 characters, LHDNM Branch truncated.
988 (Malaysia) Tax Category is not Category 2 or Category 3. No of Child Relief ignored.
990 (Malaysia) No of Child Relief contained invalid interval. No of Child Relief is round to the
nearest 0.5 decimal.
997 (Singapore) CPF Number cannot be more than 20 characters, CPF Number truncated.
The ImportErrors table provides a list of import errors reported within the error log file. Data
reported within the ImportErrors table is not stored within the company file. Instead, data is
obtained from the code when generating the error log.
The following table provides the description of each import error return code.
ImportErrorID Description
10 Invalid date.
11 Transactions dated before the beginning of your financial year may not be imported.
13 Transactions dated before your "Posting Complete" date may not be imported.
19 Unbalanced transaction.
24 Duplicate card.
25 Invalid amount.
30 Invalid quantity.
53 Invalid Rate.
54 Invalid Units.
74 The invoice's currency code is different than the customer's currency code.
77 Account type of the exchange account cannot be different than the account type of the foreign
account.
80 Currency code of transaction cannot be different from the currency code of the allocation
account.
82 The PO's currency code is different than the supplier's currency code.
97 Linked Cheque Account for customer receipts in the foreign currency is missing.
99 Linked Liability Account for customer deposits in the foreign currency is missing.
101 Linked Cheque Account for making supplier payments in the foreign currency is missing.
103 Linked Asset Account for deposits paid in the foreign currency is missing.
110 The rate for the tax code is required for this import.
112 The Consolidated Tax Code Field is required for this import.
116 A particular tax code may not be included twice in one consolidated code.
117 A consolidated tax code may not be an element of another consolidated code.
127 Transactions dated before your "Lock Period" date may not be imported.
136 The card attached to the invoice is not the same as the card attached to the payment.
137 The card attached to the purchase is not the same as the card attached to the payment.
138 A value must exist within either the Invoice # or Customer PO # fields.
139 A value must exist within either the Purchase # or Supplier's # fields.
144 The Currency of the Deposit Account # must be local or same as Customer's.
145 The Currency of the Payment Account # must be local or same as Supplier's.
148 The same invoice cannot receive multiple applications within one payment.
149 The same bill cannot receive multiple applications within one bill payment.
157 The Receive Payments currency code is different than the Customer's currency code.
158 The Pay Bills currency code is different than the Supplier's currency code.
160 Linked Asset Account for customer receivables in the foreign currency is missing.
162 Linked Liability Account for supplier payables in the foreign currency is missing.
166 Linked account for discounts given in the foreign currency is missing.
168 Linked account for discounts taken in the foreign currency is missing.
172 A valid entry must exist within either the Co./Last Name or CardID fields.
174 Card ID does not match with a Customer card. Record not updated.
175 Card ID does not match with a Supplier card. Record not updated.
176 Card ID does not match with an Employee card. Record not updated.
177 Card ID does not match with a Personal card. Record not updated.
185 Account Type is too long or contains invalid characters. Duplicate account number
191 Card ID does not match with a Customer card. Sale invoice not imported
199 The Ex-Tax Amount must equal the Inc-tax Amount within the first line of a Spend Money
transaction
200 A Tax Code cannot be applied to the first line of a Spend Money Transaction
201 The Non TAX Amount must be $0.00 within the first line of a Spend Money Transaction
202 The Tax Amount must be $0.00 within the first line of a Spend Money Transaction
203 The Import Duty Amount must be $0.00 within the first line of a Spend Money Transaction
204 The Ex-Tax Amount must equal the Inc-tax Amount within the first line of a Receive Money
transaction
205 A Tax Code cannot be applied to the first line of a Receive Money Transaction
206 The Non Tax Amount must be $0.00 within the first line of a Receive Money Transaction
207 The Tax Amount must be $0.00 within the first line of a Receive Money Transaction
232 No location specified; default location cannot be substituted due to insufficient quantity.
254 Co/Last Name blank or invalid. Spend money transaction not imported.
259 Emp. Co/Last Name blank or invalid. Activity slip not imported.
265 Record ID does not match with a Customer card. Record not updated.
266 Record ID does not match with a Supplier card. Record not updated.
267 Record ID does not match with an Employee card. Record not updated.
268 Record ID does not match with a Personal card. Record not updated.
274 The combination of Quantity, Unit Cost and Amounts values is invalid.
275 You may not transfer more items than you have on hand.
276 If an item has a positive on-hand quantity, its value must be positive or zero.
277 If you have no items on hand, the value of your stock must be zero.
289 Duplicate Custom List record. Update Custom List Name may not be blank.
290 Duplicate Custom List record. Update Custom List Name contains invalid characters.
291 At least one of the fields Co./Last Name, Card ID or Card Record ID must contain a value.
Contact log not imported.
294 Contact Log Record ID may not be blank. Contact log not imported.
298 Emp. Co./Last Name may not be blank. Timesheet not imported.
The InternalODBCErrors table provides a list of error messages reported when a miscellaneous
error is encountered during the import write process. Data reported within the
InternalODBCErrors table is not stored within the company file. Instead, data is obtained from
code used when generating the applicable error message.
The following table provides the description of each internal ODBC error return code.
NativeErrorNumber Description
20020 A transaction has been committed but no query has been processed
20071 Unable to connect for writing - No MYOB Application has been specified
20072 This company file is unable to be accessed. It may be in use by another application in
single-user mode or it has the read only attribute set
20073 MYOB ODBC does not support this company file version
20074 Information within the DSN is invalid. Unable to access the company file. Create a new
DSN to gain access to the company file
20078 The company file selected is not supported by this version of ODBC
20080 The library files \"ctmyob32.dll\" and \"MYOBSp32.dll\" are missing for this version.
Please make sure that you have the most up-to-date version of the ODBC driver installed.
The latest installer can be found on the MYOB installation CD.
20081 MYOBSp32.dll could not be initialised. Please try connecting again or restart your
machine
20082 The company file could not be opened. Make sure no other applications are using the
company file then try connecting again
20083 The ODBC driver cannot register a session with the company file
20084 An unknown error has occurred with MYOBSp32.dll. Please try connecting again or
restart your machine
20086 This company file has not been registered for ODBC access
20088 Internal files could not be opened. The company file and the support libraries are not
compatible
20090 Unable to launch MYOB - Database specified in the connection string is already opened
exclusively by another application.
20098 Your company file is in read-only mode. Please confirm your company file to gain write
access
20100 User Name restrictions prevent access to data within table <Table Name>.
20101 User Name restrictions prevent the writing of data to the MYOB company file.