|
|
@ -311,7 +311,7 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran |
|
|
|
var log = new VmiLog |
|
|
|
{ |
|
|
|
LogType = logType, |
|
|
|
ChangedType = VmiType.In, |
|
|
|
ChangedType = VmiType.Out, |
|
|
|
ChangedNumber = changedNumber, |
|
|
|
ChangedTime = DateTime.Now, |
|
|
|
ChangedBy = _currentUser.UserName, |
|
|
@ -529,12 +529,17 @@ public class VmiAppService : ApplicationService, IVmiService, IJobService, ITran |
|
|
|
{ |
|
|
|
if (log.Qty >= decimal.Zero) |
|
|
|
{ |
|
|
|
log.LogType = VmiLogType.Type500; |
|
|
|
log.ChangedType = VmiType.In; |
|
|
|
var data = new VmiBalance(); |
|
|
|
data.InjectFrom(log); |
|
|
|
await In(VmiLogType.Type500, null, data).ConfigureAwait(false); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
log.LogType = VmiLogType.Type600; |
|
|
|
log.ChangedType = VmiType.Out; |
|
|
|
log.Qty=-log.Qty; |
|
|
|
await this.Out(VmiLogType.Type600, null, log).ConfigureAwait(false); |
|
|
|
} |
|
|
|
} |
|
|
|