|
|
|
|
@ -91,11 +91,11 @@ class SessionCSVDescriptor(source: DataSource, private var isTournament: Boolean |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
val amount = if (buyin != null && buyin!! > 0) { |
|
|
|
|
type = TransactionType.getByValue(TransactionType.Value.DEPOSIT, realm) |
|
|
|
|
buyin |
|
|
|
|
} else if (cashedOut != null && cashedOut!! > 0) { |
|
|
|
|
type = TransactionType.getByValue(TransactionType.Value.WITHDRAWAL, realm) |
|
|
|
|
cashedOut!! * -1 |
|
|
|
|
buyin!! * -1 |
|
|
|
|
} else if (cashedOut != null && cashedOut!! > 0) { |
|
|
|
|
type = TransactionType.getByValue(TransactionType.Value.DEPOSIT, realm) |
|
|
|
|
cashedOut |
|
|
|
|
} else { |
|
|
|
|
null |
|
|
|
|
} |
|
|
|
|
|