增加Id
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user