예제 #1
0
        private CustomerDiscountSettings GetCustomerDiscountSettings(int customerNo)
        {
            _customerComponent.bcSetInt((int)Customer_Properties.CUS_CustomerNo, customerNo);
            var fetchCode = _customerComponent.bcFetchEqual();

            if (fetchCode != 0)
            {
                throw new PimIntegrationVismaObjectNotFoundException(string.Format("CustomerNo = {0} Code = {1}", customerNo, fetchCode));
            }

            return(new CustomerDiscountSettings
            {
                CurrencyNo = _customerComponent.bcGetInt((int)Customer_Properties.CUS_CurrencyNo),
                ChainNo = _customerComponent.bcGetInt((int)Customer_Properties.CUS_ChainNo),
                PriceListNo = _customerComponent.bcGetInt((int)Customer_Properties.CUS_PriceListNo),
                CustomerGroupNo = _customerComponent.bcGetInt((int)Customer_Properties.CUS_CustomerGrpNo)
            });
        }