Exemple #1
0
        public bool ArticleExists(string articleNo)
        {
            _articleComponent.bcSetValueFromStr((int)Article_Properties.ART_ArticleNo, articleNo);
            _articleComponent.bcFetchEqual();

            return(_articleComponent.bcGetNoOfRecords() > 0);
        }
Exemple #2
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)
            });
        }