Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftMtMx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
isc-v3.1-tmp
swiftMtMx
Commits
ad3c3f0c
Commit
ad3c3f0c
authored
Apr 08, 2022
by
niudeyuan
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
496231de
5eb49cb7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
31 deletions
+32
-31
Field50aGenerate.java
...ware/brilliance/mx2mt/mt900910/impl/Field50aGenerate.java
+16
-19
Field52aGenerate.java
...ware/brilliance/mx2mt/mt900910/impl/Field52aGenerate.java
+8
-6
Field56aGenerate.java
...ware/brilliance/mx2mt/mt900910/impl/Field56aGenerate.java
+8
-6
No files found.
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt900910/impl/Field50aGenerate.java
View file @
ad3c3f0c
...
...
@@ -45,30 +45,17 @@ public class Field50aGenerate extends AbstractMx2MtFieldsGenerate {
if
(
dbtr
.
getId
()
!=
null
&&
dbtr
.
getId
().
getOrgId
()
!=
null
&&
!
StringUtil
.
isEmpty
(
dbtr
.
getId
().
getOrgId
().
getBICOrBEI
()))
{
String
bicCode
=
dbtr
.
getId
().
getOrgId
().
getBICOrBEI
();
field50aOption
=
"A"
;
String
iban
=
""
;
String
otherId
=
""
;
CashAccount16
dbtrAcct
=
rltdPties
.
getDbtrAcct
();
if
(
dbtrAcct
.
getId
()
!=
null
)
{
iban
=
dbtrAcct
.
getId
().
getIBAN
();
if
(
StringUtil
.
isEmpty
(
iban
))
{
GenericAccountIdentification1
othr
=
dbtrAcct
.
getId
().
getOthr
();
if
(
othr
!=
null
)
{
otherId
=
othr
.
getId
();
}
}
}
if
(!
StringUtil
.
isEmpty
(
iban
))
{
field50a
=
"/"
+
iban
+
Mx2MtConstants
.
NEW_LINE
+
bicCode
;
}
else
if
(!
StringUtil
.
isEmpty
(
otherId
))
{
field50a
=
"//CH"
+
otherId
+
Mx2MtConstants
.
NEW_LINE
+
bicCode
;
String
bicCode
=
dbtr
.
getId
().
getOrgId
().
getBICOrBEI
();
String
account
=
getMtFormatAccount
(
rltdPties
.
getDbtrAcct
());
if
(
StringUtil
.
isNotEmpty
(
account
))
{
field50a
=
account
+
Mx2MtConstants
.
NEW_LINE
+
bicCode
;
}
else
{
field50a
=
bicCode
;
}
}
else
if
(!
StringUtil
.
isEmpty
(
dbtr
.
getNm
()))
{
field50aOption
=
"K"
;
field50a
=
"/"
+
dbtr
.
getNm
()
;
String
nameAddr
=
""
;
PostalAddress6
pstlAdr
=
dbtr
.
getPstlAdr
();
if
(
pstlAdr
!=
null
)
{
List
<
String
>
adrLineList
=
pstlAdr
.
getAdrLine
();
...
...
@@ -81,10 +68,20 @@ public class Field50aGenerate extends AbstractMx2MtFieldsGenerate {
if
(
adrLine
.
length
()
>
35
)
{
adrLine
=
adrLine
.
substring
(
0
,
35
);
}
field50a
+=
Mx2MtConstants
.
NEW_LINE
+
adrLine
;
if
(
i
==
0
)
{
nameAddr
+=
adrLine
;
}
else
{
nameAddr
+=
Mx2MtConstants
.
NEW_LINE
+
adrLine
;
}
}
}
}
String
account
=
getMtFormatAccount
(
rltdPties
.
getDbtrAcct
());
if
(!
StringUtil
.
isEmpty
(
account
))
{
field50a
=
account
+
Mx2MtConstants
.
NEW_LINE
+
nameAddr
;;
}
else
{
field50a
=
nameAddr
;
}
}
}
if
(
StringUtil
.
isNotEmpty
(
field50aOption
)
&&
StringUtil
.
isNotEmpty
(
field50a
))
{
...
...
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt900910/impl/Field52aGenerate.java
View file @
ad3c3f0c
...
...
@@ -29,13 +29,13 @@ public class Field52aGenerate extends AbstractMx2MtFieldsGenerate {
FinancialInstitutionIdentification7
finInstnId
=
crDrTrAgt
.
getFinInstnId
();
if
(
finInstnId
!=
null
)
{
String
bicCode
=
finInstnId
.
getBIC
();
String
memberId
=
""
;
ClearingSystemMemberIdentification2
clrSysMmbId
=
finInstnId
.
getClrSysMmbId
();
if
(
clrSysMmbId
!=
null
)
{
memberId
=
clrSysMmbId
.
getMmbId
();
}
if
(
StringUtil
.
isNotEmpty
(
bicCode
))
{
field52aOption
=
"A"
;
String
memberId
=
""
;
ClearingSystemMemberIdentification2
clrSysMmbId
=
finInstnId
.
getClrSysMmbId
();
if
(
clrSysMmbId
!=
null
)
{
memberId
=
clrSysMmbId
.
getMmbId
();
}
if
(
StringUtil
.
isNotEmpty
(
memberId
))
{
field52a
=
"/"
+
memberId
+
Mx2MtConstants
.
NEW_LINE
+
bicCode
;
}
else
{
...
...
@@ -43,7 +43,9 @@ public class Field52aGenerate extends AbstractMx2MtFieldsGenerate {
}
}
else
if
(!
StringUtil
.
isEmpty
(
finInstnId
.
getNm
())){
field52aOption
=
"D"
;
field52a
=
"/"
+
finInstnId
.
getNm
();
if
(
StringUtil
.
isNotEmpty
(
memberId
))
{
field52a
=
"/"
+
memberId
;
}
PostalAddress6
pstlAdr
=
finInstnId
.
getPstlAdr
();
if
(
pstlAdr
!=
null
)
{
List
<
String
>
adrLineList
=
pstlAdr
.
getAdrLine
();
...
...
src/main/java/com/prowidesoftware/brilliance/mx2mt/mt900910/impl/Field56aGenerate.java
View file @
ad3c3f0c
...
...
@@ -33,13 +33,13 @@ public class Field56aGenerate extends AbstractMx2MtFieldsGenerate {
FinancialInstitutionIdentification7
finInstnId
=
intrmyAgt1
.
getFinInstnId
();
if
(
finInstnId
!=
null
)
{
String
bicCode
=
finInstnId
.
getBIC
();
String
memberId
=
""
;
ClearingSystemMemberIdentification2
clrSysMmbId
=
finInstnId
.
getClrSysMmbId
();
if
(
clrSysMmbId
!=
null
)
{
memberId
=
clrSysMmbId
.
getMmbId
();
}
if
(
StringUtil
.
isNotEmpty
(
bicCode
))
{
field56aOption
=
"A"
;
String
memberId
=
""
;
ClearingSystemMemberIdentification2
clrSysMmbId
=
finInstnId
.
getClrSysMmbId
();
if
(
clrSysMmbId
!=
null
)
{
memberId
=
clrSysMmbId
.
getMmbId
();
}
if
(
StringUtil
.
isNotEmpty
(
memberId
))
{
field56a
=
"/"
+
memberId
+
Mx2MtConstants
.
NEW_LINE
+
bicCode
;
}
else
{
...
...
@@ -47,7 +47,9 @@ public class Field56aGenerate extends AbstractMx2MtFieldsGenerate {
}
}
else
if
(!
StringUtil
.
isEmpty
(
finInstnId
.
getNm
())){
field56aOption
=
"D"
;
field56a
=
"/"
+
finInstnId
.
getNm
();
if
(
StringUtil
.
isNotEmpty
(
memberId
))
{
field56a
=
"/"
+
memberId
;
}
PostalAddress6
pstlAdr
=
finInstnId
.
getPstlAdr
();
if
(
pstlAdr
!=
null
)
{
List
<
String
>
adrLineList
=
pstlAdr
.
getAdrLine
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment