test #11
@ -258,6 +258,7 @@ public class WarehouseInboundSaveInput
|
||||
[Required]
|
||||
public int WarehouseId { get; set; }
|
||||
|
||||
/// <summary>唛头/快递单号,选填。</summary>
|
||||
public string? MarkReference { get; set; }
|
||||
|
||||
public string InboundType { get; set; } = "normal";
|
||||
|
||||
@ -155,7 +155,7 @@ public partial class WarehouseService
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存入库预报(新增或编辑)。
|
||||
/// 保存入库预报(新增或编辑)。编辑仅允许「预报」「待入库」状态;唛头(MarkReference)选填。
|
||||
/// </summary>
|
||||
/// <param name="input">入参:入库预报保存数据。</param>
|
||||
/// <returns>保存后的入库预报详情。</returns>
|
||||
@ -177,9 +177,10 @@ public partial class WarehouseService
|
||||
if (input.Id > 0)
|
||||
{
|
||||
notice = await GetInboundNoticeOrThrowAsync(customerId, input.Id);
|
||||
if (notice.ReceiptStatus != WarehouseReceiptStatusCodes.Forecasted)
|
||||
if (notice.ReceiptStatus != WarehouseReceiptStatusCodes.Forecasted
|
||||
&& notice.ReceiptStatus != WarehouseReceiptStatusCodes.Received)
|
||||
{
|
||||
throw new BusinessException("仅预报状态可编辑");
|
||||
throw new BusinessException("仅预报或待入库状态可编辑");
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user