Ejemplo n.º 1
0
        public void PerDiscTax(int taxGrp, double disc)
        {
            char taxName = MHelper.GetTaxNameFromNumber(taxGrp);

            _datecsPort.SendCommand(Commands.GroupTaxDiscount, "T" + taxName, "11", (-disc).ToString());
            MHelper.WriteLog("PerDiscTax(int group, double disc). By tax group - " + taxName + ". Value - " + disc);
        }
Ejemplo n.º 2
0
        public void SetArticle(int artNum, int taxGrp, int grp, double price, string passwd, string name)
        {
            char taxName = MHelper.GetTaxNameFromNumber(taxGrp);

            _datecsPort.SendCommand(Commands.ProgramArticles, "P" + taxName + artNum, grp.ToString(), price.ToString(), passwd, name);
            if (s1 == "F")
            {
                ErrorPropertiesUpdate("Ошибка чтения/программирования артикула", 34);
                return;
            }
            MHelper.WriteLog("SetArticle(int artNum, int taxGrp, int grp, double price, string passwd, string name) " + artNum);
        }