Ejemplo n.º 1
0
        protected CustomerGroupItemType CreateCustomerGroupItemType(CustomerGroup group, ItemType itemType, bool isWarehouse)
        {
            CustomerGroupItemType customerGroupItemType = new CustomerGroupItemType();
            customerGroupItemType.CustomerGroup = group;
            customerGroupItemType.ItemType = itemType;
            customerGroupItemType.WarehouseAllocation = isWarehouse;

            return customerGroupItemType;
        }
Ejemplo n.º 2
0
        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;
        }