add log for vitial stk
This commit is contained in:
		
							parent
							
								
									f97949ee8a
								
							
						
					
					
						commit
						89b7651d48
					
				|  | @ -286,8 +286,8 @@ public WmsStock( string locationId) | ||||||
|                     { |                     { | ||||||
| 
 | 
 | ||||||
|                     LogHelper.debug(typeof(WmsStock), |                     LogHelper.debug(typeof(WmsStock), | ||||||
|                         string.Format("{0} 库存扣完删除库存记录,countIn: {1} ,count: {2},countOut: {3} ,countIn: {4},plateCount {5}", |                         string.Format(" locationid {6}, {0} 库存扣完删除库存记录,countIn: {1} ,count: {2},countOut: {3} ,countIn: {4},plateCount {5}", | ||||||
|                         goodsId, countIn, count, countOut, countIn,plateCount) |                         goodsId, countIn, count, countOut, countIn,plateCount,locationId) | ||||||
|                         ); |                         ); | ||||||
|                     return Delete(); // 库存扣完,删除记录 |                     return Delete(); // 库存扣完,删除记录 | ||||||
|                 } |                 } | ||||||
|  |  | ||||||
|  | @ -3533,7 +3533,7 @@ namespace DeiNiu.wms.Logical | ||||||
|                 WmsStock stkVir = new WmsStock(new WmsLocation().getVirLocations(goods.part).locationId,new WmsOutPickDetail(outPickPort.pickDetailId).skuId, sr.goodsId); |                 WmsStock stkVir = new WmsStock(new WmsLocation().getVirLocations(goods.part).locationId,new WmsOutPickDetail(outPickPort.pickDetailId).skuId, sr.goodsId); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|                 //.Debug("拣货更新库存前: " + stk); |                logOut.Debug("拣货更新库存前: " + stk); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|                 enumStockRecordType type = (enumStockRecordType)outPickPort.recType; |                 enumStockRecordType type = (enumStockRecordType)outPickPort.recType; | ||||||
|  |  | ||||||
|  | @ -2435,7 +2435,7 @@ namespace DeiNiu.wms.Logical | ||||||
|                                 { |                                 { | ||||||
|                                     //从虚拟库存借库存,在实体库位出库; 从零库出任务 |                                     //从虚拟库存借库存,在实体库位出库; 从零库出任务 | ||||||
| 
 | 
 | ||||||
|                                     logOut.Debug(" goods av bulk cnt befor virtual operation : " + goods.stockBulkAvCount +" ,lackcout " + lackCnt); |                                     logSpec.Debug(" goods av bulk cnt befor virtual operation : " + goods.stockBulkAvCount +" ,lackcout " + lackCnt); | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
|                                     bool isHit = false; |                                     bool isHit = false; | ||||||
|  | @ -2445,7 +2445,7 @@ namespace DeiNiu.wms.Logical | ||||||
| 
 | 
 | ||||||
|                                         if (st.getAvCount() < 0) |                                         if (st.getAvCount() < 0) | ||||||
|                                         { |                                         { | ||||||
|                                             log.Debug(" 避开负库存。。。。 " + st); |                                             logSpec.Debug(" 避开负库存。。。。 " + st); | ||||||
|                                             continue; |                                             continue; | ||||||
|                                         } |                                         } | ||||||
| 
 | 
 | ||||||
|  | @ -2554,12 +2554,12 @@ namespace DeiNiu.wms.Logical | ||||||
|                                 { |                                 { | ||||||
|                                     stkVir.goodsId = requestDetail.goods.goodsId; |                                     stkVir.goodsId = requestDetail.goods.goodsId; | ||||||
|                                     stkVir.Add(); |                                     stkVir.Add(); | ||||||
|                                   //  logSpec.Debug("新增虚拟库存 " + stkVir); |                                      logSpec.Debug("新增虚拟库存 " + stkVir); | ||||||
|                                 } |                                 } | ||||||
|                                 else |                                 else | ||||||
|                                 { |                                 { | ||||||
|                                     stkVir.Update(); |                                     stkVir.Update(); | ||||||
|                                    // logSpec.Debug("更新 虚拟库存 " + stkVir); |                                      logSpec.Debug("更新 虚拟库存 " + stkVir); | ||||||
|                                 } |                                 } | ||||||
| 
 | 
 | ||||||
|                                 if (!WmsConstants.OUT_STOCK_LACK_VIR_OUT_AUTO) |                                 if (!WmsConstants.OUT_STOCK_LACK_VIR_OUT_AUTO) | ||||||
|  |  | ||||||
|  | @ -1057,7 +1057,8 @@ namespace DeiNiu.wms.Logical | ||||||
| 
 | 
 | ||||||
|                                 WmsStock virSt = st.getVirStock(st.goodsId); |                                 WmsStock virSt = st.getVirStock(st.goodsId); | ||||||
|                                 virSt.countOuting -= wop.virtialCnt; |                                 virSt.countOuting -= wop.virtialCnt; | ||||||
|                                 virSt.updateCountOut(); |                                // virSt.updateCountOut(); | ||||||
|  |                                 virSt.Update(); | ||||||
|                             } |                             } | ||||||
| 
 | 
 | ||||||
