public ActionResult TestA0501() { InvoiceA0501 model = new InvoiceA0501() { CancelInvoiceNumber = "QE00000000", InvoiceDate = "20210419", CancelDate = "20210519", CancelTime = "16:20:17", SellerId = "12345678", BuyerId = "0000000000", CancelReason = "測試", }; InvoiceXMLServices service = new InvoiceXMLServices(); return(Content(service.GeneratorA0501(model), "text/xml")); }
/// <summary> /// 平台存證作廢發票訊息規格 /// </summary> /// <param name="data"></param> /// <returns></returns> public string GeneratorA0501(InvoiceA0501 data) { return(this.GeneratorXML(data, @"~/einv/template/templateA0501.txt", "urn:GEINV:eInvoiceMessage:A0501:3.2", @"~/einv/xsd/v32/A0501.xsd")); }