<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Bảng hàm API kết nối Hoá đơn điện tử VNPT - Ebook về lập trình				            </title>
            <link>https://forum.sthink.com.vn/forum/ebook-ve-lap-trinh/bang-ham-api-ket-noi-hoa-don-dien-tu-vnpt/</link>
            <description>Forum for Sthink community</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 09 Oct 2026 08:42:02 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>Bảng hàm API kết nối Hoá đơn điện tử VNPT</title>
                        <link>https://forum.sthink.com.vn/forum/ebook-ve-lap-trinh/bang-ham-api-ket-noi-hoa-don-dien-tu-vnpt/#post-45</link>
                        <pubDate>Fri, 15 May 2020 02:41:47 +0000</pubDate>
                        <description><![CDATA[khai báo về sự kiện  13 Tháng Mười Hai 2018 - Đập Đổ Sự cuối cùng 13 Tháng Mười Hai 2018 
Xem tập tin Quảng cáo
TÀI LIỆU MÔ TẢ WEBSERVICE đườngĐT
 
   
   Mô hình tích hợp:
Thủ tục Cập...]]></description>
                        <content:encoded><![CDATA[<p style="text-align: left"> </p>
<p style="font-weight: 300;text-align: left"><a style="font-weight: 600" href="http://oforum.sthink.com.vn/profile/khaibl/"><span style="vertical-align: inherit"><span style="vertical-align: inherit">khai báo về sự kiện</span></span></a><span> </span><span style="vertical-align: inherit"><span style="vertical-align: inherit"> 13 Tháng Mười Hai 2018 </span><span><span style="vertical-align: inherit">- </span></span><a style="font-weight: 600" href="http://oforum.sthink.com.vn/profile/khaibl/"><span style="vertical-align: inherit">Đập Đổ Sự </span></a><span><span style="vertical-align: inherit">cuối cùng 13 Tháng Mười Hai 2018</span></span></span><span> </span><span></span></p>
<p style="text-align: left"><span style="vertical-align: inherit"><span style="vertical-align: inherit">Xem tập tin Quảng cáo</span></span></p>
<p style="text-align: left"><span style="font-size: 14pt"><strong><span style="vertical-align: inherit"><span style="vertical-align: inherit">TÀI LIỆU MÔ TẢ WEBSERVICE đườngĐT</span></span></strong></span></p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">   <span></span></p>
<p style="font-weight: 400;text-align: left"><strong>  <span> </span></strong><span style="font-size: 14pt"><strong>Mô hình tích hợp:</strong></span></p>
<p style="font-weight: 400;text-align: left"><strong><span style="font-size: 12pt">Thủ tục Cập nhật khách hàng</span></strong></p>
81
<p> </p>
<p> </p>
<p style="font-weight: 400;text-align: left"><span style="font-size: 12pt"><strong>Thủ tục Phát hành hóa đơn</strong></span></p>
82
<p> </p>
<p> </p>
<p style="font-weight: 400;text-align: left"><span style="font-size: 12pt"><strong>Thủ tục Thanh toán gạch nợ</strong></span></p>
83
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">   <span> </span></p>
<p> </p>
<p style="font-weight: 400;text-align: left"> <span> </span> Ghi chú: Các tham số sau VNPT<span> </span>sẽ cung cấp ngay khi VNPT dựng xong portal <span> </span>cho khách hàng:</p>
<p style="font-weight: 400;text-align: left">-      <span> </span><strong>Account/ACPass</strong>: Tài khoản được cấp phát cho nhân viên gọi lệnh phát hành hóa đơn.</p>
<p style="font-weight: 400;text-align: left">-      <span> </span><strong>username/pass</strong>: Tài khoản được cấp phát cho khách hàng để gọi service.</p>
<p style="font-weight: 400;text-align: left">-      <span> </span><strong>pattern</strong>,<span> </span><strong>serial</strong>: Mẫu số và ký hiệu hóa đơn (VNPT sẽ tạo pattern, serial mẫu hỗ trợ cho việc tích hợp kiểm thử ban đầu; sau đó sẽ chỉnh lại theo pattern và serial mà khách hàng đã đăng ký với cục thuế).</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="text-align: left"><span></span><strong>Phương thức tích hợp</strong></p>
<p style="font-weight: 400;text-align: left">-    <span> </span>Giao thức trao đổi thông tin giữa phần mềm và hệ thống HĐĐT: Thông qua cuộc gọi hàm webservice.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><span style="font-size: 14pt"><strong>Mô tả đầu hàm</strong></span></p>
<h1 style="font-weight: 300;text-align: left"><span>1.  </span>Cập nhật dữ liệu khách hàng</h1>
<p style="font-weight: 400;text-align: left">Int<span> </span><strong>UpdateCus<span> </span></strong>(string xmlCusData, string username, string pass, int convert)</p>
<h2 style="font-weight: 300;text-align: left">Mô tả</h2>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>xmlCusData</strong>: String XML dữ liệu khách hàng</li>
<li style="font-weight: 400"><span></span><strong>username/pass</strong>: Tài khoản cung cấp cho nhân viên có quyền để gọi service</li>
<li style="font-weight: 400"><span></span><strong>convert:<span> </span></strong>Mặc định là 0, 0 – Không cần convert từ TCVN3 sang Unicode. 1- Cần convert từ TCVN3 sang Unicode</li>
<li style="font-weight: 400"><span></span><strong>Trả về</strong>: giá trị Int thông báo kết quả/Lỗi gặp phải</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">-1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left">hoặc không có quyền</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">-2</p>
<p style="font-weight: 400;text-align: left">Không import được</p>
<p style="font-weight: 400;text-align: left">kháchhàng vào db</p>
<p style="font-weight: 400;text-align: left">Có rollback db</p>
<p style="font-weight: 400;text-align: left">-3</p>
<p style="font-weight: 400;text-align: left">Dữ liệu xml đầu vào không</p>
<p style="font-weight: 400;text-align: left">đúng quy định</p>
<p style="font-weight: 400;text-align: left">Chỉ cần 1 customer trong chuỗi xml không hợp lệ, không thực hiện update trên tất cả dữ liệu đưa vào</p>
<p style="font-weight: 400;text-align: left">-5</p>
<p style="font-weight: 400;text-align: left">Có khách hàng đã tồn tại</p>
<p style="font-weight: 400;text-align: left">Có rollback db</p>
<p style="font-weight: 400;text-align: left">N</p>
<p style="font-weight: 400;text-align: left">Số lượng khách hàngã đ</p>
<p style="font-weight: 400;text-align: left">import và update</p>
<p style="font-weight: 400;text-align: left">N&gt;0, N là kiểu integer</p>
<h2 style="font-weight: 300;text-align: left">Cấu trúc của xmlCusData (các trường * là bắt buộc):</h2>
<p style="font-weight: 400;text-align: left">&lt;Customers&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Customer&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Name&gt;<strong>Tên khách hàng</strong>*&lt;/Name&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Code&gt;<strong><u>Mã khách hàng</u></strong><u>*&lt;/</u>Code&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;TaxCode&gt;<strong>Mã số thuế (bắt buộc với khách hàng là doanh nghiệp)</strong>&lt;/TaxCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Address&gt;Địa chỉ thanh toán*&lt;/Address&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;BankAccountName&gt;<strong>Tên tài khoản ngân hàng</strong>&lt;/BankAccountName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;BankName&gt;<strong>Tên ngân hàng</strong>&lt;/BankName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;BankNumber&gt;<strong>Số tài khoản</strong>&lt;/BankNumber&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Email&gt;<strong>Email</strong>*&lt;/Email&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Fax&gt;<strong>Số fax</strong>&lt;/Fax&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Phone&gt;<strong>Điện thoại</strong>&lt;/Phone&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ContactPerson&gt;<strong>Liên hệ</strong>&lt;/ContactPerson&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;RepresentPerson&gt;<strong>Người đại diện</strong>&lt;/RepresentPerson&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusType&gt;<strong>Loại khách hàng (1: Doanh nghiệp/0: Cá nhân)</strong>*&lt;/CusType&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Customer&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Customer&gt;...&lt;/Customer&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Customers&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<h1 style="font-weight: 300;text-align: left">2. <span> </span>Gán chứng thư cho khách hàng</h1>
<p style="font-weight: 400;text-align: left">Int<span> </span><strong>setCusCert</strong>(string certSerial, string certString, string cusCode, string username, string pass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả</u></h2>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>certSerial</strong>: chuỗi serial của chứng thư cần gán</li>
<li style="font-weight: 400"><span></span><strong>certString</strong>: chuỗi chứng thư cần gán(base64)</li>
<li style="font-weight: 400"><span></span><strong>cusCode</strong>: mã khách hàng</li>
<li style="font-weight: 400"><span></span><strong>username/pass</strong>: Tài khoản cung cấp cho nhân viên có quyền để gọi service</li>
<li style="font-weight: 400"><span></span><strong>Trả về</strong>: giá trị Int thông báo kết quả/Lỗi gặp phải</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">-1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left">hoặc không có quyền</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">-2</p>
<p style="font-weight: 400;text-align: left">Chuỗi certString không hợp lệ hoặc không khớp với</p>
<p style="font-weight: 400;text-align: left">certSerrial</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">-3</p>
<p style="font-weight: 400;text-align: left">Không <span> </span>tồn <span> </span>tại <span> </span>khách<span> </span> hàng</p>
<p style="font-weight: 400;text-align: left">tương ứng với cusCode, hoặc khách <span> </span>hàng ko <span> </span>phải là</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">đơn vị kế toán</p>
<p style="font-weight: 400;text-align: left">-5</p>
<p style="font-weight: 400;text-align: left">Không update được cert cho</p>
<p style="font-weight: 400;text-align: left">khách hàng</p>
<p style="font-weight: 400;text-align: left">-7</p>
<p style="font-weight: 400;text-align: left">Không tồn tại doanh nghiệp</p>
<p style="font-weight: 400;text-align: left">tương ứng với tài khoản</p>
<p style="font-weight: 400;text-align: left">1</p>
<p style="font-weight: 400;text-align: left">Gán cert thành công</p>
<h1 style="font-weight: 300;text-align: left">3. <span> </span>Phát hành hóa đơn</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>ImportAndPublishInv</strong>(string Account, string ACpass, string xmlInvData, string username, string pass, string pattern, string serial, int convert).</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>Account/ACPass :<span> </span></strong>Tài khoản được cấp phát cho nhân viên gọi lệnh phát hành hóa đơn</li>
<li style="font-weight: 400"><span></span><strong>username/pass</strong>: Tài khoản được cấp phát cho khách hàng để gọi service.</li>
<li style="font-weight: 400"><span></span><strong>xmlInvData</strong>: String XML dữ liệu hóa đơn</li>
<li style="font-weight: 400"><span></span><strong>convert:<span> </span></strong>Mặc định là 0, 0 – Không cần convert từ TCVN3 sang Unicode. 1- Cần convert từ TCVN3 sang Unicode</li>
<li style="font-weight: 400"><span></span><strong>pattern</strong>,<span> </span><strong>serial</strong>: mẫu số và ký hiệu hóa đơn.</li>
<li style="font-weight: 400"><span></span><strong>Trả về</strong>: String kết quả</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left">hoặc không có quyền</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR</p>
<p style="font-weight: 400;text-align: left">Dữ liệu xml đầu vào</p>
<p style="font-weight: 400;text-align: left">không đúng quy định</p>
<p style="font-weight: 400;text-align: left">Chỉ cần 1 invoice trong chuỗi xml không hợp lệ, không thực hiện phát hành trên tất cả dữ liệu đưa vào</p>
<p style="font-weight: 400;text-align: left">ERR:5</p>
<p style="font-weight: 400;text-align: left">Không phát hành được</p>
<p style="font-weight: 400;text-align: left">DB roll back</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không đủ số hóa đơn</p>
<p style="font-weight: 400;text-align: left">cho lô phát hành</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:10</p>
<p style="font-weight: 400;text-align: left">Lô có số hóa đơn vượt</p>
<p style="font-weight: 400;text-align: left">quá max cho phép</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:20</p>
<p style="font-weight: 400;text-align: left">Pattern và serial không phù hợp, hoặc không tồn tại <span> </span>hóa <span> </span>đơn<span> </span>ãđđăng <span> </span>kí có sử dụng Pattern và serial truyền vào</p>
<p style="font-weight: 400;text-align: left">Chỉ chấp nhận đồng thời nhập cả Pattern và serial hoặc đồng thời để trống cả pattern và serial      </p>
<p style="font-weight: 400;text-align: left">OKattern;serial1- key1_num1,key2_num12,key3_num3…</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">(Ví dụ: OK:01GTKT3/001;AA/12E-</p>
<p style="font-weight: 400;text-align: left">key1_1,key2_2,key3_3,key4_4,key5_5)</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>OK<span> </span><span> </span>đã<span> </span>phát<span> </span>hành  <span> </span> hóa  <span> </span> đơn thành công</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>Pattern  <span> </span><span> </span>Mẫu<span> </span>số của <span> </span>các hóa đơn đã phát hành</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>Serial1<span> </span><span> </span>serial<span> </span>của dãy các hóa đơn phát hành</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>num1, <span> </span>num2… là các số hóa đơn</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>key1,key2… là khóa để nhận biết hóa đơn phát hành cho khách hàng nào(lấy từ đầu vào)</p>
<p style="font-weight: 400;text-align: left">-    <span> </span>Cách     <span> </span>hóa</p>
<p style="font-weight: 400;text-align: left">đơn         <span> </span>có</p>
<p style="font-weight: 400;text-align: left">serial  <span> </span>khác nhau   <span> </span>phân</p>
<p style="font-weight: 400;text-align: left">cách      <span> </span>bởi dấu “;”</p>
<p style="font-weight: 400;text-align: left">- Các số hóa đơn phân cách bởi “,”</p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Note:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left">Tiền tố ERR<span> </span><span> </span>có lỗi khi thực hiện hàm</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">Tiền tố OK<span> </span><span> </span>thực hiện phát hành hóa đơn thành công</p>
<p style="font-weight: 400;text-align: left">Chỉ chấp nhận phát hành lô tối đa 5000 hóa đơn.</p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Cấu trúc của xmlInvData (các trường * là bắt buộc):</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left">&lt;Invoices&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Inv&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;key&gt;Giá trị khóa để phân biệt hóa đơn xuất cho khách hàng nào&lt;/key&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Invoice&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusCode&gt;<strong>Mã khách hàng</strong>*&lt;/CusCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusName&gt;<strong>Tên khách hàng</strong>*&lt;/CusName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusAddress&gt;<strong>Địa chỉ khách hàng</strong>*&lt;/CusAddress&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusPhone&gt;<strong>Điện thoại khách hàng</strong>&lt;/CusPhone&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusTaxCode&gt;<strong>Mã số thuế KH (Bắt buộc với KH là Doanh nghiệp)</strong>&lt;/CusTaxCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;PaymentMethod&gt;Phương thức thanh toán&lt;/PaymentMethod&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;KindOfService&gt;<strong>Tháng hóa đơn</strong>&lt;/KindOfService&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Products&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Product&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdName&gt;<strong>Tên sản phẩm</strong>*&lt;/ProdName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdUnit&gt;<strong>Đơn vị tính</strong>&lt;/ProdUnit&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdQuantity&gt;<strong>Số lượng</strong>&lt;/ProdQuantity&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdPrice&gt;<strong>Đơn giá</strong>&lt;/ProdPrice&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;<strong>Tổng tiền</strong>*&lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Product&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Products&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Total&gt;<strong>Tổng tiền trước thuế</strong>*&lt;/Total&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;DiscountAmount&gt;<strong>Tiền giảm trừ</strong>&lt;/ DiscountAmount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;VATRate&gt;<strong>Thuế GTGT</strong>*&lt;/VATRate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;VATAmount&gt;<strong>Tiền thuế GTGT</strong>*&lt;/VATAmount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;<strong>Tổng tiền</strong>*&lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;AmountInWords&gt;<strong>Số tiền viết bằng chữ</strong>*&lt;/AmountInWords&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Extra&gt;<strong>Các nội dung mở rộng</strong>&lt;/Extra&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ArisingDate&gt;<strong>Ngày phát hành hóa đơn</strong>&lt;/ArisingDate&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;PaymentStatus&gt;<strong>Trạng thái thanh toán hóa đơn ban đầu(0,1 – chưa thanh toán, đã thanh toán)</strong>&lt;/PaymentStatus&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ResourceCode&gt;<strong>Mã vùng dữ liệu</strong>&lt;/ResourceCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Invoice&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Inv&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Inv&gt;...&lt;/Inv&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Invoices&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<h1 style="font-weight: 300;text-align: left">4. <span> </span>Gạch nợ hóa đơn theo Fkey</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>confirmPaymentFkey</strong>(string lstFkey, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>lstFkey:<span> </span></strong>Chuỗi Fkey xác định hóa đơn cần lấy(các Fkey phân biệt nhau bằng “_&amp;rdquo</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>VD:<span> </span></strong>012013_022013_032013</p>
<p style="font-weight: 400;text-align: left"> </p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left">tương ứng chuỗi đưa vào</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">Không gạch nợ được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:13</p>
<p style="font-weight: 400;text-align: left">Hóa <span> </span>đơn<span> </span>ãđ<span> </span>được gạch</p>
<p style="font-weight: 400;text-align: left">nợ</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">“OK”</p>
<p style="font-weight: 400;text-align: left">Đánh dấu hóa đơn trong list đã được gạch nợ</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="5">
<li style="font-weight: 400"><span></span><strong>Thanh toán, Gạch nợ hóa đơn</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>confirmPayment</strong>(string lstInvToken, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>lstInvToken:    <span> </span></strong>Chuỗi   <span> </span>token   <span> </span>xác   <span> </span>định   <span> </span>hóa   <span> </span>đơn                         <span> </span>cần       <span> </span>lấy(theo         <span> </span>cấu     <span> </span>trúc patternt;serial;sốhóađơn)</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>VD:<span> </span></strong>01GTKT2/001;AA/13E;10_01GTKT2/001;AA/13E;11</p>
<p style="font-weight: 400;text-align: left"> </p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left">tương ứng chuỗi đưa vào</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">Không gạch nợ được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:13</p>
<p style="font-weight: 400;text-align: left">Hóa <span> </span>đơn<span> đã </span>được gạch nợ</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">“OK”</p>
<p style="font-weight: 400;text-align: left">Đánh dấu hóa đơn trong list đã được gạch nợ</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="6">
<li style="font-weight: 400"><span></span><strong>Bỏ gạch nợ hóa đơn theo FKey</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>UnconfirmPaymentFkey</strong>(string<span> </span>lstFkey, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>lstFkey:<span> </span></strong>Chuỗi Fkey xác định hóa đơn cần lấy(các Fkey phân biệt nhau bằng “_&amp;rdquo</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>VD:<span> </span></strong>012013_022013_032013</p>
<p style="font-weight: 400;text-align: left"> </p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left">tương ứng chuỗi đưa vào</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">Không bỏ gạch nợ được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:13</p>
<p style="font-weight: 400;text-align: left">Hóa  <span> </span>đơn ã<span> </span>đđư            <span> </span>ợc bỏ</p>
<p style="font-weight: 400;text-align: left">gạch nợ</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">“OK”</p>
<p style="font-weight: 400;text-align: left">Đánh dấu hóa đơn trong list đã bỏ gạch nợ</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="7">
<li style="font-weight: 400"><span></span><strong>Điều chỉnh hóa đơn</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>adjustInv<span> </span></strong>(string Account, string ACpass, string xmlInvData, string username, string password, string fkey, int convert).</p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>Account/ACPass :<span> </span></strong>Tài khoản được cấp phát cho nhân viên gọi lệnh phát hành hóa</li>
</ul>
<p style="font-weight: 400;text-align: left">đơn</p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>Username/pass</strong>: Tài khoản được cấp phát cho khách hàng để gọi service.</li>
<li style="font-weight: 400"><span></span><strong>xmlInvData</strong>: String XML dữ liệu hóa đơn cũ và hóa đơn điều chỉnh</li>
<li style="font-weight: 400"><span></span><strong>fkey:<span> </span></strong>Chuỗi key xác định hóa đơn cần điều chỉnh</li>
<li style="font-weight: 400"><span></span><strong>Convert</strong>: Mặc định là 0, 0 – Không cần convert từ TCVN3 sang Unicode. 1- Cần convert từ TCVN3 sang Unicode</li>
<li style="font-weight: 400"><span></span><strong>Trả về</strong>: String kết quả</li>
</ul>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai hoặc không có</p>
<p style="font-weight: 400;text-align: left">quyền</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:2</p>
<p style="font-weight: 400;text-align: left">Hóa đơn cần điều</p>
<p style="font-weight: 400;text-align: left">chỉnh không tồn tại</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR</p>
<p style="font-weight: 400;text-align: left">Dữ liệu xml đầu vào</p>
<p style="font-weight: 400;text-align: left">không đúng quy định</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:5</p>
<p style="font-weight: 400;text-align: left">Không phát hành</p>
<p style="font-weight: 400;text-align: left">được hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Dải hóa đơn cũ đã hết</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng</p>
<p style="font-weight: 400;text-align: left">cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:8</p>
<p style="font-weight: 400;text-align: left">Hóa đơn cần điều chỉnh đã bị thay thế. Không thể điều chỉnh</p>
<p style="font-weight: 400;text-align: left">được nữa.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:9</p>
<p style="font-weight: 400;text-align: left">Trạng thái hóa đơn không được điều</p>
<p style="font-weight: 400;text-align: left">chỉnh</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">OK: pattern;serial;key_invNumber (Ví dụ:</p>
<p style="font-weight: 400;text-align: left">OK:01GTKT3/001;AA/12E;key_0000002)</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>OK<span> </span><span> </span>đã<span> </span>phát<span> </span>hành hóa đơn<span> </span>thành công</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>Patter                     <span> </span>Mẫu<span> </span>số của hóa đơn điều chỉnh</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>Serial<span> </span></p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">serial của hóa đơn điều chỉnh</p>
<p style="font-weight: 400;text-align: left">-      <span> </span>invNumber: số hóa đơn điều chỉnh</p>
<p style="font-weight: 400;text-align: left">-      <span> </span>key: khóa để xác định hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Note:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left">Tiền tố ERR<span> </span><span> </span>có lỗi khi thực hiện hàm</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">Tiền tố OK<span> </span><span> </span>thực hiện điều chỉnh hóa đơn thành công</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Cấu trúc của xmlInvData (các trường * là bắt buộc):</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left">&lt;AdjustInv&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;key&gt;<strong>Khóa cho hóa đơn mới</strong>&lt;/key &gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusCode&gt;<strong>Mã khách hàng</strong>*&lt;/CusCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusName&gt;<strong>Tên khách hàng</strong>*&lt;/CusName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusAddress&gt;<strong>Địa chỉ khách hàng</strong>*&lt;/CusAddress&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusPhone&gt;<strong>Điện thoại khách hàng</strong>&lt;/CusPhone&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusTaxCode&gt;<strong>Mã số thuế KH (Bắt buộc với KH là Doanh nghiệp)</strong>&lt;/CusTaxCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;PaymentMethod&gt;<strong>Phương thức thanh toán</strong>&lt;/PaymentMethod&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;KindOfService&gt;<strong>Tháng hóa đơn</strong>&lt;/KindOfService&gt;</p>
<h2 style="font-weight: 300;text-align: left">&lt;Type&gt;Loại hóa đơn chỉnh sửa(int-mặc định lấy là 2) 2-Điều chỉnh tăng, 3-Điều chỉnh giảm, 4- Hóa đơn điều chỉnh thông tin&lt;/Type&gt;</h2>
<p style="font-weight: 400;text-align: left">&lt;Products&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Product&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdName&gt;<strong>Tên sản phẩm</strong>*&lt;/ProdName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdUnit&gt;<strong>Đơn vị tính</strong>&lt;/ProdUnit&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdQuantity&gt;<strong>Số lượng</strong>&lt;/ProdQuantity&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdPrice&gt;<strong>Đơn giá</strong>&lt;/ProdPrice&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;<strong>Tổng tiền</strong>*&lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Product&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Products&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Total&gt;<strong>Tổng tiền trước thuế</strong>*&lt;/Total&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;VATRate&gt;<strong>Thuế GTGT</strong>*&lt;/VATRate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;VATAmount&gt;<strong>Tiền thuế GTGT</strong>*&lt;/VATAmount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;<strong>Tổng tiền</strong>*&lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;AmountInWords&gt;<strong>Số tiền viết bằng chữ</strong>*&lt;/AmountInWords&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Extra&gt;<strong>Các nội dung mở rộng</strong>&lt;/Extra&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ArisingDate&gt;<strong>Ngày phát hành hóa đơn</strong>&lt;/ArisingDate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;PaymentStatus&gt;<strong>Trạng thái thanh toán hóa đơn ban đầu(0,1 – chưa thanh toán, đã thanh toán)</strong>&lt;/PaymentStatus&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ResourceCode&gt;<strong>Mã vùng dữ liệu</strong>&lt;/ResourceCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/AdjustInv&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<h1 style="font-weight: 300;text-align: left">8. <span> </span>Thay thế hóa đơn</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>replaceInv<span> </span></strong>(string Account, string ACpass, string<span> </span>xmlInvData, string username, string password, string fkey, int convert).</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả</u></h2>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>Account/ACPass :<span> </span></strong>Tài khoản được cấp phát cho nhân viên gọi lệnh phát hành hóa đơn</li>
<li style="font-weight: 400"><span></span><strong>Username/pass</strong>: Tài khoản được cấp phát cho khách hàng để gọi service.</li>
<li style="font-weight: 400"><span></span><strong>xmlInvData</strong>: String XML dữ liệu hóa đơn cũ và hóa đơn thay thế</li>
<li style="font-weight: 400"><span></span><strong>fkey:<span> </span></strong>Chuỗi key xác định hóa đơn cần thay thế</li>
<li style="font-weight: 400"><span></span><strong>convert</strong>: Mặc định là 0, 0 – Không cần convert từ TCVN3 sang Unicode. 1- Cần convert từ TCVN3 sang Unicode</li>
<li style="font-weight: 400"><span></span><strong>Trả về</strong>: String kết quả</li>
</ul>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập</p>
<p style="font-weight: 400;text-align: left">sai hoặc không có</p>
<p style="font-weight: 400;text-align: left">quyền</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:2</p>
<p style="font-weight: 400;text-align: left">Không tồn tại hóa</p>
<p style="font-weight: 400;text-align: left">đơn cần thay thế</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR</p>
<p style="font-weight: 400;text-align: left">Dữ liệu xml đầu vào</p>
<p style="font-weight: 400;text-align: left">không đúng quy định</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:5</p>
<p style="font-weight: 400;text-align: left">Có lỗi trong quá trình</p>
<p style="font-weight: 400;text-align: left">thay thế hóa đơn</p>
<p style="font-weight: 400;text-align: left">DB roll</p>
<p style="font-weight: 400;text-align: left">back</p>
<p> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Dải hóa đơn cũ đã hết</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng</p>
<p style="font-weight: 400;text-align: left">cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:8</p>
<p style="font-weight: 400;text-align: left">Hóa đơn đã được thay</p>
<p style="font-weight: 400;text-align: left">thế rồi. Không thể thay thế nữa.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:9</p>
<p style="font-weight: 400;text-align: left">Trạng thái hóa đơn ko</p>
<p style="font-weight: 400;text-align: left">được thay thế</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">OK: pattern;serial;key_invNumber (Ví dụ:</p>
<p style="font-weight: 400;text-align: left">OK:01GTKT3/001;AA/12E;key_0000001)</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>OK<span> </span><span> </span>đã<span> </span>thay<span> </span>thế hóa đơn thành công</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>Patterm<span> </span><span> </span>Mẫu số của<span> </span>hóa đơn thay<span> </span>thế</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>Serial<span> </span><span> </span>serial của hóa<span> </span>đơn thay thế</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>invNumber:số hóa đơn thay thế cho hóa đơn cũ</p>
<p style="font-weight: 400;text-align: left">-  <span> </span>key: khóa xác định hóa đơn mới</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Note:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left">Tiền tố ERR<span> </span><span> </span>có lỗi khi thực hiện hàm</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">Tiền tố OK<span> </span><span> </span>thực hiện thay thế hóa đơn thành công</p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Cấu trúc của xmlInvData (các trường * là bắt buộc):</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left">&lt; ReplaceInv&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;key&gt;<strong>Khóa cho hóa đơn mới</strong>&lt;/key&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusCode&gt;<strong>Mã khách hàng</strong>*&lt;/CusCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusName&gt;<strong>Tên khách hàng</strong>*&lt;/CusName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusAddress&gt;<strong>Địa chỉ khách hàng</strong>*&lt;/CusAddress&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusPhone&gt;<strong>Điện thoại khách hàng</strong>&lt;/CusPhone&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;CusTaxCode&gt;<strong>Mã số thuế KH (Bắt buộc với KH là Doanh nghiệp)</strong>&lt;/CusTaxCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;PaymentMethod&gt;<strong>Phương thức thanh toán</strong>&lt;/PaymentMethod&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;KindOfService&gt;<strong>Tháng hóa đơn</strong>&lt;/KindOfService&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Products&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Product&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdName&gt;<strong>Tên sản phẩm</strong>*&lt;/ProdName&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdUnit&gt;<strong>Đơn vị tính</strong>&lt;/ProdUnit&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdQuantity&gt;<strong>Số lượng</strong>&lt;/ProdQuantity&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ProdPrice&gt;<strong>Đơn giá</strong>&lt;/ProdPrice&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;<strong>Tổng tiền</strong>*&lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Product&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/Products&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Total&gt;<strong>Tổng tiền trước thuế</strong>*&lt;/Total&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;VATRate&gt;<strong>Thuế GTGT</strong>*&lt;/VATRate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;VATAmount&gt;<strong>Tiền thuế GTGT</strong>*&lt;/VATAmount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;<strong>Tổng tiền</strong>*&lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;AmountInWords&gt;<strong>Số tiền viết bằng chữ</strong>*&lt;/AmountInWords&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Extra&gt;<strong>Các nội dung mở rộng</strong>&lt;/Extra&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ArisingDate&gt;<strong>Ngày phát hành hóa đơn</strong>&lt;/ArisingDate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;PaymentStatus&gt;<strong>Trạng thái thanh toán hóa đơn ban đầu(0,1 – chưa thanh toán, đã thanh toán)</strong>&lt;/PaymentStatus&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;ResourceCode&gt;<strong>Mã vùng dữ liệu</strong>&lt;/ResourceCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;/ ReplaceInv&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<h1 style="font-weight: 300;text-align: left">9. <span> </span>Lấy hóa đơn theo khách hàng</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>listInvByCus</strong>(string cusCode, string fromDate, string toDate, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>cusCode</strong>*: Mã đơn vị cần lấy hóa đơn về</li>
<li style="font-weight: 400"><span></span><strong>fromDate:<span> </span></strong>ngày bắt đầu tìm kiếm. String theo định dạng dd/MM/yyyy (20/05/2013). Nếu truyền vào null tìm kiếm theo tất cả các ngày</li>
<li style="font-weight: 400"><span></span><strong>toDate:<span> </span></strong>ngày kết thúc tìm kiếm. String theo định dạng dd/MM/yyyy. Nếu truyền vào null tìm kiếm theo tất cả các ngày</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>account/password để gọi web services. Do Hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp.</p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong><u>Trả về:</u></strong><span> </span>string kết quả cụ thể được mô tả dưới đây</li>
</ul>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR</p>
<p style="font-weight: 400;text-align: left">Không tồn tài khách hàng tương ứng với cusCode</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:4</p>
<p style="font-weight: 400;text-align: left">Công ty chưa được đăng kí mẫu hóa đơn nào</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">OK:</p>
<p style="font-weight: 400;text-align: left">chuỗi_xml_trả_về</p>
<p style="font-weight: 400;text-align: left">thông tin các hóa đơn đã phát hành, đã sửa đổi, đã thay thế, đã sử dụng của công ty, cấu trúc dưới dạng chuỗi xml. Mỗi thẻ &lt;<strong>Inv</strong>&gt; tương ứng với một hóa đơn</p>
<p style="font-weight: 400;text-align: left">Thẻ &lt;status&gt; chứa trạng thái hóa đơn: 1- hóa đơn<span> </span>đã<span> </span>phát hành, 3 - <span> </span>hóa đơn bị thay thế, 4- hóa đơn bị điều chỉnh</p>
<p style="font-weight: 400;text-align: left">Trả về một string xml</p>
<h2 style="font-weight: 300;text-align: left"><u>Cấu trúc của chuỗi xml trả về</u></h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;Data&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Item &gt; //tương ứng với 1 hóa đơn</p>
<p style="font-weight: 400;text-align: left">&lt;index&gt;Tháng xuất hóa đơn &lt;/index&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;fkey&gt;Fkey để xác định hóa đơn &lt;/fkey &gt;</p>
<p style="font-weight: 400;text-align: left">&lt;name&gt;Tên hóa đơn&lt;/name&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;publishDate&gt;Ngày phát hành hóa đơn&lt;/publishDate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;signStatus&gt;Trạng thái kí khách hàng&lt;/signStatus&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;pattern&gt;Mẫu hóa đơn&lt;pattern&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;serial&gt;Serial hóa đơn&lt;/serial&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;invNum&gt;Số hóa đơn&lt;/invNum&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;payment&gt;Trạng thái thanh toán (0/1)&lt;/payment&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Amount&gt;Tổng tiền của hóa đơn &lt;/Amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;status&gt;Trạng thái hóa đơn(1,3,4)&lt;/status &gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;/Item &gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;Item &gt;&lt;/Item &gt;….Hóa đơn khác</p>
<p style="font-weight: 400;text-align: left">&lt;/Data&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<h1 style="font-weight: 300;text-align: left">10. <span> </span>Hàm tìm hóa đơn theo Fkey</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>listInvByCusFkey</strong>(string fkey, string fromDate, string toDate, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey</strong>*: Mã xác định hóa đơn</li>
<li style="font-weight: 400"><span></span><strong>fromDate:<span> </span></strong>ngày bắt đầu tìm kiếm. String theo định dạng dd/MM/yyyy (20/05/2013). Nếu truyền vào null tìm kiếm theo tất cả các ngày</li>
<li style="font-weight: 400"><span></span><strong>toDate:<span> </span></strong>ngày kết thúc tìm kiếm. String theo định dạng dd/MM/yyyy. Nếu truyền vào null tìm kiếm theo tất cả các ngày</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>account/password để gọi web services. Do Hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp.</p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong><u>Trả về:</u></strong><span> </span>string kết quả cụ thể được mô tả dưới đây</li>
</ul>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:4</p>
<p style="font-weight: 400;text-align: left">Công ty chưa được đăng kí mẫu hóa đơn nào</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">OK:</p>
<p style="font-weight: 400;text-align: left">chuỗi_xml_trả_về</p>
<p style="font-weight: 400;text-align: left">thông tin các hóa đơn đã phát hành, đã sửa đổi, đã thay thế, đã sử dụng của công ty, cấu trúc dưới dạng chuỗi xml. Mỗi thẻ &lt;<strong>Inv</strong>&gt; tương ứng với một hóa đơn</p>
<p style="font-weight: 400;text-align: left">Thẻ &lt;status&gt; chứa trạng thái hóa đơn: 1- hóa đơn<span> </span>đã<span> </span>phát hành, 3 - <span> </span>hóa đơn bị thay thế, 4- hóa đơn bị điều chỉnh</p>
<p style="font-weight: 400;text-align: left">Trả về một string xml</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<h2 style="font-weight: 300;text-align: left"><u>Cấu trúc của chuỗi xml trả về</u></h2>
<p style="font-weight: 400;text-align: left">&lt;Data&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;Item &gt; //tương ứng với 1 hóa đơn</p>
<p style="font-weight: 400;text-align: left">&lt;index&gt;Tháng xuất hóa đơn &lt;/index&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;cusCode&gt;Tên hóa đơn&lt;/cusCode&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;name&gt;Tên hóa đơn&lt;/name&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;publishDate&gt;Ngày phát hành hóa đơn&lt;/publishDate&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;signStatus&gt;Trạng thái kí khách hàng&lt;/signStatus&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;pattern&gt;Mẫu hóa đơn&lt;pattern&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;serial&gt;Serial hóa đơn&lt;/serial&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;invNum&gt;Số hóa đơn&lt;/invNum&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;payment&gt;trạng thái thanh toán hóa đơn (0/1)&lt;/payment&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;amount&gt;Tổng tiền của hóa đơn &lt;/amount&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;status&gt;Trạng thái hóa đơn(1,3,4)&lt;/status &gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;/Item &gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;Item &gt;&lt;/Item &gt;….Hóa đơn khác</p>
<p style="font-weight: 400;text-align: left">&lt;/Data&gt;</p>
<p style="font-weight: 400;text-align: left"> </p>
<h1 style="font-weight: 300;text-align: left">11. <span> </span>Lấy thông tin chi tiết hóa đơn</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>getInvView</strong>(string invToken, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>invToken :<span> </span></strong>Chuỗi token xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống</li>
</ul>
<p style="font-weight: 400;text-align: left">HĐĐT cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:4</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy Pattern</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:11</p>
<p style="font-weight: 400;text-align: left">Hóa đơn chưa thanh toán</p>
<p style="font-weight: 400;text-align: left">nên không xem được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_hml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi hml tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng html</p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ol style="text-align: left" start="12">
<li style="font-weight: 400"><span></span><strong>Lấy thông tin chi tiết hóa đơn theo Fkey</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>getInvViewFkey</strong>(string fkey, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey :<span> </span></strong>Chuỗi key xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống</li>
</ul>
<p style="font-weight: 400;text-align: left">HĐĐT cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:11</p>
<p style="font-weight: 400;text-align: left">Hóa đơn chưa thanh toán</p>
<p style="font-weight: 400;text-align: left">nên không xem được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:</p>
<p style="font-weight: 400;text-align: left">Lỗi khác</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_hml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi hml tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng html</p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="13">
<li style="font-weight: 400"><span></span><strong>Chuyển đổi chứng minh nguồn gốc xuất xứ</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String   <span> </span><strong>convertForVerify</strong>(string    <span> </span>invToken,   <span> </span>string   <span> </span>userName,             <span> </span>string                                   <span> </span>userPass)</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong><u>Mô tả:</u><span> </span></strong>Chuyển đổi chứng minh nguồn gốc xuất xứ cho hóa đơn. Mỗi hóa đơn chỉ được chuyển đổi 1 lần duy nhất</p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>invToken :<span> </span></strong>Chuỗi token xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy</p>
<p style="font-weight: 400;text-align: left">company tương ứng cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:8</p>
<p style="font-weight: 400;text-align: left">Hóa đơn đã đư ợc chuyển</p>
<p style="font-weight: 400;text-align: left">đổi</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_hml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi hml tương ứng với hóa đơn đã chuyển đổi</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng html</p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="14">
<li style="font-weight: 400"><span></span><strong>Chuyển đổi chứng minh nguồn gốc xuất xứ theo Fkey</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String   <span> </span><strong>convertForVerifyFkey</strong>(string   <span> </span>fkey,   <span> </span>string    <span> </span>userName,             <span> </span>string                                           <span> </span>userPass)</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong><u>Mô tả:</u><span> </span></strong>Chuyển đổi chứng minh nguồn gốc xuất xứ cho hóa đơn. Mỗi hóa đơn chỉ được chuyển đổi 1 lần duy nhất</p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey :<span> </span></strong>Chuỗi key xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:8</p>
<p style="font-weight: 400;text-align: left">Hóa đơn đã đư ợc chuyển</p>
<p style="font-weight: 400;text-align: left">đổi</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_hml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi hml tương<span> </span>ứng <span> </span>với         <span> </span>hóa  <span> </span>đơnã  <span> </span>đ chuyển đổi</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng html</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ol style="text-align: left" start="15">
<li style="font-weight: 400"><span></span><strong>Download hóa đơn</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>downloadInv</strong>(string invToken, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>invToken :<span> </span></strong>Chuỗi token xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:4</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy Pattern</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy</p>
<p style="font-weight: 400;text-align: left">company tương ứng cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:11</p>
<p style="font-weight: 400;text-align: left">Hóa đơn chưa thanh toán</p>
<p style="font-weight: 400;text-align: left">nên không xem được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_Xml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi Xml tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng string Xml</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ol style="text-align: left" start="16">
<li style="font-weight: 400"><span></span><strong>Download hóa đơn theo Fkey</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>downloadInvFkey</strong>(string fkey, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"> </p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey :<span> </span></strong>Chuỗi key xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:11</p>
<p style="font-weight: 400;text-align: left">Hóa đơn chưa thanh toán</p>
<p style="font-weight: 400;text-align: left">nên không xem được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:</p>
<p style="font-weight: 400;text-align: left">Lỗi khác</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_Xml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi Xml tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng string Xml</p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="17">
<li style="font-weight: 400"><span></span><strong>Download hóa đơn theo Fkey (Hóa đơn không<span> </span>cần thanh toán)<span> </span></strong>String<span> </span><strong>downloadInvFkeyNoPay</strong>(string fkey, string userName, string userPass)<u><span> </span><strong>Mô tả:</strong></u></li>
</ol>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey :<span> </span></strong>Chuỗi key xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:</p>
<p style="font-weight: 400;text-align: left">Lỗi khác</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_Xml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi Xml tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng string Xml</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="18">
<li style="font-weight: 400"><span></span><strong>Download hóa đơn định dạng PDF theo Fkey</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>downloadInvPDFFkey</strong>(string fkey, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey :<span> </span></strong>Chuỗi key xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:11</p>
<p style="font-weight: 400;text-align: left">Hóa đơn chưa thanh toán</p>
<p style="font-weight: 400;text-align: left">nên không xem được</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:</p>
<p style="font-weight: 400;text-align: left">Lỗi khác</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_Pdf_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi Pdf tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng string Pdf</p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="19">
<li style="font-weight: 400"><span></span><strong>Download hóa đơn định dạng PDF theo Fkey (Hóa đơn không cần thanh toán)</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>downloadInvPDFFkeyNoPay</strong>(string fkey, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>fkey :<span> </span></strong>Chuỗi key xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy</p>
<p style="font-weight: 400;text-align: left">company tương ứng cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:</p>
<p style="font-weight: 400;text-align: left">Lỗi khác</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi_Pdf_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi Pdf tương ứng với hóa đơn</p>
<p style="font-weight: 400;text-align: left">Trả về một hóa đơn dưới dạng string Pdf</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ol style="text-align: left" start="20">
<li style="font-weight: 400"><span></span><strong>Lấy giá trị hash cho việc<span> </span>kí<span> </span>hóa đơn</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>getDigest<span> </span></strong>(string cusCode, string invToken, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>cusCode:<span> </span></strong>mã khách hàng</li>
<li style="font-weight: 400"><span></span><strong>invToken :<span> </span></strong>Chuỗi token xác định hóa đơn cần lấy</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR</p>
<p style="font-weight: 400;text-align: left">Không tồn tại khách</p>
<p style="font-weight: 400;text-align: left">hàng tương ứng với cusCode</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:5</p>
<p style="font-weight: 400;text-align: left">Chứng thư không đúng</p>
<p style="font-weight: 400;text-align: left">với khách hàng</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy</p>
<p style="font-weight: 400;text-align: left">company tương ứng cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi xml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi xml theo cấu trúc</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left"><strong><u>Cấu trúc của chuỗi xml trả về</u></strong></p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">&lt;Data&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;text&gt;giá trị base64(hash) của hóa đơn&lt;/text&gt;</p>
<p style="font-weight: 400;text-align: left">&lt;xmlData&gt;rỗng&lt;/xmlData</p>
<p style="font-weight: 400;text-align: left">&lt;/Data&gt;</p>
<h1 style="font-weight: 300;text-align: left">21. <span> </span>Cập<span> </span>nhật trạng thái<span> </span>kí<span> </span>hóa đơn</h1>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>ConfirmSiganture<span> </span></strong>(string signValue, string invToken, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>signValue:<span> </span></strong>giá trị chữ kí</li>
<li style="font-weight: 400"><span></span><strong>invToken :<span> </span></strong>Chuỗi token xác định hóa đơn</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">chuỗi hml_trả_về</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi hml của hóa</p>
<p style="font-weight: 400;text-align: left">đơn đã kí</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="22">
<li style="font-weight: 400"><span></span><strong>Phân phối hóa đơn</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>deliverInv</strong>(string lstInvToken, string userName, string userPass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>lstInvToken:    <span> </span></strong>Chuỗi   <span> </span>token   <span> </span>xác   <span> </span>định   <span> </span>hóa   <span> </span>đơn                         <span> </span>cần       <span> </span>lấy(theo         <span> </span>cấu     <span> </span>trúc patternt;serial;sốhóađơn)</li>
</ul>
<h2 style="font-weight: 300;text-align: left">VD: 01GTKT2/001;AA/13E;10_01GTKT2/001;AA/13E;11</h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:6</p>
<p style="font-weight: 400;text-align: left">Không tìm thấy hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy</p>
<p style="font-weight: 400;text-align: left">company tương ứng cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">“OK”</p>
<p style="font-weight: 400;text-align: left">Đánh dấu hóa đơn trong list đã được phân phối</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ol style="text-align: left" start="23">
<li style="font-weight: 400"><span></span><strong>Báo cáo tình hình sử dụng hóa đơn</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>reportInvUsed</strong>(int year, int quarter, string username, string pass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>year:<span> </span></strong>Năm báo cáo</li>
<li style="font-weight: 400"><span></span><strong>quarter:<span> </span></strong>kì báo cáo</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy company tương ứng cho</p>
<p style="font-weight: 400;text-align: left">user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">Chuỗi xml</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi xml mô tả báo cáo tình hình sử dụng hóa đơn</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<ol style="text-align: left" start="24">
<li style="font-weight: 400"><span></span><strong>Báo cáo bảng<span> </span>kê<span> </span>hàng hóa hàng tháng</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>reportMonth<span> </span></strong>(int year, int month, string username, string pass)</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả:</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>year:<span> </span></strong>Năm báo cáo</li>
<li style="font-weight: 400"><span></span><strong>month:<span> </span></strong>tháng báo cáo</li>
<li style="font-weight: 400"><span></span><strong>userName/userPass</strong>*<strong>:<span> </span></strong>user name/password để gọi webservices (Do hệ thống HĐĐT</li>
</ul>
<p style="font-weight: 400;text-align: left">cung cấp)</p>
<h2 style="font-weight: 300;text-align: left">·      <span> </span>String trả về:</h2>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:7</p>
<p style="font-weight: 400;text-align: left">User name không phù hợp, không tìm thấy</p>
<p style="font-weight: 400;text-align: left">company tương ứng cho user.</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">Chuỗi xml</p>
<p style="font-weight: 400;text-align: left">Trả về chuỗi xml mô tả báo cáo bảng kê hàng hóa</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ol style="text-align: left" start="25">
<li style="font-weight: 400"><span></span><strong>Hủy hóa đơn (không<span> </span>thay thế, điều chỉnh)</strong></li>
</ol>
<p style="font-weight: 400;text-align: left">String<span> </span><strong>cancelInv<span> </span></strong>(string Account, string ACpass, string fkey, string username, string password).</p>
<h2 style="font-weight: 300;text-align: left"><u>Mô tả</u></h2>
<p style="font-weight: 400;text-align: left"><strong> </strong></p>
<ul style="text-align: left">
<li style="font-weight: 400"><span></span><strong>Account/ACPass :<span> </span></strong>Tài khoản được cấp phát cho nhân viên gọi lệnh hủy hóa đơn</li>
<li style="font-weight: 400"><span></span><strong>Username/pass</strong>: Tài khoản được cấp phát cho khách hàng để gọi service.</li>
<li style="font-weight: 400"><span></span><strong>fkey:<span> </span></strong>Chuỗi xác định hóa đơn cần hủy</li>
<li style="font-weight: 400"><span></span><strong>Trả về</strong>: String kết quả</li>
</ul>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left"><strong>Kết quả trả về</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Mô tả</strong></p>
<p style="font-weight: 400;text-align: left"><strong>Ghi chú</strong></p>
<p style="font-weight: 400;text-align: left">ERR:1</p>
<p style="font-weight: 400;text-align: left">Tài khoản đăng nhập sai hoặc không có</p>
<p style="font-weight: 400;text-align: left">quyền</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:2</p>
<p style="font-weight: 400;text-align: left">Không tồn tại hóa đơn cần hủy</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:8</p>
<p style="font-weight: 400;text-align: left">Hóa đơn đã được thay thế rồi, hủy rồi</p>
<p style="font-weight: 400;text-align: left"> </p>
<p style="font-weight: 400;text-align: left">ERR:9</p>
<p style="font-weight: 400;text-align: left">Trạng thái hóa đơn ko được hủy</p>
<p style="font-weight: 400;text-align: left">Tùy thuộc vào</p>
<p style="font-weight: 400;text-align: left">yêu cầu nghiệp vụ</p>
<p style="font-weight: 400;text-align: left">OK:</p>
<p style="font-weight: 400;text-align: left">Hủy thành công</p>
<p> </p>
<div class="rowcreater hidden-xs"><a href="http://oforum.sthink.com.vn/profile/mantm/"><img src="http://www.gravatar.com/avatar/60e30fbcbec54cc0485af0a4b5673b00?s=50&amp;d=identicon&amp;r=PG" alt="mantm" /></a></div>
<div class="rowdetails clearfix">
<div class="postdetails">
<div class="postbodytop"><a class="postmember-003f5cd0-c88b-4a6d-b82f-a9b6004aba57" href="http://oforum.sthink.com.vn/profile/mantm/">mantm</a><span> </span>đăng này 14 Tháng Mười Hai 2018<span> </span><span class="hidden-xs">- Chỉnh sửa lần cuối 14 Tháng Mười Hai 2018</span></div>
<div id="postcontent-003f5cd0-c88b-4a6d-b82f-a9b6004aba57" class="postcontent">
<p>Tài liệu hóa đơn điện tử VNPT của công ty Đại Vạn Phát</p>
84
</div>
</div>
<p> </p>
</div>]]></content:encoded>
						                            <category domain="http://forum.sthink.com.vn/forum/ebook-ve-lap-trinh/">Ebook về lập trình</category>                        <dc:creator>hongltt</dc:creator>
                        <guid isPermaLink="true">https://forum.sthink.com.vn/forum/ebook-ve-lap-trinh/bang-ham-api-ket-noi-hoa-don-dien-tu-vnpt/#post-45</guid>
                    </item>
							        </channel>
        </rss>
		