close trader dispute ticket on payout published
This commit is contained in:
parent
c42471191a
commit
48d902b58d
@ -648,7 +648,10 @@ public abstract class Trade implements Tradable, Model {
|
|||||||
}).start();
|
}).start();
|
||||||
|
|
||||||
// complete disputed trade
|
// complete disputed trade
|
||||||
if (getDisputeState().isArbitrated() && !getDisputeState().isClosed()) processModel.getTradeManager().closeDisputedTrade(getId(), Trade.DisputeState.DISPUTE_CLOSED);
|
if (getDisputeState().isArbitrated() && !getDisputeState().isClosed()) {
|
||||||
|
processModel.getTradeManager().closeDisputedTrade(getId(), Trade.DisputeState.DISPUTE_CLOSED);
|
||||||
|
if (!isArbitrator()) for (Dispute dispute : getDisputes()) dispute.setIsClosed(); // auto close trader tickets
|
||||||
|
}
|
||||||
|
|
||||||
// auto complete arbitrator trade
|
// auto complete arbitrator trade
|
||||||
if (isArbitrator() && !isCompleted()) processModel.getTradeManager().onTradeCompleted(this);
|
if (isArbitrator() && !isCompleted()) processModel.getTradeManager().onTradeCompleted(this);
|
||||||
|
Loading…
Reference in New Issue
Block a user