public ActionResult TestA0202() { InvoiceA0202 model = new InvoiceA0202() { CancelInvoiceNumber = "QE00000000", InvoiceDate = "20210419", SellerId = "12345678", BuyerId = "0000000000", CancelDate = "20210519", CancelTime = "16:20:17", }; InvoiceXMLServices service = new InvoiceXMLServices(); return(Content(service.GeneratorA0202(model), "text/xml")); }
/// <summary> /// 作廢發票接收確認訊息規格 /// </summary> /// <param name="data"></param> /// <returns></returns> public string GeneratorA0202(InvoiceA0202 data) { return(this.GeneratorXML(data, @"~/einv/template/templateA0202.txt", "urn:GEINV:eInvoiceMessage:A0202:3.2", @"~/einv/xsd/v32/A0202.xsd")); }