Compare commits

..

No commits in common. "cfec7cd726591047cd9a061e4f997577e77e8a9f" and "572d377c083a0fccbe3554478f9b9e1170783a61" have entirely different histories.

3 changed files with 1 additions and 48 deletions

View File

@ -30,7 +30,7 @@ public class OutContractSettleFiConfirmWorkFlowPlugin implements IWorkflowPlugin
//如果时冲销单据
//生成支出财务确认单 start
//收入合同结算
DynamicObject outFinaceconfirm =BusinessDataServiceHelper.newDynamicObject("zcgj_ec_out_finaceconfirm");//支出财务确认单
DynamicObject outFinaceconfirm =BusinessDataServiceHelper.newDynamicObject("zcgj_ec_out_finaceconfirm");
outFinaceconfirm.set("zcgj_ec_out_contract_sett",outContractSettle.getLong("id"));
outFinaceconfirm.set("zcgj_ec_out_contract_name",outContractSettle.getString("billname"));
@ -76,22 +76,6 @@ public class OutContractSettleFiConfirmWorkFlowPlugin implements IWorkflowPlugin
outFinaceconfirm.set("zcgj_oftaxamount_all",oftaxamountAll);
outFinaceconfirm.set("zcgj_amount_all",amountAll);
outFinaceconfirm.set("zcgj_taxamt_all",taxamtAll);
DynamicObjectCollection expenseItemEntryCollection = outFinaceconfirm.getDynamicObjectCollection("zcgj_expenseitementry");//支出财务确认单-费用项目分录
expenseItemEntryCollection.clear();
for (DynamicObject itemEntry : itementry) {
DynamicObjectCollection processAllocEntityCollection = itemEntry.getDynamicObjectCollection("zcgj_processallocatentity");//工序分摊
for (DynamicObject processAllocEntity : processAllocEntityCollection) {
DynamicObject NewExpenseItemEntry = expenseItemEntryCollection.addNew();
NewExpenseItemEntry.set("zcgj_cbs",processAllocEntity.get("zcgj_pa_process"));//工序
NewExpenseItemEntry.set("zcgj_amountsum",processAllocEntity.get("zcgj_pa_amount"));//价税合计
NewExpenseItemEntry.set("zcgj_expenseitemamt",processAllocEntity.get("zcgj_amountnotax"));//费用不含税金额
NewExpenseItemEntry.set("zcgj_rateval",processAllocEntity.get("zcgj_rateval"));//税率%
NewExpenseItemEntry.set("zcgj_taxamount",processAllocEntity.get("zcgj_taxamt"));//税额
NewExpenseItemEntry.set("zcgj_expenseitemrem",processAllocEntity.get("zcgj_pa_remark"));//费用说明
}
}
SaveServiceHelper.saveOperate("zcgj_ec_out_finaceconfirm", new DynamicObject[]{outFinaceconfirm}, null);//支出合同实体
//生成支出财务确认单 end
}

View File

@ -76,22 +76,6 @@ public class OutContractSettleInvalidWorkFlowPlugin implements IWorkflowPlugin {
outFinaceconfirm.set("zcgj_oftaxamount_all",oftaxamountAll);
outFinaceconfirm.set("zcgj_amount_all",amountAll);
outFinaceconfirm.set("zcgj_taxamt_all",taxamtAll);
DynamicObjectCollection expenseItemEntryCollection = outFinaceconfirm.getDynamicObjectCollection("zcgj_expenseitementry");//支出财务确认单-费用项目分录
expenseItemEntryCollection.clear();
for (DynamicObject itemEntry : itementry) {
DynamicObjectCollection processAllocEntityCollection = itemEntry.getDynamicObjectCollection("zcgj_processallocatentity");//工序分摊
for (DynamicObject processAllocEntity : processAllocEntityCollection) {
DynamicObject NewExpenseItemEntry = expenseItemEntryCollection.addNew();
NewExpenseItemEntry.set("zcgj_cbs",processAllocEntity.get("zcgj_pa_process"));//工序
NewExpenseItemEntry.set("zcgj_amountsum",processAllocEntity.get("zcgj_pa_amount"));//价税合计
NewExpenseItemEntry.set("zcgj_expenseitemamt",processAllocEntity.get("zcgj_amountnotax"));//费用不含税金额
NewExpenseItemEntry.set("zcgj_rateval",processAllocEntity.get("zcgj_rateval"));//税率%
NewExpenseItemEntry.set("zcgj_taxamount",processAllocEntity.get("zcgj_taxamt"));//税额
NewExpenseItemEntry.set("zcgj_expenseitemrem",processAllocEntity.get("zcgj_pa_remark"));//费用说明
}
}
OperationResult zcgjEcOutFinaceconfirm = SaveServiceHelper.saveOperate("zcgj_ec_out_finaceconfirm", new DynamicObject[]{outFinaceconfirm}, null);//支出合同实体
if(zcgjEcOutFinaceconfirm.isSuccess()){
String sourceBillId = outContractSettle.getString("zcgj_invalidbillid");

View File

@ -124,21 +124,6 @@ public class OutContractSettleReversalWorkFlowPlugin implements IWorkflowPlugin
item.set("zcgj_taxamt",dynamicObject.getBigDecimal("taxamt"));
item.set("zcgj_remark",dynamicObject.getString("remark"));
}
DynamicObjectCollection expenseItemEntryCollection = outFinaceconfirm.getDynamicObjectCollection("zcgj_expenseitementry");//支出财务确认单-费用项目分录
expenseItemEntryCollection.clear();
for (DynamicObject itemEntry : itementry) {
DynamicObjectCollection processAllocEntityCollection = itemEntry.getDynamicObjectCollection("zcgj_processallocatentity");//工序分摊
for (DynamicObject processAllocEntity : processAllocEntityCollection) {
DynamicObject NewExpenseItemEntry = expenseItemEntryCollection.addNew();
NewExpenseItemEntry.set("zcgj_cbs",processAllocEntity.get("zcgj_pa_process"));//工序
NewExpenseItemEntry.set("zcgj_amountsum",processAllocEntity.get("zcgj_pa_amount"));//价税合计
NewExpenseItemEntry.set("zcgj_expenseitemamt",processAllocEntity.get("zcgj_amountnotax"));//费用不含税金额
NewExpenseItemEntry.set("zcgj_rateval",processAllocEntity.get("zcgj_rateval"));//税率%
NewExpenseItemEntry.set("zcgj_taxamount",processAllocEntity.get("zcgj_taxamt"));//税额
NewExpenseItemEntry.set("zcgj_expenseitemrem",processAllocEntity.get("zcgj_pa_remark"));//费用说明
}
}
SaveServiceHelper.saveOperate("zcgj_ec_out_finaceconfirm", new DynamicObject[]{outFinaceconfirm}, null);//支出合同实体
//生成支出财务确认单 end