//Custom Code End
 //Custom Code Start | Replaced Code Block
 //Replaced Code Block Start
 //public ReceivingService(IReceivingRepository receivingRepository)
 //Replaced Code Block End
 public ReceivingService(IReceivingRepository receivingRepository, IHandlingUnitsService handlingunitsService, IInventoryUnitsService inventoryunitsService, IInventoryUnitTransactionContextsService inventoryunittransactioncontextsService, IInboundOrdersService inboundordersService, IInboundOrderLinesService inboundorderlinesService, CommonLookUps commonLookUps)
 //Custom Code End
 {
     _receivingRepository = receivingRepository;
     //Custom Code Start | Added Code Block
     _handlingunitsService  = handlingunitsService;
     _inventoryunitsService = inventoryunitsService;
     _inventoryunittransactioncontextsService = inventoryunittransactioncontextsService;
     _ixInventoryUnitTransactionContext       = _inventoryunittransactioncontextsService.IndexDb().Where(x => x.sInventoryUnitTransactionContext == "Receiving").Select(x => x.ixInventoryUnitTransactionContext).FirstOrDefault();
     _inboundordersService     = inboundordersService;
     _inboundorderlinesService = inboundorderlinesService;
     _commonLookUps            = commonLookUps;
     //Custom Code End
 }
Exemple #2
0
 public List <InventoryUnitTransactionContexts> getInventoryUnitTransactionContext()
 {
     return(_inventoryunittransactioncontextsService.IndexDb().ToList());
 }