diff --git a/NX.ERP.Model/Request/ApVouch.cs b/NX.ERP.Model/Request/ApVouch.cs index abdd589..e104213 100644 --- a/NX.ERP.Model/Request/ApVouch.cs +++ b/NX.ERP.Model/Request/ApVouch.cs @@ -11,7 +11,7 @@ namespace NX.ERP.Model.Request public string DeptName { get; set; } public string supplierCode { get; set; } - public string Amount { get; set; } + public decimal Amount { get; set; } public string Digest { get; set; } diff --git a/NX.ERP.U8/AP/APVouch.cs b/NX.ERP.U8/AP/APVouch.cs index 9ea9305..4efb198 100644 --- a/NX.ERP.U8/AP/APVouch.cs +++ b/NX.ERP.U8/AP/APVouch.cs @@ -219,11 +219,11 @@ namespace NX.ERP.U8.AP headXml.setAttribute("VT_ID", 8056); headXml.setAttribute("bd_c", false); headXml.setAttribute("bStartFlag", false); - headXml.setAttribute("cVouchID", ""); + headXml.setAttribute("cVouchID", "664"); headXml.setAttribute("cFlag", "AP"); headXml.setAttribute("cDeptCode", ApVouch.DeptCode); headXml.setAttribute("cDigest", ApVouch.Digest); - headXml.setAttribute("cLink", ""); + headXml.setAttribute("cLink", "664"); IXMLDOMElement bodyXml; //for (var n = 0; n < storeIn.details.Count(); n++) @@ -238,7 +238,7 @@ namespace NX.ERP.U8.AP bodyXml.setAttribute("iAmount", ApVouch.Amount); bodyXml.setAttribute("iAmount_f", ApVouch.Amount); bodyXml.setAttribute("iAmt_s", 0); - bodyXml.setAttribute("cLink", ""); + bodyXml.setAttribute("cLink", "664"); headXml.setAttribute("cDwCode", ApVouch.supplierCode); bodyXml.setAttribute("bd_c", true);