/// <summary> /// Defines items in ECR /// </summary> /// <param name="name"></param> /// <param name="plu"></param> /// <param name="taxGr"></param> /// <param name="dep"></param> /// <param name="group"></param> /// <param name="price"></param> /// <param name="quantity"></param> /// <param name="priceType"></param> /// <returns></returns> public ProgramItemResponse ProgramItem(string name, int plu, TaxGr taxGr, int dep, int group, decimal price, decimal quantity = 9999, PriceType priceType = PriceType.FixedPrice) { return((ProgramItemResponse)SendMessage(new ProgramItemCommand(name, plu, taxGr, dep, group, price, quantity, priceType) , bytes => new ProgramItemResponse(bytes))); }
/// <summary> /// Defines items in ECR /// </summary> /// <param name="name"></param> /// <param name="plu"></param> /// <param name="taxGr"></param> /// <param name="dep"></param> /// <param name="group"></param> /// <param name="price"></param> /// <param name="quantity"></param> /// <param name="priceType"></param> /// <returns></returns> public EmptyFiscalResponse ProgramItem(string name, int plu, TaxGr taxGr, int dep, int group, decimal price, decimal quantity = 9999, PriceType priceType = PriceType.FixedPrice, string barcode = "") { return((EmptyFiscalResponse)ExecuteCommand(new ProgramItemCommand(name, plu, taxGr, dep, group, price, quantity, priceType, barcode) , bytes => new EmptyFiscalResponse(bytes))); }
public ProgramItemCommand(string name, int plu, TaxGr taxGr, int dep, int group, decimal price, decimal quantity = 9999, PriceType priceType = PriceType.FixedPrice) { Command = 107; Data = (new object[] { "P", plu, taxGr, dep, group, (int)priceType, price, "", quantity, "", "", "", "", name }).StringJoin("\t"); }
public ProgramItemCommand(string name, int plu, TaxGr taxGr, int dep, int group, decimal price, decimal quantity = 9999, PriceType priceType = PriceType.FixedPrice, string Bar1 = "0") { Command = 107; Data = (new object[] { "P", plu, taxGr, dep, group, (int)priceType, price, "", quantity, Bar1, "", "", "", name }).StringJoin("\t"); }