~ubuntu-branches/ubuntu/oneiric/libaqbanking/oneiric

« back to all changes in this revision

Viewing changes to src/plugins/imexporters/ofx/parser/g_stmtrn.c

  • Committer: Bazaar Package Importer
  • Author(s): Micha Lenk
  • Date: 2011-05-22 20:09:54 UTC
  • mfrom: (4.1.16 sid)
  • Revision ID: james.westby@ubuntu.com-20110522200954-33povwx8r3z12inp
Tags: 5.0.6-1
* New upstream release
* Switch build dependency from libgmp3-dev to libgmp10-dev.
* Package is compliant to Debian Policy 3.9.2.0 (no changes needed).
* Updated libaqbanking33.symbols (4 new symbols added).

Show diffs side-by-side

added added

removed removed

Lines of Context:
186
186
        t=xg->transaction;
187
187
        if (strcasecmp(s, "CREDIT")==0) {
188
188
          AB_Transaction_SetTransactionKey(t, "MSC");
189
 
          AB_Transaction_SetTransactionText(t, I18N("Credit"));
 
189
          AB_Transaction_SetTransactionText(t, I18N("Generic credit"));
190
190
        }
191
191
        else if (strcasecmp(s, "DEBIT")==0) {
192
192
          AB_Transaction_SetTransactionKey(t, "MSC");
193
 
          AB_Transaction_SetTransactionText(t, I18N("Debit"));
 
193
          AB_Transaction_SetTransactionText(t, I18N("Generic debit"));
194
194
        }
195
195
        else if (strcasecmp(s, "INT")==0) {
196
196
          AB_Transaction_SetTransactionKey(t, "INT");
197
 
          AB_Transaction_SetTransactionText(t, I18N("Interest"));
 
197
          AB_Transaction_SetTransactionText(t, I18N("Interest earned or paid (Note: Depends on signage of amount)"));
198
198
        }
199
199
        else if (strcasecmp(s, "DIV")==0) {
200
200
          AB_Transaction_SetTransactionKey(t, "DIV");
202
202
        }
203
203
        else if (strcasecmp(s, "FEE")==0) {
204
204
          AB_Transaction_SetTransactionKey(t, "BRF");
205
 
          AB_Transaction_SetTransactionText(t, I18N("Fee"));
 
205
          AB_Transaction_SetTransactionText(t, I18N("FI fee"));
206
206
        }
207
207
        else if (strcasecmp(s, "SRVCHG")==0) {
208
208
          AB_Transaction_SetTransactionKey(t, "CHG");
214
214
        }
215
215
        else if (strcasecmp(s, "ATM")==0) {
216
216
          AB_Transaction_SetTransactionKey(t, "MSC"); /* misc */
217
 
          AB_Transaction_SetTransactionText(t, I18N("Cash dispenser"));
 
217
          AB_Transaction_SetTransactionText(t, I18N("ATM debit or credit (Note: Depends on signage of amount)"));
218
218
        }
219
219
        else if (strcasecmp(s, "POS")==0) {
220
220
          AB_Transaction_SetTransactionKey(t, "MSC"); /* misc */
221
 
          AB_Transaction_SetTransactionText(t, I18N("Point of sale"));
 
221
          AB_Transaction_SetTransactionText(t, I18N("Point of sale debit or credit (Note: Depends on signage of amount)"));
222
222
        }
223
223
        else if (strcasecmp(s, "XFER")==0) {
224
224
          AB_Transaction_SetTransactionKey(t, "TRF");
234
234
        }
235
235
        else if (strcasecmp(s, "CASH")==0) {
236
236
          AB_Transaction_SetTransactionKey(t, "MSC"); /* FIXME: not sure */
237
 
          AB_Transaction_SetTransactionText(t, I18N("Cash"));
 
237
          AB_Transaction_SetTransactionText(t, I18N("Cash withdrawal"));
238
238
        }
239
239
        else if (strcasecmp(s, "DIRECTDEP")==0) {
240
240
          AB_Transaction_SetTransactionKey(t, "LDP"); /* FIXME: not sure */
246
246
        }
247
247
        else if (strcasecmp(s, "REPEATPMT")==0) {
248
248
          AB_Transaction_SetTransactionKey(t, "STO");
249
 
          AB_Transaction_SetTransactionText(t, I18N("Standing order"));
 
249
          AB_Transaction_SetTransactionText(t, I18N("Repeating payment/standing order"));
250
250
        }
251
251
        else if (strcasecmp(s, "OTHER")==0) {
252
252
          AB_Transaction_SetTransactionKey(t, "MSC");
 
253
          AB_Transaction_SetTransactionText(t, I18N("Other"));
253
254
        }
254
255
        else {
255
256
          DBG_WARN(AQBANKING_LOGDOMAIN, "Unknown transaction type [%s]", s);
 
257
          AB_Transaction_SetTransactionText(t, I18N("Unknown transaction type"));
256
258
        }
257
259
      }
258
260
      else if (strcasecmp(xg->currentElement, "DTPOSTED")==0) {
312
314
        /* ignore */
313
315
      }
314
316
      else if (strcasecmp(xg->currentElement, "NAME")==0) {
315
 
        AB_Transaction_AddPurpose(xg->transaction, s, 1);
 
317
        AB_Transaction_AddRemoteName(xg->transaction, s, 1);
316
318
      }
317
319
      else if (strcasecmp(xg->currentElement, "MEMO")==0 ||
318
320
               strcasecmp(xg->currentElement, "MEMO2")==0) {
319
321
        AB_Transaction_AddPurpose(xg->transaction, s, 1);
320
322
      }
321
 
      else if (strcasecmp(xg->currentElement, "SRVTID")==0 ||
322
 
               strcasecmp(xg->currentElement, "SRVTID2")==0) {
 
323
      else if (strcasecmp(xg->currentElement, "SRVRTID")==0 ||
 
324
               strcasecmp(xg->currentElement, "SRVRTID2")==0) {
323
325
        AB_Transaction_SetBankReference(xg->transaction, s);
324
326
      }
325
327
      else {