修改金额

This commit is contained in:
admin
2021-01-07 17:01:56 +08:00
parent 7245c08c94
commit fd3fc7af4c
9 changed files with 263 additions and 28 deletions

View File

@@ -85,7 +85,7 @@ namespace NX.ERP.U8.Store
iXMLDOMElement.setAttribute("cvouchtype", "01");//DomHead[0]["cvouchtype"] = ""; //单据类型,string类型
iXMLDOMElement.setAttribute("brdflag", 1); //DomHead[0]["brdflag"] = ""; //收发标志,int类型
iXMLDOMElement.setAttribute("csource", puStoreIn.Source); //DomHead[0]["csource"] = ""; //单据来源,int类型
iXMLDOMElement.setAttribute("cmaker", puStoreIn.Maker);//DomHead[0]["cmaker"] = ""; //制单人,string类型
iXMLDOMElement.setAttribute("cmaker", U8LoginContext.Instance.LoginUserName);//DomHead[0]["cmaker"] = ""; //制单人,string类型
iXMLDOMElement.setAttribute("vt_id", "27");
iXMLDOMElement.setAttribute("editprop", "A");
iXMLDOMElement.setAttribute("cdepcode", puStoreIn.Depcode);
@@ -112,7 +112,7 @@ namespace NX.ERP.U8.Store
iXMLDOMElement.setAttribute("ipurarriveid", Arrival.Id);
iXMLDOMElement.setAttribute("darvdate", Arrival.Date);
iXMLDOMElement.setAttribute("itaxrate", Arrival.TaxRate);
iXMLDOMElement.setAttribute("itaxrate", Arrival.TaxRate);
iXMLDOMElement.setAttribute("cptcode", Arrival.PTCode);
domHead.selectSingleNode("//rs:data").appendChild(iXMLDOMElement);
@@ -129,13 +129,33 @@ namespace NX.ERP.U8.Store
iXMLDOMElement.setAttribute("iquantity", detail.Quantity);
iXMLDOMElement.setAttribute("irowno", n);
iXMLDOMElement.setAttribute("cbvencode", "10001");
iXMLDOMElement.setAttribute("cbatch", detail.Batch);
iXMLDOMElement.setAttribute("carvcode", "2");
iXMLDOMElement.setAttribute("ipurarriveid", "222");
iXMLDOMElement.setAttribute("carvcode", Arrival.ArrivalCode);
iXMLDOMElement.setAttribute("cbarvcode", Arrival.ArrivalCode);
iXMLDOMElement.setAttribute("ipurarriveid", Arrival.Id);
iXMLDOMElement.setAttribute("iarrsid", detail.SorceDetailId);
iXMLDOMElement.setAttribute("darvdate", DateTime.Today.ToShortDateString());
iXMLDOMElement.setAttribute("editprop", "A");
iXMLDOMElement.setAttribute("cpoid", arrivalDetail.OrderCode);
iXMLDOMElement.setAttribute("iposid", arrivalDetail.posId);
var info = new NX.ERP.U8.Account.Accinformation();
//iorimoney = FormatMoney(iunitcost * iQuan);
//ioritaxprice = FormatMoney(iunitcost * iQuan * (itaxrate / 100.0));
//iorisum = FormatMoney(iunitcost * (1.0 + itaxrate / 100.0) * iQuan);
//itaxcost = FormatUPrice(iunitcost * (1.0 + itaxrate / 100.0));
var iorisum = info.FormatMoney(arrivalDetail.oricost * (1.00 + (Arrival.TaxRate / 100.0)) * detail.Quantity);
var ioritaxprice = info.FormatMoney(arrivalDetail.oricost * (Arrival.TaxRate / 100.0) * detail.Quantity);
var iorimoney = info.FormatMoney(arrivalDetail.oricost * detail.Quantity);
var oritaxcost = info.FormatMoney(arrivalDetail.oricost * (1.00 + (Arrival.TaxRate / 100.0)));
iXMLDOMElement.setAttribute("ioricost", arrivalDetail.oricost);
iXMLDOMElement.setAttribute("ioritaxcost", oritaxcost);
iXMLDOMElement.setAttribute("iorimoney", iorimoney);
iXMLDOMElement.setAttribute("ioritaxprice", ioritaxprice);
iXMLDOMElement.setAttribute("iorisum", iorisum);
domBody.selectSingleNode("//rs:data").appendChild(iXMLDOMElement);
}