Compare commits
No commits in common. "27309cc3d07b6085ba3cdfcd4a6407e1ae0184ae" and "62a7a538c8eed6400da8d12e54809aff7dc024d9" have entirely different histories.
27309cc3d0
...
62a7a538c8
|
|
@ -256,22 +256,12 @@ public class OutContractSettleEditPluginExt extends AbstractBillPlugIn implement
|
|||
|
||||
protected QFilter getNotSettleMaterialInBillFilter(DynamicObject contract, Object endDate) {
|
||||
DynamicObject partB = contract.getDynamicObject("partb");
|
||||
QFilter qFilter = new QFilter("supplier", "=", partB.getPkValue());//入库单供应商
|
||||
|
||||
//二开添加↓
|
||||
Boolean zcgj_transset = (Boolean) this.getModel().getValue("zcgj_transset");//按入库运费结算
|
||||
if (zcgj_transset) {
|
||||
qFilter.and(new QFilter("zcgj_contract", "=", contract.getPkValue()));//入库单运输合同
|
||||
} else {
|
||||
qFilter.and(new QFilter("contract", "=", contract.getPkValue()));//入库单合同编号
|
||||
}
|
||||
//二开添加↑
|
||||
|
||||
// qFilter.and(new QFilter("contract", "=", contract.getPkValue()));//入库单合同编号//系统代码
|
||||
qFilter.and(new QFilter("period.enddate", "<=", endDate));//入库单结算期间
|
||||
qFilter.and(new QFilter("settlestatus", "=", "0"));//入库单已结算
|
||||
qFilter.and(new QFilter("ismeasure", "=", "0"));//入库单已计量
|
||||
qFilter.and(new QFilter("billstatus", "=", "C"));//入库单单据状态
|
||||
QFilter qFilter = new QFilter("supplier", "=", partB.getPkValue());
|
||||
qFilter.and(new QFilter("contract", "=", contract.getPkValue()));
|
||||
qFilter.and(new QFilter("period.enddate", "<=", endDate));
|
||||
qFilter.and(new QFilter("settlestatus", "=", "0"));
|
||||
qFilter.and(new QFilter("ismeasure", "=", "0"));
|
||||
qFilter.and(new QFilter("billstatus", "=", "C"));
|
||||
return qFilter;
|
||||
}
|
||||
|
||||
|
|
@ -570,12 +560,9 @@ public class OutContractSettleEditPluginExt extends AbstractBillPlugIn implement
|
|||
this.periodChanged(changeData);
|
||||
} else if (StringUtils.equals(name, "iseqsettle")) {
|
||||
this.isEqSettleChanged(changeData);
|
||||
//二开添加逻辑↓
|
||||
} else if (StringUtils.equals(name, "zcgj_transset")) {
|
||||
//按入库运费结算
|
||||
this.autoFetch();
|
||||
this.sumMaterialInAmountToItemEntry();
|
||||
SettleUpdateAmtUtils.calAllTypeAmount(this.getModel());
|
||||
//二开添加逻辑↓
|
||||
Boolean zcgj_transset = (Boolean) changeData.getNewValue();//按入库运费结算新值
|
||||
DynamicObjectCollection materialInEntry = this.getModel().getEntryEntity("materialinentry");//入库单分录
|
||||
if (materialInEntry != null && materialInEntry.size() != 0) {
|
||||
|
|
@ -611,8 +598,8 @@ public class OutContractSettleEditPluginExt extends AbstractBillPlugIn implement
|
|||
this.getModel().setValue("taxamt", ofTaxAmount.subtract(amount), 0);//合同支付项-税额
|
||||
}
|
||||
}
|
||||
//二开添加逻辑↑
|
||||
}
|
||||
//二开添加逻辑↑
|
||||
}
|
||||
|
||||
protected void periodChanged(ChangeData changeData) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue