diff --git a/src_core/com/tenwa/voucher/serviceImp/CreateVoucherServiceImpl.java b/src_core/com/tenwa/voucher/serviceImp/CreateVoucherServiceImpl.java index 108e78d36..ced107e18 100644 --- a/src_core/com/tenwa/voucher/serviceImp/CreateVoucherServiceImpl.java +++ b/src_core/com/tenwa/voucher/serviceImp/CreateVoucherServiceImpl.java @@ -27,6 +27,7 @@ import com.tenwa.comm.exception.BusinessException; import com.tenwa.comm.util.jboutil.DataOperatorUtil; import com.tenwa.quartz.StringUtil; import com.tenwa.reckon.util.DateUtil; +import com.tenwa.util.SerialNumberUtil; import com.tenwa.voucher.service.InitVoucherService; import com.tenwa.voucher.service.VoucherJavaParamService; import com.tenwa.voucher.service.VoucherService; @@ -348,6 +349,9 @@ public class CreateVoucherServiceImpl { otherProperty.clear(); fromCondtion.put("id", voucherConfigId); otherProperty.put("MODULAR_NUMBER", "复制--"+modularnumber); + String VoucherNumber = SerialNumberUtil.getVoucherNumber(tx); + otherProperty.put("VOUCHER_NO", VoucherNumber); // 凭证编号自增 + otherProperty.put("PROJ_TYPE", "01"); // 直租模式 String newID = ""; newID = DataOperatorUtil.copySingleJBO(LV_VOUCHER_CONFIG.CLASS_NAME, fromCondtion, LV_VOUCHER_CONFIG.CLASS_NAME, null, otherProperty, tx); String sql = "select id from lv_voucher_loan where voucher_id=" + "'" + voucherConfigId + "'";