Project

General

Profile

Revision 8f5406fe src/libs/plugins/parsers/swift/swift940.c

View differences:

src/libs/plugins/parsers/swift/swift940.c
467 467
                AHB_SWIFT__SetCharValue(data, flags, "originatorId", GWEN_Buffer_GetStart(tbuf));
468 468
              }
469 469
              else if (strcasecmp(sVarName, "SVWZ+")==0) {
470
                AHB_SWIFT__SetCharValue(data, flags, "purpose", GWEN_Buffer_GetStart(tbuf));
470
                AHB_SWIFT__SetCharValue(data, flags | GWEN_DB_FLAGS_OVERWRITE_VARS, "purpose", GWEN_Buffer_GetStart(tbuf));
471 471
              }
472 472
              else if (strcasecmp(sVarName, "ABWA+")==0) {
473 473
                /* "abweichender Auftraggeber" */
......
479 479
              }
480 480
              else if (strcasecmp(sVarName, "_purpose")==0) {
481 481
                /* manually added tag (i.e. data outside a tag)
482
                * TODO: only add if there was no real purpose field (i.e. no "SVWZ+") */
482
                * will be replaced if there was a real purpose field (i.e. "SVWZ+") */
483 483
                AHB_SWIFT__SetCharValue(data, flags, "purpose", GWEN_Buffer_GetStart(tbuf));
484 484
              }
485 485

  

Also available in: Unified diff