This commit is contained in:
gongxh
2021-03-15 13:34:02 +08:00
parent 01e1f930e9
commit f56c8806e7
14 changed files with 45 additions and 39 deletions

View File

@@ -39,7 +39,7 @@ namespace NX.ERP.U8.Store
headXml.setAttribute("ccode", storeOut.Code);
headXml.setAttribute("ddate", storeOut.Date);
headXml.setAttribute("cmaker", storeOut.Maker);
headXml.setAttribute("vt_id", new VT().GetDefaltVTID("0303"));
headXml.setAttribute("editprop", "A");
headXml.setAttribute("cdepcode", "");
@@ -102,24 +102,24 @@ namespace NX.ERP.U8.Store
public bool UpdateVoucher(SaleStoreOut storeOut)
{
VoucherParameter voucherParameter = this.LoadVoucher($"cCode='{storeOut.Code}'");
VoucherParameter voucherParameter = this.LoadVoucher($"id='{storeOut.Id}'");
DOMDocument domBody = voucherParameter.DomBody;
IXMLDOMElement bodyXml;
if (storeOut.Source == "发货单")
{
var dispatch = new Sale.DispatchListDAL().GetModel(storeOut.SourceCode);
for (var n = 0; n < storeOut.Details.Count; n++)
{
bodyXml = domBody.createElement("z:row");
var detail = storeOut.Details[n];
bodyXml.setAttribute("cinvcode", detail.InvCode);
bodyXml.setAttribute("iquantity", detail.Quantity);
bodyXml.setAttribute("cposition", detail.Position);
@@ -137,7 +137,7 @@ namespace NX.ERP.U8.Store
}
try