|
@@ -123,7 +123,7 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
//主计量单位
|
|
|
String invMeas = GetBaseDAOUtil.getMeasidByName(bodyObject.getString("invMeas"));
|
|
|
//税目
|
|
|
- String invTaxitems = GetBaseDAOUtil.gettaxitemid(bodyObject.getString("invTaxitems"));
|
|
|
+ String invTaxitems = GetBaseDAOUtil.gettaxitemid("4001");
|
|
|
//图号
|
|
|
String graphid = bodyObject.getString("graphid");
|
|
|
//长度
|
|
@@ -144,6 +144,8 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
Object dc = bodyObject.getString("dc");
|
|
|
//标准
|
|
|
Object bz = bodyObject.getString("bz");
|
|
|
+ //辅计量管理
|
|
|
+ Object assistunit = bodyObject.getString("assistunit");
|
|
|
|
|
|
if(!ys.equals("")&&ys != null) {
|
|
|
String yspk = GetBaseDAOUtil.getdefdocid(colordeflist, ys.toString());
|
|
@@ -202,6 +204,12 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
if(!bz.equals("")) {
|
|
|
invbasVo.setFree4(standard);
|
|
|
}
|
|
|
+ if(assistunit.toString().equals("Y")) {
|
|
|
+ invbasVo.setAssistunit(UFBoolean.TRUE);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ invbasVo.setAssistunit(UFBoolean.FALSE);
|
|
|
+ }
|
|
|
ivo.updateVO(invbasVo);
|
|
|
}
|
|
|
else {
|
|
@@ -251,6 +259,12 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
if(!bz.equals("")) {
|
|
|
invbasVo.setFree4(standard);
|
|
|
}
|
|
|
+ if(assistunit.toString().equals("Y")) {
|
|
|
+ invbasVo.setAssistunit(UFBoolean.TRUE);
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ invbasVo.setAssistunit(UFBoolean.FALSE);
|
|
|
+ }
|
|
|
pk_inv = ivo.insertVO(invbasVo);
|
|
|
}
|
|
|
//查看当前存货是否有对应的存货管理档案
|
|
@@ -329,12 +343,12 @@ public class InvAddImpl extends BaseServlet implements IHttpServletAdaptor{
|
|
|
String invName = "invName";//存货名称
|
|
|
String invCl = "invCl";//存货分类
|
|
|
String invMeas = "invMeas";//主计量单位
|
|
|
- String invTaxitems = "invTaxitems";//税目
|
|
|
String wholemanaflag = "wholemanaflag";
|
|
|
+ String assistunit = "assistunit";//辅计量管理
|
|
|
|
|
|
for(int i = 0; i < oprepObjectBs.size(); i++) {
|
|
|
JSONObject oprepJsonObjectB = oprepObjectBs.getJSONObject(i);
|
|
|
- String[] HeadKey = {pk_corp,invCode,invName,invCl,invMeas,invTaxitems,wholemanaflag};
|
|
|
+ String[] HeadKey = {pk_corp,invCode,invName,invCl,invMeas,wholemanaflag,assistunit};
|
|
|
int num = i+1;
|
|
|
|
|
|
mags.append("第"+num+"块:{");
|