add:质检显示
This commit is contained in:
@@ -108,6 +108,15 @@
|
||||
(表头查不到再按明细兜底),把操作人写到 `material_document.operate_id / operate_name`,
|
||||
物料凭证列表即可按「操作人」筛选(`params.operate_name`)。
|
||||
|
||||
### 物料凭证质检行(101 + 库存类型 X)
|
||||
|
||||
- 同步接口不再因为存在质检行而**整单跳过**:质检行(`bwart=101 && insmk=X`)照常保存,
|
||||
明细 `qc_flag=1`,只做展示,不参与收货与 SAP 回传。
|
||||
- 单据状态:整单明细都是质检行时置 `QUALITY`(质检);部分质检时单据仍为 `CREATED`,列表「明细数」会带「质检N」标记。
|
||||
- 过滤点:列表统计(`dtl_count/total_qty/instock_qty` 排除质检行)、下推中鼎 / 下推出库 / 打印标签、
|
||||
PDA 待收货列表、PDA 扫码收货(提示「为质检物料,不能确认收货」)、入库完成回调的收满判断。
|
||||
- 质检单据仍可执行 PP057 冲销(SAP 侧凭证有效)。
|
||||
|
||||
### 物料凭证冲销(PP057)
|
||||
|
||||
| 接口 | 说明 | 实现 |
|
||||
|
||||
@@ -156,6 +156,7 @@ public class SapInboundDocResolver {
|
||||
.eq(MaterialDocumentItem::getDocument_id, document.getId())
|
||||
.eq(MaterialDocumentItem::getDeleted, 0)
|
||||
.orderByAsc(MaterialDocumentItem::getZeile));
|
||||
// 质检行保留但打质检标记:只做展示,收货时会被拦截
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
return null;
|
||||
}
|
||||
@@ -180,12 +181,26 @@ public class SapInboundDocResolver {
|
||||
docItem.setBatchNo(item.getCharg());
|
||||
docItem.setQty(item.getMenge());
|
||||
docItem.setInstockQty(item.getInstock_qty() == null ? BigDecimal.ZERO : item.getInstock_qty());
|
||||
docItem.setQuality(isQualityItem(item));
|
||||
docItems.add(docItem);
|
||||
}
|
||||
doc.setItems(docItems);
|
||||
return docItems.isEmpty() ? null : doc;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否质检行:有质检标记按标记判断,历史数据按库存类型X兜底
|
||||
*/
|
||||
private boolean isQualityItem(MaterialDocumentItem item) {
|
||||
if (item == null) {
|
||||
return false;
|
||||
}
|
||||
if (StrUtil.isNotBlank(item.getQc_flag())) {
|
||||
return "1".equals(item.getQc_flag().trim());
|
||||
}
|
||||
return "X".equalsIgnoreCase(StrUtil.trim(item.getInsmk()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 交货单:只认收货类(storageOnly)单据类型,委外交货出库/销售出库不在此处理
|
||||
*/
|
||||
|
||||
@@ -59,6 +59,9 @@ public class SapInboundDoc implements Serializable {
|
||||
/** 已入库数量 */
|
||||
private BigDecimal instockQty;
|
||||
|
||||
/** 质检行:只做展示,不能收货 */
|
||||
private boolean quality;
|
||||
|
||||
/** 剩余可入库数量 */
|
||||
public BigDecimal remainQty() {
|
||||
BigDecimal total = qty == null ? BigDecimal.ZERO : qty;
|
||||
|
||||
@@ -170,8 +170,15 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
|
||||
List<JSONObject> resultList = new ArrayList<>();
|
||||
for (MaterialDocument document : documents) {
|
||||
List<MaterialDocumentItem> items = itemsByDocId.getOrDefault(document.getId(), Collections.emptyList());
|
||||
MaterialDocumentItem firstItem = items.isEmpty() ? null : items.get(0);
|
||||
List<MaterialDocumentItem> items = itemsByDocId.getOrDefault(document.getId(), Collections.emptyList())
|
||||
.stream()
|
||||
.filter(item -> !isQualityItem(item))
|
||||
.collect(Collectors.toList());
|
||||
if (items.isEmpty()) {
|
||||
// 整单都是质检物料,不参与收货
|
||||
continue;
|
||||
}
|
||||
MaterialDocumentItem firstItem = items.get(0);
|
||||
|
||||
JSONObject json = new JSONObject();
|
||||
json.put("bill_id", document.getMblnr());
|
||||
@@ -320,6 +327,10 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
if (item == null) {
|
||||
throw new BadRequestException("获取单据失败:单据" + document.getBillNo() + "中不存在行项目" + itemNo);
|
||||
}
|
||||
if (item.isQuality()) {
|
||||
throw new BadRequestException("获取单据失败:单据" + document.getBillNo() + "行" + itemNo
|
||||
+ "为质检物料,不能收货");
|
||||
}
|
||||
String scannedMaterial = sapInboundDocResolver.parseMaterialCode(code);
|
||||
if (StrUtil.isNotBlank(scannedMaterial)
|
||||
&& !StrUtil.equals(scannedMaterial, StrUtil.trim(item.getMaterialCode()))) {
|
||||
@@ -551,6 +562,10 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
if (sapItem == null) {
|
||||
throw new BadRequestException("入库失败:单据" + billNo + "中不存在行项目" + itemNoValue);
|
||||
}
|
||||
if (sapItem.isQuality()) {
|
||||
throw new BadRequestException("入库失败:单据" + billNo + "行项目" + itemNoValue
|
||||
+ "为质检物料,不能确认收货");
|
||||
}
|
||||
BigDecimal checkQty = qty;
|
||||
if (submittedQty != null) {
|
||||
// 同一条行项目可能在本次组盘中出现多行(同一标签多次扫码),累计后再校验
|
||||
@@ -579,6 +594,19 @@ public class InboundPdaServiceImpl implements InboundPdaService {
|
||||
* <li>物料凭证 → sapMaterialInbound,仅回写本地已入库数量,不回传 SAP。</li>
|
||||
* </ul>
|
||||
*/
|
||||
/**
|
||||
* 是否质检行:有质检标记按标记判断,历史数据按库存类型X兜底
|
||||
*/
|
||||
private boolean isQualityItem(MaterialDocumentItem item) {
|
||||
if (item == null) {
|
||||
return false;
|
||||
}
|
||||
if (StrUtil.isNotBlank(item.getQc_flag())) {
|
||||
return "1".equals(item.getQc_flag().trim());
|
||||
}
|
||||
return "X".equalsIgnoreCase(StrUtil.trim(item.getInsmk()));
|
||||
}
|
||||
|
||||
private String resolveCallbackStrategy(String extType) {
|
||||
if (StrUtil.isBlank(extType)) {
|
||||
return null;
|
||||
|
||||
@@ -6,6 +6,8 @@ public enum MaterialDocumentStatus {
|
||||
POSTED("POSTED", "已过账"),
|
||||
CANCELED("CANCELED", "已取消"),
|
||||
COMPLETED("COMPLETED", "已完成"),
|
||||
/** 质检:整单明细均为质检(101+库存类型X),只做展示,不参与收货与SAP回传 */
|
||||
QUALITY("QUALITY", "质检"),
|
||||
/** 已冲销:P057 冲销 SAP 物料凭证后作废,不能再做任何处理 */
|
||||
REVERSED("REVERSED", "已冲销");
|
||||
|
||||
|
||||
@@ -16,7 +16,9 @@ import java.util.stream.Collectors;
|
||||
/**
|
||||
* 按移动类型、采购订单、借贷标识识别物料凭证单据类型。
|
||||
* <p>
|
||||
* 优先级:采购订单 EBELN(101+insmk=X 跳过整单、543 委外、101/321 采购入库且跳过321+H、122行)→ 无采购订单再按移动类型分组。
|
||||
* 优先级:采购订单 EBELN(543 委外、101/321 采购入库且跳过321+H、122行)→ 无采购订单再按移动类型分组。
|
||||
* <p>
|
||||
* 质检行(101+库存类型X)不再整单跳过:明细照常落库并打质检标记,只展示,不参与收货和SAP回传。
|
||||
*/
|
||||
public final class MaterialDocumentBillTypeResolver {
|
||||
|
||||
@@ -67,15 +69,14 @@ public final class MaterialDocumentBillTypeResolver {
|
||||
}
|
||||
|
||||
/**
|
||||
* 整单跳过存储:101+insmk=X,或仅含销售/其他出入库等排除移动类型。
|
||||
* 整单跳过存储:仅含销售/其他出入库等排除移动类型时跳过。
|
||||
* <p>
|
||||
* 质检行(101+insmk=X)不再导致整单跳过,由调用方保存并标记 {@code qc_flag}。
|
||||
*/
|
||||
public static boolean shouldSkipDocumentStorage(List<MaterialDocumentItemBody> items) {
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
return false;
|
||||
}
|
||||
if (hasPurchaseOrder(items) && items.stream().anyMatch(MaterialDocumentBillTypeResolver::is101WithInsmkX)) {
|
||||
return true;
|
||||
}
|
||||
Set<String> bwarts = collectBwarts(items);
|
||||
if (!containsAny(bwarts, EXCLUDED_STORAGE_BWART)) {
|
||||
return false;
|
||||
@@ -130,6 +131,23 @@ public final class MaterialDocumentBillTypeResolver {
|
||||
&& INSMK_X.equals(normalize(item.getInsmk()));
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否质检行:101 + 库存类型 X。质检行只做展示,不参与收货与SAP回传。
|
||||
*/
|
||||
public static boolean isQualityItem(MaterialDocumentItemBody item) {
|
||||
return is101WithInsmkX(item);
|
||||
}
|
||||
|
||||
/**
|
||||
* 过滤后可入库(非质检)的明细是否存在
|
||||
*/
|
||||
public static boolean hasReceivableItem(List<MaterialDocumentItemBody> items) {
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
return false;
|
||||
}
|
||||
return items.stream().anyMatch(item -> !isQualityItem(item));
|
||||
}
|
||||
|
||||
private static boolean is321WithShkzgH(MaterialDocumentItemBody item) {
|
||||
return item != null
|
||||
&& BWART_321.equals(normalize(item.getBwart()))
|
||||
|
||||
@@ -41,6 +41,9 @@ public class MaterialDocumentItem implements Serializable {
|
||||
|
||||
private String insmk;
|
||||
|
||||
/** 质检标识:1-质检行(101+库存类型X),只展示,不参与收货与SAP回传 */
|
||||
private String qc_flag;
|
||||
|
||||
private String lifnr;
|
||||
|
||||
/** 供应商名称:同步时按供应商编码调 MDG004 获取 */
|
||||
|
||||
@@ -23,9 +23,15 @@
|
||||
m.reverse_by,
|
||||
MAX(i.lifnr) AS lifnr,
|
||||
MAX(i.lifnr_name) AS lifnr_name,
|
||||
COUNT(i.id) AS dtl_count,
|
||||
IFNULL(SUM(i.menge), 0) AS total_qty,
|
||||
IFNULL(SUM(i.instock_qty), 0) AS instock_qty,
|
||||
<!-- 质检行只做展示:不计入明细数/单据数量/已完成数量 -->
|
||||
COUNT(CASE WHEN NOT (IFNULL(i.qc_flag, '0') = '1'
|
||||
OR (i.qc_flag IS NULL AND IFNULL(i.insmk, '') = 'X')) THEN i.id END) AS dtl_count,
|
||||
IFNULL(SUM(CASE WHEN NOT (IFNULL(i.qc_flag, '0') = '1'
|
||||
OR (i.qc_flag IS NULL AND IFNULL(i.insmk, '') = 'X')) THEN i.menge END), 0) AS total_qty,
|
||||
IFNULL(SUM(CASE WHEN NOT (IFNULL(i.qc_flag, '0') = '1'
|
||||
OR (i.qc_flag IS NULL AND IFNULL(i.insmk, '') = 'X')) THEN i.instock_qty END), 0) AS instock_qty,
|
||||
IFNULL(SUM(CASE WHEN (IFNULL(i.qc_flag, '0') = '1'
|
||||
OR (i.qc_flag IS NULL AND IFNULL(i.insmk, '') = 'X')) THEN 1 ELSE 0 END), 0) AS qc_count,
|
||||
m.created_time,
|
||||
m.updated_time
|
||||
FROM material_document m
|
||||
|
||||
@@ -56,6 +56,9 @@ public class MaterialDocumentListVo {
|
||||
|
||||
private BigDecimal instock_qty;
|
||||
|
||||
/** 质检明细行数:只展示,不参与收货与SAP回传 */
|
||||
private Integer qc_count;
|
||||
|
||||
/** 冲销时间 */
|
||||
private LocalDateTime reverse_time;
|
||||
|
||||
|
||||
@@ -141,12 +141,20 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
document.setBldat(body.getBldat());
|
||||
document.setBudat(body.getBudat());
|
||||
document.setUsnam(body.getUsnam());
|
||||
document.setBwart(itemsToStore.get(0).getBwart());
|
||||
document.setLgort(StrUtil.trim(itemsToStore.get(0).getLgort()));
|
||||
// 主表移动类型/存储地点优先取非质检行(质检行只做展示)
|
||||
MaterialDocumentItemBody headerItem = itemsToStore.stream()
|
||||
.filter(item -> !MaterialDocumentBillTypeResolver.isQualityItem(item))
|
||||
.findFirst()
|
||||
.orElse(itemsToStore.get(0));
|
||||
document.setBwart(headerItem.getBwart());
|
||||
document.setLgort(StrUtil.trim(headerItem.getLgort()));
|
||||
document.setXblnr(body.getXblnr());
|
||||
document.setBktxt(body.getBktxt());
|
||||
document.setXabln(body.getXabln());
|
||||
document.setStatus(MaterialDocumentStatus.CREATED.getCode());
|
||||
// 明细全部为质检行时单据状态置为「质检」,只做展示,不参与收货与SAP回传
|
||||
document.setStatus(MaterialDocumentBillTypeResolver.hasReceivableItem(itemsToStore)
|
||||
? MaterialDocumentStatus.CREATED.getCode()
|
||||
: MaterialDocumentStatus.QUALITY.getCode());
|
||||
document.setCreated_by(operator);
|
||||
document.setDeleted(NOT_DELETED);
|
||||
// 该凭证由交货单收货确认生成时,按凭证号反查确认人,便于用户查看自己的单据
|
||||
@@ -174,6 +182,8 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
}
|
||||
MaterialDocumentItem item = new MaterialDocumentItem();
|
||||
BeanUtil.copyProperties(itemBody, item);
|
||||
// 质检行打标:只展示,确认收货与SAP回传都会过滤
|
||||
item.setQc_flag(MaterialDocumentBillTypeResolver.isQualityItem(itemBody) ? "1" : "0");
|
||||
// 供应商名称:按行项目供应商编码调 MDG004 获取,取不到留空(不阻断同步)
|
||||
item.setLifnr_name(supplierQueryService.getSupplierName(itemBody.getLifnr()));
|
||||
item.setDocument_id(document.getId());
|
||||
@@ -348,7 +358,7 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
if (!MaterialDocumentIo.IN.getCode().equals(document.getIo())) {
|
||||
throw new BadRequestException("打印失败:单据" + document.getMblnr() + "不是入库类型");
|
||||
}
|
||||
List<MaterialDocumentItem> items = listItems(document.getId());
|
||||
List<MaterialDocumentItem> items = filterQualityItems(listItems(document.getId()));
|
||||
for (MaterialDocumentItem item : items) {
|
||||
allZpl.append(ZplUtil.generatePurchaseLabel(
|
||||
document.getMblnr(),
|
||||
@@ -381,9 +391,9 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
if (ZD_LGORT.equals(StrUtil.trim(document.getLgort()))) {
|
||||
throw new BadRequestException("下推失败:单据" + document.getMblnr() + "存储地点为R001,不能下推出库");
|
||||
}
|
||||
List<MaterialDocumentItem> items = listItems(document.getId());
|
||||
List<MaterialDocumentItem> items = filterQualityItems(listItems(document.getId()));
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
throw new BadRequestException("下推失败:单据明细不存在");
|
||||
throw new BadRequestException("下推失败:单据" + document.getMblnr() + "明细不存在或全部为质检物料");
|
||||
}
|
||||
Map<String, List<MaterialDocumentItem>> grouped = items.stream()
|
||||
.peek(item -> {
|
||||
@@ -422,9 +432,9 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
if (!ZD_LGORT.equals(StrUtil.trim(document.getLgort()))) {
|
||||
throw new BadRequestException("下推失败:单据" + document.getMblnr() + "存储地点不是R001,不能下推中鼎WMS");
|
||||
}
|
||||
List<MaterialDocumentItem> items = listItems(document.getId());
|
||||
List<MaterialDocumentItem> items = filterQualityItems(listItems(document.getId()));
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
throw new BadRequestException("下推失败:单据" + document.getMblnr() + "明细不存在");
|
||||
throw new BadRequestException("下推失败:单据" + document.getMblnr() + "明细不存在或全部为质检物料");
|
||||
}
|
||||
MaterialDocumentFormDto dto = BeanUtil.copyProperties(document, MaterialDocumentFormDto.class);
|
||||
dto.setItems(items);
|
||||
@@ -448,13 +458,14 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
if (MaterialDocumentStatus.REVERSED.getCode().equals(document.getStatus())) {
|
||||
throw new BadRequestException("冲销失败:单据" + document.getMblnr() + "已冲销,不能重复冲销");
|
||||
}
|
||||
if (!MaterialDocumentStatus.CREATED.getCode().equals(document.getStatus())) {
|
||||
if (!MaterialDocumentStatus.CREATED.getCode().equals(document.getStatus())
|
||||
&& !MaterialDocumentStatus.QUALITY.getCode().equals(document.getStatus())) {
|
||||
throw new BadRequestException("冲销失败:单据" + document.getMblnr() + "已下发或已入库,不能冲销");
|
||||
}
|
||||
if (StrUtil.isBlank(document.getMblnr())) {
|
||||
throw new BadRequestException("冲销失败:单据物料凭证号为空");
|
||||
}
|
||||
BigDecimal instockQty = listItems(document.getId()).stream()
|
||||
BigDecimal instockQty = filterQualityItems(listItems(document.getId())).stream()
|
||||
.map(MaterialDocumentItem::getInstock_qty)
|
||||
.filter(Objects::nonNull)
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
@@ -715,6 +726,29 @@ public class MaterialDocumentServiceImpl implements MaterialDocumentService {
|
||||
.orderByAsc(MaterialDocumentItem::getZeile));
|
||||
}
|
||||
|
||||
/**
|
||||
* 质检行只做展示:下推、打印、收货、SAP回传都要过滤掉
|
||||
*/
|
||||
private List<MaterialDocumentItem> filterQualityItems(List<MaterialDocumentItem> items) {
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
return items == null ? new ArrayList<>() : items;
|
||||
}
|
||||
return items.stream()
|
||||
.filter(item -> !isQualityItem(item))
|
||||
.collect(Collectors.toList());
|
||||
}
|
||||
|
||||
private boolean isQualityItem(MaterialDocumentItem item) {
|
||||
if (item == null) {
|
||||
return false;
|
||||
}
|
||||
if (StrUtil.isNotBlank(item.getQc_flag())) {
|
||||
return "1".equals(item.getQc_flag().trim());
|
||||
}
|
||||
// 兜底:历史数据没有质检标记时按库存类型X判断
|
||||
return "X".equalsIgnoreCase(StrUtil.trim(item.getInsmk()));
|
||||
}
|
||||
|
||||
private MaterialDocument getEditableDocument(Long id, boolean forEdit) {
|
||||
MaterialDocument document = documentMapper.selectById(id);
|
||||
if (document == null || Objects.equals(document.getDeleted(), 1)) {
|
||||
|
||||
@@ -79,6 +79,11 @@ public class SapMaterialInboundCallback implements CallbackStrategy {
|
||||
log.warn("物料凭证{}行{}不存在,跳过已入库数量回写", document.getMblnr(), zeile);
|
||||
return;
|
||||
}
|
||||
// 质检行只做展示,不参与收货与SAP回传
|
||||
if (isQualityItem(item)) {
|
||||
log.warn("物料凭证{}行{}为质检行,跳过已入库数量回写", document.getMblnr(), zeile);
|
||||
return;
|
||||
}
|
||||
BigDecimal instock = item.getInstock_qty() == null ? BigDecimal.ZERO : item.getInstock_qty();
|
||||
item.setInstock_qty(instock.add(inboundQty));
|
||||
itemMapper.updateById(item);
|
||||
@@ -97,11 +102,19 @@ public class SapMaterialInboundCallback implements CallbackStrategy {
|
||||
if (CollectionUtils.isEmpty(items)) {
|
||||
return;
|
||||
}
|
||||
boolean finished = items.stream().allMatch(item -> {
|
||||
BigDecimal qty = item.getMenge() == null ? BigDecimal.ZERO : item.getMenge();
|
||||
BigDecimal instock = item.getInstock_qty() == null ? BigDecimal.ZERO : item.getInstock_qty();
|
||||
return instock.compareTo(qty) >= 0;
|
||||
});
|
||||
// 整单都是质检行时不置完成,保持「质检」状态展示
|
||||
boolean hasReceivable = items.stream().anyMatch(item -> !isQualityItem(item));
|
||||
if (!hasReceivable) {
|
||||
return;
|
||||
}
|
||||
// 质检行不参与收货,判断单据是否收满时要排除
|
||||
boolean finished = items.stream()
|
||||
.filter(item -> !isQualityItem(item))
|
||||
.allMatch(item -> {
|
||||
BigDecimal qty = item.getMenge() == null ? BigDecimal.ZERO : item.getMenge();
|
||||
BigDecimal instock = item.getInstock_qty() == null ? BigDecimal.ZERO : item.getInstock_qty();
|
||||
return instock.compareTo(qty) >= 0;
|
||||
});
|
||||
if (!finished) {
|
||||
return;
|
||||
}
|
||||
@@ -138,4 +151,17 @@ public class SapMaterialInboundCallback implements CallbackStrategy {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否质检行:有质检标记按标记判断,历史数据按库存类型X兜底
|
||||
*/
|
||||
private boolean isQualityItem(MaterialDocumentItem item) {
|
||||
if (item == null) {
|
||||
return false;
|
||||
}
|
||||
if (StrUtil.isNotBlank(item.getQc_flag())) {
|
||||
return "1".equals(item.getQc_flag().trim());
|
||||
}
|
||||
return "X".equalsIgnoreCase(StrUtil.trim(item.getInsmk()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ CREATE TABLE material_document (
|
||||
lgort VARCHAR(20) COMMENT '存储地点(取明细第一条)',
|
||||
|
||||
-- 状态字段
|
||||
status VARCHAR(20) DEFAULT 'CREATED' COMMENT '状态:CREATED-已创建,POSTED-已过账,CANCELED-已取消,COMPLETED-已完成,REVERSED-已冲销',
|
||||
status VARCHAR(20) DEFAULT 'CREATED' COMMENT '状态:CREATED-已创建,POSTED-已过账,CANCELED-已取消,COMPLETED-已完成,QUALITY-质检,REVERSED-已冲销',
|
||||
reverse_time DATETIME COMMENT '冲销时间',
|
||||
reverse_by VARCHAR(50) COMMENT '冲销人',
|
||||
|
||||
@@ -109,6 +109,7 @@ CREATE TABLE material_document_item (
|
||||
lgort VARCHAR(20) COMMENT '存储地点',
|
||||
charg VARCHAR(20) COMMENT '批次编号',
|
||||
insmk VARCHAR(10) COMMENT '库存类型',
|
||||
qc_flag VARCHAR(1) DEFAULT '0' COMMENT '质检标识:1-质检行(101+库存类型X),只展示不参与收货与SAP回传',
|
||||
lifnr VARCHAR(20) COMMENT '供应商科目编号',
|
||||
lifnr_name VARCHAR(200) COMMENT '供应商名称(MDG004查询)',
|
||||
kunnr VARCHAR(20) COMMENT '客户的帐户编号',
|
||||
|
||||
Reference in New Issue
Block a user