| | |
| | | private String priceUnitId; |
| | | |
| | | @ApiModelProperty(value = "建议目标仓库", example = "WH001") |
| | | private String targetWareHouseId; |
| | | private String targetWarehouseId; |
| | | |
| | | @ApiModelProperty(value = "调出仓", example = "WH002") |
| | | private String sourceWareHouseId; |
| | | private String sourceWarehouseId; |
| | | |
| | | @ApiModelProperty(value = "入库类型", example = "purchase") |
| | | private String inStockType; |
| | |
| | | |
| | | @ApiModelProperty(value = "数量属性,外购等") |
| | | private String erpClsId; |
| | | |
| | | @ApiModelProperty(value = "建议目标仓,入库") |
| | | private String targetWarehouseId; |
| | | |
| | | @ApiModelProperty(value = "建议调出仓,出仓") |
| | | private String sourceWarehouseId; |
| | | |
| | | /** |
| | | * 获取实际的物料编码 |
| | | * 优先使用 matnr,如果为空则使用 matNr |
| | |
| | | throw new IllegalArgumentException("生产入库明细必须提供托盘码"); |
| | | } |
| | | |
| | | if (!Cools.isEmpty(targetWareHouseId) && !Cools.isEmpty(sourceWareHouseId)) { |
| | | if (targetWareHouseId.equals(sourceWareHouseId)) { |
| | | if (!Cools.isEmpty(targetWarehouseId) && !Cools.isEmpty(sourceWarehouseId)) { |
| | | if (targetWarehouseId.equals(sourceWarehouseId)) { |
| | | throw new IllegalArgumentException("目标仓库和调出仓库不能相同"); |
| | | } |
| | | } |
| | |
| | | */ |
| | | @JsonIgnore |
| | | public boolean isTransferItem() { |
| | | return !Cools.isEmpty(sourceWareHouseId) && !Cools.isEmpty(targetWareHouseId); |
| | | return !Cools.isEmpty(sourceWarehouseId) && !Cools.isEmpty(targetWarehouseId); |
| | | } |
| | | |
| | | /** |