供应商判空
This commit is contained in:
parent
f34c40b018
commit
8a7dc3efbd
|
|
@ -23,10 +23,11 @@ public class PurorderCalculateBillPlugin extends AbstractBillPlugIn {
|
||||||
String name = e.getProperty().getName();
|
String name = e.getProperty().getName();
|
||||||
ChangeData[] changeSet = e.getChangeSet();
|
ChangeData[] changeSet = e.getChangeSet();
|
||||||
Object newValue = changeSet[0].getNewValue();
|
Object newValue = changeSet[0].getNewValue();
|
||||||
if("supplier".equals(name)){
|
if ("supplier".equals(name)) {
|
||||||
BigDecimal totalAmount = BigDecimal.ZERO;
|
BigDecimal totalAmount = BigDecimal.ZERO;
|
||||||
BigDecimal totalCount = BigDecimal.ZERO;
|
BigDecimal totalCount = BigDecimal.ZERO;
|
||||||
DynamicObject supplier = (DynamicObject) newValue;
|
DynamicObject supplier = (DynamicObject) newValue;
|
||||||
|
if (null != supplier) {
|
||||||
// 查询正常的采购订单 总额,总数量
|
// 查询正常的采购订单 总额,总数量
|
||||||
QFilter f1 = new QFilter("supplier.id", "=", supplier.getPkValue());
|
QFilter f1 = new QFilter("supplier.id", "=", supplier.getPkValue());
|
||||||
QFilter f2 = new QFilter("billstatus", "=", "C");//已审核的订单
|
QFilter f2 = new QFilter("billstatus", "=", "C");//已审核的订单
|
||||||
|
|
@ -57,5 +58,7 @@ public class PurorderCalculateBillPlugin extends AbstractBillPlugIn {
|
||||||
this.getModel().setValue("tqq9_lswdhje", totalAmount);
|
this.getModel().setValue("tqq9_lswdhje", totalAmount);
|
||||||
this.getModel().setValue("tqq9_lswdhsl", totalCount);
|
this.getModel().setValue("tqq9_lswdhsl", totalCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue