【盘盈盘亏推泛微】

This commit is contained in:
tanfengling@x-ri.com 2025-12-19 16:40:54 +08:00
parent 19901ba992
commit a099864b22
2 changed files with 19 additions and 19 deletions

View File

@ -30,7 +30,7 @@ public class OtherOutSubmitToFwOp extends AbstractOperationServicePlugIn {
if(tqq9_biztype != null){ if(tqq9_biztype != null){
//推泛微盘亏 //推泛微盘亏
String biztypenumber = tqq9_biztype.getString("number"); String biztypenumber = tqq9_biztype.getString("number");
if("351".equals(biztypenumber)){ if(!"351".equals(biztypenumber)){
continue; continue;
} }
} }

View File

@ -1603,7 +1603,7 @@ public class FWImpl {
e4.put("fieldValue", jldw); e4.put("fieldValue", jldw);
JSONObject e5 = new JSONObject(); JSONObject e5 = new JSONObject();
e5.put("fieldName", "sl"); e5.put("fieldName", "sl");
e5.put("fieldValue", sl); e5.put("fieldValue", sl!=null&&sl.compareTo(BigDecimal.ZERO)!=0?sl:0);
JSONObject e6 = new JSONObject(); JSONObject e6 = new JSONObject();
e6.put("fieldName", "bhsdj"); e6.put("fieldName", "bhsdj");
e6.put("fieldValue", bhsdj != null && bhsdj.compareTo(BigDecimal.ZERO) != 0 ? bhsdj : 0); e6.put("fieldValue", bhsdj != null && bhsdj.compareTo(BigDecimal.ZERO) != 0 ? bhsdj : 0);
@ -1970,7 +1970,7 @@ public class FWImpl {
jldw = unit.getString("name"); jldw = unit.getString("name");
} }
BigDecimal sl = billentry.getBigDecimal("qty"); BigDecimal sl = billentry.getBigDecimal("qty");
BigDecimal bhsdj = billentry.getBigDecimal("qty"); BigDecimal bhsdj = billentry.getBigDecimal("price");
BigDecimal je = billentry.getBigDecimal("amount"); BigDecimal je = billentry.getBigDecimal("amount");
int sfzp = 1; int sfzp = 1;
boolean ispresent = billentry.getBoolean("ispresent"); boolean ispresent = billentry.getBoolean("ispresent");
@ -1995,13 +1995,13 @@ public class FWImpl {
e4.put("fieldValue", jldw); e4.put("fieldValue", jldw);
JSONObject e5 = new JSONObject(); JSONObject e5 = new JSONObject();
e5.put("fieldName", "sl"); e5.put("fieldName", "sl");
e5.put("fieldValue", sl); e5.put("fieldValue", sl!=null&&sl.compareTo(BigDecimal.ZERO)!=0?sl:0);
JSONObject e6 = new JSONObject(); JSONObject e6 = new JSONObject();
e6.put("fieldName", "bhsdj"); e6.put("fieldName", "bhsdj");
e6.put("fieldValue", bhsdj); e6.put("fieldValue", bhsdj!=null&&bhsdj.compareTo(BigDecimal.ZERO)!=0?bhsdj:0);
JSONObject e7 = new JSONObject(); JSONObject e7 = new JSONObject();
e7.put("fieldName", "je"); e7.put("fieldName", "je");
e7.put("fieldValue", je); e7.put("fieldValue", je!=null&&je.compareTo(BigDecimal.ZERO)!=0?je:0);
JSONObject e15 = new JSONObject(); JSONObject e15 = new JSONObject();
e15.put("fieldName", "sfzp"); e15.put("fieldName", "sfzp");
e15.put("fieldValue", sfzp); e15.put("fieldValue", sfzp);
@ -2019,7 +2019,7 @@ public class FWImpl {
//入库仓库 //入库仓库
DynamicObject warehouse = billentry.getDynamicObject("warehouse"); DynamicObject warehouse = billentry.getDynamicObject("warehouse");
if(warehouse != null){ if(warehouse != null){
rkck = warehouse.getString("number")+"<>"+deptNumber; rkck = warehouse.getString("number")+"_"+orgNumber;
} }
} }
detail1.put("tableDBName", "formtable_main_110_dt2"); detail1.put("tableDBName", "formtable_main_110_dt2");
@ -2072,7 +2072,7 @@ public class FWImpl {
m16.put("fieldValue", sqyybz); m16.put("fieldValue", sqyybz);
JSONObject m17 = new JSONObject(); JSONObject m17 = new JSONObject();
m17.put("fieldName", "hzje"); m17.put("fieldName", "hzje");
m17.put("fieldValue", hzje); m17.put("fieldValue", hzje!=null&&hzje.compareTo(BigDecimal.ZERO)!=0?hzje:0);
JSONObject m18 = new JSONObject(); JSONObject m18 = new JSONObject();
m18.put("fieldName", "shdh"); m18.put("fieldName", "shdh");
m18.put("fieldValue", shdh); m18.put("fieldValue", shdh);
@ -2277,7 +2277,7 @@ public class FWImpl {
jldw = unit.getString("name"); jldw = unit.getString("name");
} }
BigDecimal sl = billentry.getBigDecimal("qty"); BigDecimal sl = billentry.getBigDecimal("qty");
BigDecimal bhsdj = billentry.getBigDecimal("qty"); BigDecimal bhsdj = billentry.getBigDecimal("price");
BigDecimal je = billentry.getBigDecimal("amount"); BigDecimal je = billentry.getBigDecimal("amount");
String scrq = null; String scrq = null;
Date producedate = billentry.getDate("producedate"); Date producedate = billentry.getDate("producedate");
@ -2318,13 +2318,13 @@ public class FWImpl {
e4.put("fieldValue", jldw); e4.put("fieldValue", jldw);
JSONObject e5 = new JSONObject(); JSONObject e5 = new JSONObject();
e5.put("fieldName", "sl"); e5.put("fieldName", "sl");
e5.put("fieldValue", sl); e5.put("fieldValue", sl!=null&&sl.compareTo(BigDecimal.ZERO)!=0?sl:0);
JSONObject e6 = new JSONObject(); JSONObject e6 = new JSONObject();
e6.put("fieldName", "bhsdj"); e6.put("fieldName", "bhsdj");
e6.put("fieldValue", bhsdj); e6.put("fieldValue", bhsdj!=null&&bhsdj.compareTo(BigDecimal.ZERO)!=0?bhsdj:0);
JSONObject e7 = new JSONObject(); JSONObject e7 = new JSONObject();
e7.put("fieldName", "je"); e7.put("fieldName", "je");
e7.put("fieldValue", je); e7.put("fieldValue", je!=null&&je.compareTo(BigDecimal.ZERO)!=0?je:0);
JSONObject e8 = new JSONObject(); JSONObject e8 = new JSONObject();
e8.put("fieldName", "scrq"); e8.put("fieldName", "scrq");
e8.put("fieldValue", scrq); e8.put("fieldValue", scrq);
@ -2356,7 +2356,7 @@ public class FWImpl {
//出库仓库 //出库仓库
DynamicObject warehouse = billentry.getDynamicObject("warehouse"); DynamicObject warehouse = billentry.getDynamicObject("warehouse");
if(warehouse != null){ if(warehouse != null){
ckck = warehouse.getString("number")+"<>"+deptNumber; ckck = warehouse.getString("number")+"_"+orgNumber;
} }
} }
detail1.put("tableDBName", "formtable_main_110_dt1"); detail1.put("tableDBName", "formtable_main_110_dt1");
@ -2412,7 +2412,7 @@ public class FWImpl {
m16.put("fieldValue", sqyybz); m16.put("fieldValue", sqyybz);
JSONObject m17 = new JSONObject(); JSONObject m17 = new JSONObject();
m17.put("fieldName", "hzje"); m17.put("fieldName", "hzje");
m17.put("fieldValue", hzje); m17.put("fieldValue", hzje!=null&&hzje.compareTo(BigDecimal.ZERO)!=0?hzje:0);
JSONObject m18 = new JSONObject(); JSONObject m18 = new JSONObject();
m18.put("fieldName", "shdh"); m18.put("fieldName", "shdh");
m18.put("fieldValue", shdh); m18.put("fieldValue", shdh);
@ -6384,19 +6384,19 @@ public class FWImpl {
String ybbm = bill.getString("tqq9_ybbm"); String ybbm = bill.getString("tqq9_ybbm");
String lsm = bill.getString("tqq9_lsm"); String lsm = bill.getString("tqq9_lsm");
String uidm = bill.getString("tqq9_udi"); String uidm = bill.getString("tqq9_udi");
String cd = null; String cd = "";
DynamicObject tqq9_wlcd1 = bill.getDynamicObject("tqq9_wlcd1"); DynamicObject tqq9_wlcd1 = bill.getDynamicObject("tqq9_wlcd1");
if (tqq9_wlcd1 != null) { if (tqq9_wlcd1 != null) {
cd = tqq9_wlcd1.getString("name"); cd = tqq9_wlcd1.getString("name");
} }
String cjbm = bill.getString("tqq9_cjbm"); String cjbm = bill.getString("tqq9_cjbm");
String scxkzh = bill.getString("tqq9_scxkzh"); String scxkzh = bill.getString("tqq9_scxkzh");
String scxkzgqr = null; String scxkzgqr = "";
Date tqq9_datefield = bill.getDate("tqq9_datefield"); Date tqq9_datefield = bill.getDate("tqq9_datefield");
if (tqq9_datefield != null) { if (tqq9_datefield != null) {
scxkzgqr = sdf.format(tqq9_datefield); scxkzgqr = sdf.format(tqq9_datefield);
} }
String sccs = null; String sccs = "";
DynamicObject tqq9_sccs = bill.getDynamicObject("tqq9_sccs"); DynamicObject tqq9_sccs = bill.getDynamicObject("tqq9_sccs");
if (tqq9_sccs != null) { if (tqq9_sccs != null) {
sccs = tqq9_sccs.getString("name"); sccs = tqq9_sccs.getString("name");
@ -6583,8 +6583,8 @@ public class FWImpl {
requestid = bill.getString("tqq9_fwupdid"); requestid = bill.getString("tqq9_fwupdid");
JSONObject m_bgyy = new JSONObject(); JSONObject m_bgyy = new JSONObject();
m53.put("fieldName", "bgyy"); m_bgyy.put("fieldName", "bgyy");
m53.put("fieldValue", bgyy); m_bgyy.put("fieldValue", bgyy);
mlist.add(m_bgyy); mlist.add(m_bgyy);
JSONObject detail_change = new JSONObject(); JSONObject detail_change = new JSONObject();