责任库存数据校验任务
包括数据同步准确性,及数据清洗
SupplierReturnsOrder=>BillType.SupplierReturnsOrder
//销售出库 SaleOutput
var operateType = BillType.LocalArtificialSalesPutOut; //本地仓人工销售出库
if (sourceItem.WarehouseType == 1)
{
operateType = sourceItem.OperateType == 0 ? BillType.LocalArtificialSalesPutOut : BillType.LocalIntelligentSalesPutOut;
}
else if (sourceItem.WarehouseType != 3 && sourceItem.WarehouseType != 81)
{
operateType = sourceItem.OperateType ==0 ? BillType.OverseaArtificialSalesPutOut : BillType.OverseaIntelligentSalesPutOut;
}
return operateType;
ProcurementPutin =>BillType.ProcurementPutin
OhterOrder
BillType = p.ProductQuantity > 0 ? BillType.OtherOrderPutIn : BillType.OtherOrderPutOut,
InventoryCheckOrder
ProductQuantity > 0 ? BillType.InventoryCheckOrderPutIn : BillType.InventoryCheckOrderPutOut
{
//是否入库
if(BillType=4){
if(WarehouseType=1 && ToWarehouseType=1)
return 1073741824;
else
return 4194304;
}else{
if(WarehouseType=1 && ToWarehouseType=1)
return 2147483648;
else{
if (ToWarehouseType == (int)WareHouseType.FBA || UserId <= 0)
{
if (ProductQuantity > 0)
{
return 4294967296;
}
else
{
billType = BillType.ToFbaOrSystemAllocationBillPutOut;
}
}
else
{
billType = BillType.ArtificialAllocationBillPutOut;
}
}
}
}


