
This file describes a transaction ("Umsatz") as we receive it from the bank.
Please note that is slightly differs from a transfer ("Ueberweisung").

This format is used when storing transactions we received from the bank.

As you probably see by yourself the first word of a definition below
shows the type of that variable as it is seen by the appropriate functions
of LibGwenhywfar's DB module (which defines functions like 
GWEN_DB_GetCharValue, GWEN_DB_GetIntValue etc.).

The fields referred to (like :61:) define the corresponding tag of a
SWIFT MT940 document (this is the format used by the bank when sending the
list of transactions to us).


transaction {
    # A date "Valuta" when the transaction was (really?) executed
    # Datum Valuta/Wertstellung in :61:
  char ValutaDate="20031020"

    # The date when the transaction was booked. In MT940 spec this
    # has only four characters (no year), so we take the year from
    # the valutaDate(). -- Buchungsdatum in :61: */
  char date="20031020"
  
    # This group contains the value (positive or negative)
  value {
    char value="-29,95"
    char currency="EUR"
  } # value

    # This group contains the original value (e.g. for foreign currency
    # transfers, not used by all banks)
  origvalue {
    char value="-29,95"
    char currency="EUR"
  } # origvalue

    # This group contains the charges (not used by all banks)
  charges {
    char value="1,25"
    char currency="EUR"
  } # origvalue

    # this is the transaction id that tells you more about the type
    # of transaction (3 character code) -- Buchungsschluessel in :61:
  char key="TRF"
  
    # Reference string, if the customer (you) has specified
    # one. (E.g. the cheque number.) Otherwise "NONREF". --
    # Kundenreferenz in :61: 
  char custref="NONREF"
  
    # A 3 digit numerical transaction code, defined for all kinds of
    # different HBCI actions. -- Geschaeftsvorfallcode, first field
    # in field :86:
    # For a normal transfer you should set it to 51. For debit notes the
    # values 05 or 06 may be used. For other values please refer to your
    # credit institute.
  char code="077"

    # Transaction text  -- Buchungstext; field 00 in field :86:
  char text="UEBERWEISUNG"
  
    # Primanoten-Number (no idea what this means)
    # Primanoten-Nummer; field 10 in field :86:  
  char primanota="952010"

    # Verwendungszweck; fields 20-29 and 60-63 in field :86:
  char purpose="SB-UEBERWEISUNG,  HBCI"  
  
    # This group describes the partner's account involved in this transaction
  otherAccount {
    char BankCode="99999999"
    char AccountId="12345678"
  } # otherAccount

    # name of the partner
  char othername="PARTNER NAME"
  
    # This group describes your account (optional)
  ourAccount {
    char BankCode="88888888"
    char AccountId="987654321"
  } # ourAccount

} # transaction
