Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
#3: Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
haneloreianoseck committed Apr 3, 2019
1 parent 46c0f66 commit dbad401
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ private P100 mapToP100(HEADERXbest header, DETAILXbest detail)
QuantityQual quantityQual = QuantityQual.valueOf(dquan1.getQUANTITYQUAL());
switch (quantityQual)
{
//TODO what about the measurement unit if both types of quantity are there?
case CUTU:
{
final String quantityStr = dquan1.getQUANTITY();
Expand All @@ -94,6 +95,10 @@ private P100 mapToP100(HEADERXbest header, DETAILXbest detail)
}
}
}
if (cutuQty == BigDecimal.ZERO)
{
cutuQty = BigDecimal.ONE;
}
p100.setCuperTU(cutuQty.toString());
p100.setOrderQty(orderQty.toString());
p100.setOrderUnit(orderUnit);
Expand Down

0 comments on commit dbad401

Please sign in to comment.