|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.iif.IIFRecord | +--planetj.iif.IIFTransaction
This is the Main Transaction that will be used to generate an IIF file. This holds a list of IIFDistribution Objects.
An IIF file has a header line that explains to QuickBooks what information it is going to be seeing next. All header lines begin with an exclamation point. This file contains the header lines needed to import to the chart of accounts, vendor list, and a Bill Payment Credit Card transaction. Some columns may not have anything in them and that is fine, however, the headers and columns need to be there for QuickBooks to be able to import it correctly. Just leave them blank if you do not have anything that goes in that field.
Creation date: (2/13/2002 1:44:05 AM)
Field Summary | |
static String |
ADDRESS1
|
static String |
ADDRESS2
|
static String |
CITY_STATE_ZIP
|
static String |
TO_PRINT
|
static String |
TRANSACTION_END
|
static String |
TRANSACTION_ID
|
static String |
TRANSACTION_START
|
static String |
TRANSACTION_TYPE_CHECK
|
Fields inherited from class planetj.iif.IIFRecord |
TYPE_ACCOUNT, TYPE_BUD, TYPE_CLASS, TYPE_CUSTOMER, TYPE_CUSTOMER_TYPE, TYPE_DISTRIBUTION, TYPE_EMPLOYEE, TYPE_END_TRANSACTION, TYPE_ITEM_DETAILS, TYPE_MEMO_DETAILS, TYPE_OTHER_NAMES, TYPE_PAYMENT_METHOD, TYPE_SHIPPING_METHOD, TYPE_TERMS, TYPE_TIMER_ACTIVITY, TYPE_TIMER_DATA, TYPE_TO_DO, TYPE_TRANSACTION, TYPE_VENDER, TYPE_VENDER_TYPE |
Fields inherited from interface planetj.iif.IIIF |
ACCOUNT, AMOUNT, CLASS, DATE, MEMO, NAME, TRANSACTION_TYPE |
Constructor Summary | |
IIFTransaction(String pTransactionType,
String pAccount,
double pAmount)
Constructor for IIFTransaction Creation date: (2/13/2002 2:39:41 AM) |
|
IIFTransaction(String pTransactionType,
String pAccount,
double pAmount,
int pTransactionId)
Constructor for IIFTransaction Creation date: (2/19/2002 1:01:22 PM) |
Method Summary | |
void |
addDistribution(IIFDistribution pDistribution)
Adds a Distribution to the List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM) |
String |
getAccount()
Returns the account from which the amount of the transaction was taken from. |
String |
getAddress1()
Address1 is usually street address Creation date: (2/13/2002 2:37:51 AM) |
String |
getAddress2()
Address1 is usually apt# Creation date: (2/13/2002 2:37:51 AM) |
double |
getAmount()
Returns the amount of the transaction |
String |
getCategory()
Returns the category/class from which the amount of the transaction was taken from. |
String |
getCityStateZip()
City, State Zip San Diego, CA 92029 Creation date: (2/13/2002 2:37:51 AM) |
Date |
getDate()
Returns the date of the transaction. |
List |
getDistributions()
List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM) |
String |
getMemo()
Returns the transaction's memo, or null if none was set. |
String |
getName()
Returns who's involved in the transaction, such as the name of a store where expenses took place or customer, vendor, payee, or employee |
static StringBuffer |
getTransactionHeader()
Returns the Transaction Header info. |
int |
getTransactionId()
Returns a unique id for this transaction. |
String |
getTransactionType()
Must be a valid Transaction Type according to iff format Creation date: (2/13/2002 2:37:51 AM) |
boolean |
isToPrint()
Is this check going to be printed Creation date: (2/13/2002 2:37:51 AM) |
void |
setAddress1(String newAddress1)
Address1 is usually street address Creation date: (2/13/2002 2:37:51 AM) |
void |
setAddress2(String newAddress2)
Address1 is usually apt# Creation date: (2/13/2002 2:37:51 AM) |
void |
setCategory(String pCategory)
Sets the category/class from which the amount of the transaction was taken from. |
void |
setCityStateZip(String newCityStateZip)
City, State Zip San Diego, CA 92029 Creation date: (2/13/2002 2:37:51 AM) |
void |
setDate(Date date)
Sets the date of the transaction. |
void |
setDistributions(List newDistributions)
List of distributions for this Transaction Creation date: (2/13/2002 4:29:02 PM) |
void |
setMemo(String memo)
Give the transaction a memo. |
void |
setName(String pName)
Sets who's involved in the transaction, such as the name of a store where expenses took place or the payee, vender, employee, or customer |
void |
setToPrint(boolean newToPrint)
Is this check going to be printed Creation date: (2/13/2002 2:37:51 AM) |
String |
toString()
Returns the complete IIF record corresponding to the Transaction. |
StringBuffer |
toStringBuffer()
Returns the complete IIF record corresponding to the Transaction. |
Methods inherited from class planetj.iif.IIFRecord |
encodeDate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final String TO_PRINT
public static final String ADDRESS1
public static final String ADDRESS2
public static final String CITY_STATE_ZIP
public static final String TRANSACTION_START
public static final String TRANSACTION_END
public static final String TRANSACTION_ID
public static final String TRANSACTION_TYPE_CHECK
Constructor Detail |
public IIFTransaction(String pTransactionType, String pAccount, double pAmount)
public IIFTransaction(String pTransactionType, String pAccount, double pAmount, int pTransactionId)
Method Detail |
public void addDistribution(IIFDistribution pDistribution)
public String getAccount()
public String getAddress1()
public String getAddress2()
public double getAmount()
public String getCategory()
public String getCityStateZip()
public Date getDate()
public List getDistributions()
public String getMemo()
null
if none was set.
public String getName()
public static StringBuffer getTransactionHeader()
public int getTransactionId()
public String getTransactionType()
public boolean isToPrint()
public void setAddress1(String newAddress1)
newAddress1
- java.lang.Stringpublic void setAddress2(String newAddress2)
newAddress2
- java.lang.Stringpublic void setCategory(String pCategory)
public void setCityStateZip(String newCityStateZip)
newCityStateZip
- java.lang.Stringpublic void setDate(Date date)
public void setDistributions(List newDistributions)
newDistributions
- java.util.Listpublic void setMemo(String memo)
public void setName(String pName)
public void setToPrint(boolean newToPrint)
newToPrint
- booleanpublic String toString()
toString
in class Object
public StringBuffer toStringBuffer()
This method saves a String Object creation over toString(). Please use this method if possible Creation date: (2/13/2002 3:12:53 PM)
toStringBuffer
in class IIFRecord
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |