~siretart/gnucash/ubuntu-fullsource

« back to all changes in this revision

Viewing changes to src/import-export/qif-import/file-format.txt

  • Committer: Reinhard Tartler
  • Date: 2008-08-03 07:27:37 UTC
  • mto: (2.1.1 debian)
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: siretart@tauware.de-20080803072737-tnidfmnpamgavfk5
import gnucash_2.2.6.orig.tar.gz

The original tarball had the md5sum: 7ac08c5e2076c9b4d44c785d21bc1a2f

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
General Notes:
225
225
 
226
226
Dates: 
227
 
-----
 
227
------
228
228
 
229
229
Dates in US QIF files are usually in the format MM/DD/YY, although
230
230
four-digit years are not uncommon.  Dates sometimes occur without the
238
238
 
239
239
Monetary Amounts:
240
240
-----------------
241
 
These may occur in either US or Euro format:
242
 
 
243
 
10,000.00  Ten Thousand Dollars
244
 
10.000,00  Ten Thousand Francs
245
 
 
246
 
Within a given QIF file, the usage of US or Euro numeric format
 
241
These typically occur in either US or European format:
 
242
 
 
243
10,000.00  Ten Thousand Dollars (US format)
 
244
10.000,00  Ten Thousand Francs  (European format)
 
245
 
 
246
An apostrophe is also used in some cases:
 
247
 
 
248
10'000.00  Ten Thousand Dollars (Quicken 4)
 
249
10'000,00  Ten Thousand Francs  (unconfirmed)
 
250
 
 
251
Within a given QIF file, the usage of a particular numeric format
247
252
appears to be consistent within a particular field but may be
248
253
different from one field to another.  For example, the Share Amount
249
 
field can be in Euro format but the Split Amount in US.  No
 
254
field can be in European format but the Split Amount in US.  No
250
255
radix-point is required and no limit on decimal places is evident, so
251
256
it's possible to see the number "1,000" meaning "1 franc per share"
252
257
"1,000" meaning "one thousand shares" in the same transaction (!).
253
258
 
 
259
Investment Actions:
 
260
-------------------
 
261
The N line of investment transactions specifies the "action" of the
 
262
transaction. Although not a complete list, possible values include
 
263
the following:
 
264
 
 
265
QIF N Line    Notes
 
266
============  =====
 
267
Aktab         Same as ShrsOut.
 
268
AktSplit      Same as StkSplit.
 
269
Aktzu         Same as ShrsIn.
 
270
Buy           Buy shares.
 
271
BuyX          Buy shares. Used with an L line.
 
272
Cash          Miscellaneous cash transaction. Used with an L line.
 
273
CGMid         Mid-term capital gains.
 
274
CGMidX        Mid-term capital gains. For use with an L line.
 
275
CGLong        Long-term capital gains.
 
276
CGLongX       Long-term capital gains. For use with an L line.
 
277
CGShort       Short-term capital gains.
 
278
CGShortX      Short-term capital gains. For use with an L line.
 
279
ContribX      Same as XIn. Used for tax-advantaged accounts.
 
280
CvrShrt       Buy shares to cover a short sale.
 
281
CvrShrtX      Buy shares to cover a short sale. Used with an L line.
 
282
Div           Dividend received.
 
283
DivX          Dividend received. For use with an L line.
 
284
Errinerg      Same as Reminder.
 
285
Exercise      Exercise an option.
 
286
ExercisX      Exercise an option. For use with an L line.
 
287
Expire        Mark an option as expired. (Uses D, N, Y & M lines)
 
288
Grant         Receive a grant of stock options.
 
289
Int           Same as IntInc.
 
290
IntX          Same as IntIncX.
 
291
IntInc        Interest received.
 
292
IntIncX       Interest received. For use with an L line.
 
293
K.gewsp       Same as CGShort. (German)
 
294
K.gewspX      Same as CGShortX. (German)
 
295
Kapgew        Same as CGLong. Kapitalgewinnsteuer.(German)
 
296
KapgewX       Same as CGLongX. Kapitalgewinnsteuer. (German)
 
297
Kauf          Same as Buy. (German)
 
298
KaufX         Same as BuyX. (German)
 
299
MargInt       Margin interest paid.
 
300
MargIntX      Margin interest paid. For use with an L line.
 
301
MiscExp       Miscellaneous expense.
 
302
MiscExpX      Miscellaneous expense. For use with an L line.
 
303
MiscInc       Miscellaneous income.
 
304
MiscIncX      Miscellaneous income. For use with an L line.
 
305
ReinvDiv      Reinvested dividend.
 
306
ReinvInt      Reinvested interest.
 
307
ReinvLG       Reinvested long-term capital gains.
 
308
Reinvkur      Same as ReinvLG.
 
309
Reinvksp      Same as ReinvSh.
 
310
ReinvMd       Reinvested mid-term capital gains.
 
311
ReinvSG       Same as ReinvSh.
 
312
ReinvSh       Reinvested short-term capital gains.
 
313
Reinvzin      Same as ReinvDiv.
 
314
Reminder      Reminder. (Uses D, N, C & M lines)
 
315
RtrnCap       Return of capital.
 
316
RtrnCapX      Return of capital. For use with an L line.
 
317
Sell          Sell shares.
 
318
SellX         Sell shares. For use with an L line.
 
319
ShtSell       Short sale.
 
320
ShrsIn        Deposit shares.
 
321
ShrsOut       Withdraw shares.
 
322
StkSplit      Stock split.
 
323
Verkauf       Same as Sell. (German)
 
324
VerkaufX      Same as SellX. (German)
 
325
Vest          Mark options as vested. (Uses N, Y, Q, C & M lines)
 
326
WithDrwX      Same as XOut. Used for tax-advantaged accounts.
 
327
XIn           Transfer cash from another account.
 
328
XOut          Transfer cash to another account.
 
329
 
254
330
Category/Transfer/Class line: 
255
331
-----------------------------
256
332
 
274
350
   NMiscExpX
275
351
   T1000.00
276
352
   Lexpense category/expense class|[Transfer account]/transfer class
277
 
 
278