Ver código fonte

应付票据审核将采购类型带到预付账款

zxl 2 semanas atrás
pai
commit
e147a289b6
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/com/uas/erp/dao/common/impl/BillAPDaoImpl.java

+ 1 - 0
src/com/uas/erp/dao/common/impl/BillAPDaoImpl.java

@@ -151,6 +151,7 @@ public class BillAPDaoImpl extends BaseDao implements BillAPDao {
 							rs.getGeneralDouble("bap_topaybalance") - rs.getGeneralDouble("bap_feeamount"), rs.getObject("bap_checkcode"),
 							rs.getObject("BAP_PAYBILLCODE") });
 			execute(INSERTPREPAYASS, new Object[] { pp_id, rs.getObject("bap_vendcode"), rs.getObject("bap_vendname") });
+			execute("UPDATE PrePay a SET PP_PUKIND = (select b.PP_PUKIND from payplease b where a.pp_pleasecode = b.pp_code) where pp_id = " + pp_id);
 			ppd_id = rs.getObject("bap_ppdid");
 			if (ppd_id != null && Integer.parseInt(ppd_id.toString()) != 0) {
 				thisamount = rs.getDouble("bap_topaybalance");