planetj.iif
Class IIFDistribution

java.lang.Object
  |
  +--planetj.iif.IIFRecord
        |
        +--planetj.iif.IIFDistribution
All Implemented Interfaces:
IIIF

public class IIFDistribution
extends IIFRecord

This is an IIF Distribution Object responsible for the income or expense a transaction. A Transaction may have many Distributions. The SPL lines are the distribution lines

TRNS CHECK 7/22/1998 Checking Tom Ferguson -36.15 SPL CHECK 7/22/1998 Professional Fees:Legal Fees Favor, Lynn:Sun Room 15.00 SPL CHECK 7/22/1998 Professional Fees:Documents Favor, Lynn:Sun Room 15.00 SPL CHECK 7/22/1998 Tax:Sales Tax Favor, Lynn:Sun Room 6.15 ENDTRN

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 DISTRIBUTION_ID
           
static String DISTRIBUTION_START
           
 
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
IIFDistribution(String pTransactionType, String pAccount, float pAmount)
          Constructor for IIFDistribution Creation date: (2/13/2002 2:39:41 AM)
IIFDistribution(String pTransactionType, String pAccount, float pAmount, int pDistributionId)
          Constructor for IIFDistribution Creation date: (2/13/2002 2:39:41 AM)
 
Method Summary
 String getAccount()
          Returns the account from which the amount of the distribution was taken from.
 float getAmount()
          Returns the amount of the distribution
 String getCategory()
          Returns the category/class from which the amount of the distribution was taken from.
 Date getDate()
          Returns the date of the distribution.
static StringBuffer getDistributionHeader()
          Returns the Distribution Header info.
 int getDistributionId()
          returns int pDistributionId, -1 if you don't have a distribution ID, else its the number that uniquely identifies the distribution line
 String getMemo()
          Returns the distribution's memo, or null if none was set.
 String getName()
          Returns who's involved in the distribution, such as the name of a store where expenses took place or customer, vendor, payee, or employee
 String getTransactionType()
          Must be a valid Distribution Transaction Type according to iff format Creation date: (2/13/2002 2:37:51 AM)
 void setCategory(String pCategory)
          Sets the category/class from which the amount of the distribution was taken from.
 void setDate(Date date)
          Sets the date of the distribution.
 void setMemo(String memo)
          Give the distribution a memo.
 void setName(String pName)
          Sets who's involved in the distribution, such as the name of a store where expenses took place or the payee, vender, employee, or customer
 String toString()
          Returns the complete IIF record corresponding to the Distribution.
 StringBuffer toStringBuffer()
          Returns the complete IIF record corresponding to the Distribution.
 
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

DISTRIBUTION_ID

public static final String DISTRIBUTION_ID
See Also:
Constant Field Values

DISTRIBUTION_START

public static final String DISTRIBUTION_START
See Also:
Constant Field Values
Constructor Detail

IIFDistribution

public IIFDistribution(String pTransactionType,
                       String pAccount,
                       float pAmount)
Constructor for IIFDistribution Creation date: (2/13/2002 2:39:41 AM)


IIFDistribution

public IIFDistribution(String pTransactionType,
                       String pAccount,
                       float pAmount,
                       int pDistributionId)
Constructor for IIFDistribution Creation date: (2/13/2002 2:39:41 AM)

Method Detail

getAccount

public String getAccount()
Returns the account from which the amount of the distribution was taken from.


getAmount

public float getAmount()
Returns the amount of the distribution


getCategory

public String getCategory()
Returns the category/class from which the amount of the distribution was taken from.


getDate

public Date getDate()
Returns the date of the distribution.


getDistributionHeader

public static StringBuffer getDistributionHeader()
Returns the Distribution Header info. This will be the second line in the .iif file Creation date: (2/13/2002 5:07:16 PM)


getDistributionId

public int getDistributionId()
returns int pDistributionId, -1 if you don't have a distribution ID, else its the number that uniquely identifies the distribution line


getMemo

public String getMemo()
Returns the distribution's memo, or null if none was set.


getName

public String getName()
Returns who's involved in the distribution, such as the name of a store where expenses took place or customer, vendor, payee, or employee


getTransactionType

public String getTransactionType()
Must be a valid Distribution Transaction Type according to iff format Creation date: (2/13/2002 2:37:51 AM)

Returns:
java.lang.String

setCategory

public void setCategory(String pCategory)
Sets the category/class from which the amount of the distribution was taken from.


setDate

public void setDate(Date date)
Sets the date of the distribution.


setMemo

public void setMemo(String memo)
Give the distribution a memo.


setName

public void setName(String pName)
Sets who's involved in the distribution, such as the name of a store where expenses took place or the payee, vender, employee, or customer


toString

public String toString()
Returns the complete IIF record corresponding to the Distribution. Values that were not explicitely set are not included in the result. Please use toStringBuffer() if possible

Creation date: (2/13/2002 3:12:25 PM)

Overrides:
toString in class Object

toStringBuffer

public StringBuffer toStringBuffer()
Returns the complete IIF record corresponding to the Distribution. Values that were not explicitely set are not included in the result.

This method saves a String Object creation over toString(). Please use this method if possible Creation date: (2/13/2002 3:12:53 PM)

Specified by:
toStringBuffer in class IIFRecord
Returns:
java.lang.StringBuffer