拆批时追加如果父库存数量不为0,照样打印出来
This commit is contained in:
parent
5cad54ec04
commit
0a023e05cf
@ -438,7 +438,6 @@ public class ZWmsInventoryServiceImpl extends ServiceImpl<ZWmsInventoryMapper, I
|
||||
paramMap.put("DOCUMENT_NO", documentNo);
|
||||
paramMap.put("CODE", inventoryId);
|
||||
printData.add(paramMap);
|
||||
|
||||
}
|
||||
saveBatch(newInventoryList);
|
||||
//货格绑定/库存日志
|
||||
@ -470,6 +469,20 @@ public class ZWmsInventoryServiceImpl extends ServiceImpl<ZWmsInventoryMapper, I
|
||||
|
||||
// 执行打印,单独开个线程去跑
|
||||
if (StringUtil.notEmpty(printerName)) {
|
||||
// 追加如果父库存数量不为0,照样打印出来
|
||||
if(!parentIsEmpty){
|
||||
// 添加打印参数
|
||||
JSONObject paramMap = new JSONObject();
|
||||
paramMap.put("ITEM", itemObj.getItem());
|
||||
paramMap.put("DES", itemObj.getDescription());
|
||||
paramMap.put("DATE", LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")));
|
||||
paramMap.put("BATCH", parentInventory.getBatchNo());
|
||||
paramMap.put("QTY", subtract);
|
||||
paramMap.put("INV_ID", parentInventory.getInventoryId());
|
||||
paramMap.put("DOCUMENT_NO", documentNo);
|
||||
paramMap.put("CODE", parentInventory.getInventoryId());
|
||||
printData.add(paramMap);
|
||||
}
|
||||
transactionTemplate.execute(new TransactionCallback<Void>() {
|
||||
@Override
|
||||
public Void doInTransaction(TransactionStatus status) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user