Skip to content

Commit

Permalink
Fixed forex outbound deliveries to allow zero value to support total …
Browse files Browse the repository at this point in the history
…write-offs

See also: c116e16
buchen committed Nov 11, 2017
1 parent be88e14 commit 1edd03a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -196,7 +196,7 @@ private IStatus calculateStatus()
if (shares == 0L)
return ValidationStatus.error(MessageFormat.format(Messages.MsgDialogInputRequired, Messages.ColumnShares));

if (grossValue == 0L || convertedGrossValue == 0L)
if ((grossValue == 0L || convertedGrossValue == 0L) && type != PortfolioTransaction.Type.DELIVERY_OUTBOUND)
return ValidationStatus.error(MessageFormat.format(Messages.MsgDialogInputRequired, Messages.ColumnSubTotal));

// check whether gross value is in range

0 comments on commit 1edd03a

Please sign in to comment.