|
|
@ -771,7 +771,9 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
// Calculate adjusted value and round to nearest integer |
|
|
// Calculate adjusted value and round to nearest integer |
|
|
int adjustedValue = (int) (matrix[i][j] * weight); |
|
|
int adjustedValue = (int) (matrix[i][j] * weight); |
|
|
matrix[i][j] = adjustedValue; |
|
|
matrix[i][j] = adjustedValue; |
|
|
|
|
|
|
|
|
|
|
|
if (i == j) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
// Skip if value is 0 |
|
|
// Skip if value is 0 |
|
|
if (adjustedValue == 0) { |
|
|
if (adjustedValue == 0) { |
|
|
continue; |
|
|
continue; |
|
|
@ -802,6 +804,7 @@ public class CashCollectionServiceImpl implements CashCollectionService { |
|
|
cashRecord.setSubmitterId(adjustDTO.getSubmitterId()); |
|
|
cashRecord.setSubmitterId(adjustDTO.getSubmitterId()); |
|
|
cashRecord.setSubmitterMarket(adjustDTO.getSubmitterMarket()); |
|
|
cashRecord.setSubmitterMarket(adjustDTO.getSubmitterMarket()); |
|
|
cashRecord.setRemark(remark); |
|
|
cashRecord.setRemark(remark); |
|
|
|
|
|
cashRecord.setPayTime(adjustDTO.getTime()); |
|
|
if(k == 0){ |
|
|
if(k == 0){ |
|
|
cashRecord.setPerformanceMarket(fromMarket); |
|
|
cashRecord.setPerformanceMarket(fromMarket); |
|
|
cashRecord.setReceivedAmount(new BigDecimal(-adjustedValue)); |
|
|
cashRecord.setReceivedAmount(new BigDecimal(-adjustedValue)); |
|
|
|