|                             st.countOuting -= wop.count; |                             st.countOuting -= wop.count; | ||||||
|  |  | ||||||
|  | @ -7,6 +7,6 @@ | ||||||
|   <PropertyGroup> |   <PropertyGroup> | ||||||
|     <TimeStampOfAssociatedLegacyPublishXmlFile /> |     <TimeStampOfAssociatedLegacyPublishXmlFile /> | ||||||
|     <EncryptedPassword /> |     <EncryptedPassword /> | ||||||
|     <History>True|2024-03-22T01:31:42.8760994Z;True|2024-03-22T09:31:10.8088318+08:00;True|2024-03-22T09:30:08.1914035+08:00;True|2024-03-22T09:25:02.5305528+08:00;True|2024-03-20T22:55:40.0397610+08:00;True|2024-03-20T22:42:21.0790187+08:00;True|2024-03-20T22:36:09.2791989+08:00;True|2024-03-20T22:22:12.9730279+08:00;True|2024-03-20T19:54:32.1698921+08:00;True|2024-03-20T19:54:09.8789983+08:00;True|2024-03-20T19:21:19.0080195+08:00;True|2024-03-20T15:40:39.8706246+08:00;True|2024-03-20T08:55:54.5146171+08:00;True|2024-03-19T19:43:40.4120707+08:00;True|2024-03-19T18:44:16.3121326+08:00;True|2024-03-19T13:39:00.7981191+08:00;True|2024-03-19T13:35:01.7794426+08:00;True|2024-03-19T11:32:08.9351827+08:00;False|2024-03-19T11:31:34.3574177+08:00;True|2024-03-15T22:20:49.9543261+08:00;True|2024-03-14T18:05:27.5226179+08:00;True|2024-03-14T18:04:22.9552845+08:00;True|2024-03-13T21:12:28.9157626+08:00;True|2024-03-10T19:33:40.9271322+08:00;True|2024-03-06T18:49:41.0345462+08:00;True|2024-03-06T18:17:41.7374273+08:00;True|2024-03-06T18:12:23.8953777+08:00;True|2024-03-05T14:41:43.0493268+08:00;True|2024-03-05T10:34:01.8181582+08:00;True|2024-03-05T10:33:41.6827293+08:00;True|2024-03-04T21:44:07.3387316+08:00;True|2024-03-04T21:15:19.6954718+08:00;True|2024-03-04T21:14:57.9591923+08:00;True|2024-03-04T19:47:10.4489216+08:00;True|2024-03-03T09:25:24.1437972+08:00;True|2024-03-02T16:10:09.9360774+08:00;True|2024-03-02T12:39:56.7993047+08:00;True|2024-03-01T17:51:52.7749703+08:00;True|2024-03-01T17:44:53.9566064+08:00;True|2024-03-01T17:39:23.0891734+08:00;True|2024-03-01T14:27:56.7473404+08:00;True|2024-03-01T13:32:26.9532310+08:00;True|2024-03-01T09:46:11.9247046+08:00;True|2024-02-28T21:56:14.6129398+08:00;True|2024-02-27T10:15:36.1332202+08:00;True|2024-02-27T10:14:34.9579768+08:00;True|2024-02-27T09:57:11.5785797+08:00;True|2024-02-21T12:58:18.0087896+08:00;True|2024-02-19T12:47:50.8170331+08:00;True|2024-02-19T12:14:18.6431662+08:00;True|2024-02-19T12:11:35.2671748+08:00;True|2024-02-06T21:10:42.6568450+08:00;</History> |     <History>True|2024-03-22T03:27:32.0715888Z;True|2024-03-22T10:46:35.3826831+08:00;True|2024-03-22T10:42:03.6158979+08:00;True|2024-03-22T10:33:50.2153330+08:00;True|2024-03-22T09:31:42.8760994+08:00;True|2024-03-22T09:31:10.8088318+08:00;True|2024-03-22T09:30:08.1914035+08:00;True|2024-03-22T09:25:02.5305528+08:00;True|2024-03-20T22:55:40.0397610+08:00;True|2024-03-20T22:42:21.0790187+08:00;True|2024-03-20T22:36:09.2791989+08:00;True|2024-03-20T22:22:12.9730279+08:00;True|2024-03-20T19:54:32.1698921+08:00;True|2024-03-20T19:54:09.8789983+08:00;True|2024-03-20T19:21:19.0080195+08:00;True|2024-03-20T15:40:39.8706246+08:00;True|2024-03-20T08:55:54.5146171+08:00;True|2024-03-19T19:43:40.4120707+08:00;True|2024-03-19T18:44:16.3121326+08:00;True|2024-03-19T13:39:00.7981191+08:00;True|2024-03-19T13:35:01.7794426+08:00;True|2024-03-19T11:32:08.9351827+08:00;False|2024-03-19T11:31:34.3574177+08:00;True|2024-03-15T22:20:49.9543261+08:00;True|2024-03-14T18:05:27.5226179+08:00;True|2024-03-14T18:04:22.9552845+08:00;True|2024-03-13T21:12:28.9157626+08:00;True|2024-03-10T19:33:40.9271322+08:00;True|2024-03-06T18:49:41.0345462+08:00;True|2024-03-06T18:17:41.7374273+08:00;True|2024-03-06T18:12:23.8953777+08:00;True|2024-03-05T14:41:43.0493268+08:00;True|2024-03-05T10:34:01.8181582+08:00;True|2024-03-05T10:33:41.6827293+08:00;True|2024-03-04T21:44:07.3387316+08:00;True|2024-03-04T21:15:19.6954718+08:00;True|2024-03-04T21:14:57.9591923+08:00;True|2024-03-04T19:47:10.4489216+08:00;True|2024-03-03T09:25:24.1437972+08:00;True|2024-03-02T16:10:09.9360774+08:00;True|2024-03-02T12:39:56.7993047+08:00;True|2024-03-01T17:51:52.7749703+08:00;True|2024-03-01T17:44:53.9566064+08:00;True|2024-03-01T17:39:23.0891734+08:00;True|2024-03-01T14:27:56.7473404+08:00;True|2024-03-01T13:32:26.9532310+08:00;True|2024-03-01T09:46:11.9247046+08:00;True|2024-02-28T21:56:14.6129398+08:00;True|2024-02-27T10:15:36.1332202+08:00;True|2024-02-27T10:14:34.9579768+08:00;True|2024-02-27T09:57:11.5785797+08:00;True|2024-02-21T12:58:18.0087896+08:00;True|2024-02-19T12:47:50.8170331+08:00;True|2024-02-19T12:14:18.6431662+08:00;True|2024-02-19T12:11:35.2671748+08:00;True|2024-02-06T21:10:42.6568450+08:00;</History> | ||||||
|   </PropertyGroup> |   </PropertyGroup> | ||||||
| </Project> | </Project> | ||||||
		Loading…
	
		Reference in New Issue