|
|
@ -2848,7 +2848,8 @@ public class PODetailServiceImpl extends ServiceImpl<PODetailMapper, PODetail> i |
|
|
* PO 导入专用保存:Excel 能对上的列原样入库,不复用 createPoOrderInternal / saveModelInternal。 |
|
|
* PO 导入专用保存:Excel 能对上的列原样入库,不复用 createPoOrderInternal / saveModelInternal。 |
|
|
* 系统只生成:order_no、item_no=1、order_ref1=PO_No、order_ref2 自增、po_header_id、site、页面 customer。 |
|
|
* 系统只生成:order_no、item_no=1、order_ref1=PO_No、order_ref2 自增、po_header_id、site、页面 customer。 |
|
|
* 数量按映射后状态回填,不信任 Excel A_Qty: |
|
|
* 数量按映射后状态回填,不信任 Excel A_Qty: |
|
|
* 完全发货时 c_ship_qty / to_inspect_qty / inspect_qty / inspect_approve_qty 都等于 qty,其余状态这四列都为 0。 |
|
|
|
|
|
|
|
|
* 完全发货时 c_ship_qty / to_inspect_qty / inspect_qty / inspect_approve_qty 都等于 qty; |
|
|
|
|
|
* 验货完成时 to_inspect_qty / inspect_qty / inspect_approve_qty 等于 qty、c_ship_qty 为 0;其余状态为 0。 |
|
|
* base_price 使用 Excel 列,不按价格表回填。 |
|
|
* base_price 使用 Excel 列,不按价格表回填。 |
|
|
* |
|
|
* |
|
|
* @param vo 预览映射后的单行数据,part_no 来自 Item 原样拷贝,supplier_no 来自 Vendor Name |
|
|
* @param vo 预览映射后的单行数据,part_no 来自 Item 原样拷贝,supplier_no 来自 Vendor Name |
|
|
@ -2991,7 +2992,8 @@ public class PODetailServiceImpl extends ServiceImpl<PODetailMapper, PODetail> i |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 导入数量按映射后状态回填,忽略 Excel A_Qty 及验货数量列。 |
|
|
* 导入数量按映射后状态回填,忽略 Excel A_Qty 及验货数量列。 |
|
|
* 完全发货:发货/待验/已验/验货完成数量都等于订单 qty;其它状态这四列都为 0。 |
|
|
|
|
|
|
|
|
* 完全发货:发货/待验/已验/验货通过数量都等于订单 qty; |
|
|
|
|
|
* 验货完成:已申请验货、已验货和验货通过数量等于订单 qty,发货数量为 0;其它状态均为 0。 |
|
|
* |
|
|
* |
|
|
* @param vo 即将落库的明细,必须已有 qty |
|
|
* @param vo 即将落库的明细,必须已有 qty |
|
|
* @param status 已映射的系统状态 |
|
|
* @param status 已映射的系统状态 |
|
|
@ -3009,6 +3011,16 @@ public class PODetailServiceImpl extends ServiceImpl<PODetailMapper, PODetail> i |
|
|
vo.setInspectApproveQty(BigDecimal.valueOf(qty)); |
|
|
vo.setInspectApproveQty(BigDecimal.valueOf(qty)); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
|
|
|
if ("验货完成".equals(status)) { |
|
|
|
|
|
if (qty == null) { |
|
|
|
|
|
throw new IllegalArgumentException("验货完成状态导入时 PO Qty 不能为空"); |
|
|
|
|
|
} |
|
|
|
|
|
vo.setShipQty(BigDecimal.ZERO); |
|
|
|
|
|
vo.setToInspectQty(BigDecimal.valueOf(qty)); |
|
|
|
|
|
vo.setInspectQty(qty); |
|
|
|
|
|
vo.setInspectApproveQty(BigDecimal.valueOf(qty)); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
vo.setShipQty(BigDecimal.ZERO); |
|
|
vo.setShipQty(BigDecimal.ZERO); |
|
|
vo.setToInspectQty(BigDecimal.ZERO); |
|
|
vo.setToInspectQty(BigDecimal.ZERO); |
|
|
vo.setInspectQty(0d); |
|
|
vo.setInspectQty(0d); |
|
|
|