public MaterialsRequestNote_Item GetNewDataCustom()
        {
            ProductionOrderViewModel  productionOrder = ProductionOrderDataUtil.GetProductionOrder(client);
            InventorySummaryViewModel product         = InventorySummaryDataUtil.GetInventorySummary(client);

            return(new MaterialsRequestNote_Item
            {
                ProductionOrderId = "testCustom",
                ProductionOrderNo = "testCustomNo",
                ProductionOrderIsCompleted = false,
                OrderQuantity = (double)productionOrder.orderQuantity,
                OrderTypeId = productionOrder.orderType._id,
                OrderTypeCode = productionOrder.orderType.code,
                OrderTypeName = productionOrder.orderType.name,
                ProductId = product.productId,
                ProductCode = product.productCode,
                ProductName = product.productName,
                Grade = "A",
                Length = 5
            });
        }
Пример #2
0
        public override StockTransferNote GetNewData()
        {
            StorageViewModel          storage          = StorageDataUtil.GetPrintingGreigeStorage(client);
            InventorySummaryViewModel inventorySummary = InventorySummaryDataUtil.GetInventorySummary(client);

            StockTransferNote TestData = new StockTransferNote
            {
                ReferenceNo            = "Reference No Test",
                ReferenceType          = "Reference Type Test",
                SourceStorageId        = inventorySummary.storageId,
                SourceStorageCode      = inventorySummary.storageCode,
                SourceStorageName      = inventorySummary.storageName,
                TargetStorageId        = storage._id,
                TargetStorageCode      = storage.code,
                TargetStorageName      = storage.name,
                IsApproved             = false,
                StockTransferNoteItems = new List <StockTransferNote_Item> {
                    stockTransferNoteItemDataUtil.GetNewData(inventorySummary)
                }
            };

            return(TestData);
        }