public ActionResult TestB0501() { InvoiceB0501 model = new InvoiceB0501() { CancelAllowanceNumber = "QE00000000", AllowanceDate = "20210619", CancelDate = "20210519", CancelTime = "16:20:17", SellerId = "12345678", BuyerId = "0000000000", CancelReason = "測試", }; InvoiceXMLServices service = new InvoiceXMLServices(); return(Content(service.GeneratorB0501(model), "text/xml")); }
/// <summary> /// 平台存證作廢折讓證明單訊息規格 /// </summary> /// <param name="data"></param> /// <returns></returns> public string GeneratorB0501(InvoiceB0501 data) { return(this.GeneratorXML(data, @"~/einv/template/templateB0501.txt", "urn:GEINV:eInvoiceMessage:B0501:3.2", @"~/einv/xsd/v32/B0501.xsd")); }