fix #45 add DATE12

This commit is contained in:
Enrique Zamudio
2016-01-06 11:05:44 -06:00
parent a0c8413171
commit ab1d882476
9 changed files with 142 additions and 10 deletions
@@ -86,7 +86,8 @@ public class CompositeField implements CustomBinaryField<CompositeField> {
if (v != null) {
if (v.getType() == IsoType.NUMERIC || v.getType() == IsoType.DATE10
|| v.getType() == IsoType.DATE4 || v.getType() == IsoType.DATE_EXP
|| v.getType() == IsoType.AMOUNT || v.getType() == IsoType.TIME) {
|| v.getType() == IsoType.AMOUNT || v.getType() == IsoType.TIME
|| v.getType() == IsoType.DATE12) {
pos += (v.getLength() / 2) + (v.getLength() % 2);
} else {
pos += v.getLength();