public static StockTaking GetPending(long pId, long lId) { StockTaking stockTaking = BusinessDomain.DataAccessProvider.GetPendingOperationWithPartner <StockTaking> (OperationType.StockTaking, pId, lId); if (stockTaking != null) { stockTaking.LoadDetails(); stockTaking.IsDirty = false; } return(stockTaking); }
public static StockTaking GetById(long stockTakingId) { StockTaking stockTaking = BusinessDomain.DataAccessProvider.GetOperationWithPartnerById <StockTaking> (OperationType.StockTaking, stockTakingId); if (stockTaking != null) { stockTaking.LoadDetails(); stockTaking.IsDirty = false; } return(stockTaking); }