Esempio n. 1
0
        public ActionResult TestB0202()
        {
            InvoiceB0202 model = new InvoiceB0202()
            {
                CancelAllowanceNumber = "QE00000000",
                AllowanceDate         = "20210619",
                SellerId   = "12345678",
                BuyerId    = "0000000000",
                CancelDate = "20210519",
                CancelTime = "16:20:17",
            };

            InvoiceXMLServices service = new InvoiceXMLServices();

            return(Content(service.GeneratorB0202(model), "text/xml"));
        }
 /// <summary>
 /// 作廢折讓證明單接收確認訊息規格
 /// </summary>
 /// <param name="data"></param>
 /// <returns></returns>
 public string GeneratorB0202(InvoiceB0202 data)
 {
     return(this.GeneratorXML(data, @"~/einv/template/templateB0202.txt", "urn:GEINV:eInvoiceMessage:B0202:3.2", @"~/einv/xsd/v32/B0202.xsd"));
 }