protected CustomerGroupItemType CreateCustomerGroupItemType(CustomerGroup group, ItemType itemType, bool isWarehouse) { CustomerGroupItemType customerGroupItemType = new CustomerGroupItemType(); customerGroupItemType.CustomerGroup = group; customerGroupItemType.ItemType = itemType; customerGroupItemType.WarehouseAllocation = isWarehouse; return customerGroupItemType; }
protected CustomerGroupItemType CreateCustomerGroupItemType(CustomerGroup group, ItemType itemType, Customer customer) { CustomerGroupItemType customerGroupItemType = new CustomerGroupItemType(); customerGroupItemType.ID = Guid.NewGuid(); customerGroupItemType.CustomerGroup = group; customerGroupItemType.ItemType = itemType; customerGroupItemType.IDCustomer = customer.ID; customerGroupItemType.IncludeInSAPOrders = true; customerGroupItemType.WarehouseAllocation = true; return customerGroupItemType; }