| | |
| | | } |
| | | |
| | | if operation.BaseOperationType == constvar.BaseOperationTypeOutgoing || operation.BaseOperationType == constvar.BaseOperationTypeDisuse { |
| | | if err := service.FinishOperationOutput(tx, listDetails, mapLocAmount); err != nil { |
| | | if err := service.FinishOperationOutput(tx, listDetails, mapLocAmount, operation); err != nil { |
| | | return err |
| | | } |
| | | } |
| | | |
| | | if operation.BaseOperationType == constvar.BaseOperationTypeInternal { |
| | | if err := service.FinishOperationInternal(tx, listDetails); err != nil { |
| | | if err := service.FinishOperationInternal(tx, listDetails, operation); err != nil { |
| | | return err |
| | | } |
| | | } |
| | | |
| | | if operation.BaseOperationType == constvar.BaseOperationTypeAdjust { |
| | | if err := service.FinishOperationAdjust(tx, listDetails, mapLocAmount); err != nil { |
| | | if err := service.FinishOperationAdjust(tx, listDetails, mapLocAmount, operation); err != nil { |
| | | return err |
| | | } |
| | | } |