Commit e3f0ee18 authored by chenzhuo's avatar chenzhuo

解约回购校验

parent bca0be47
......@@ -91,6 +91,14 @@
var paymengt_deadlinedate = Leaf.formatDate(req_record.get('paymengt_deadlinedate'));
var repurchase_types = record.get('repurchase_types');
var payment_period = record.get('payment_period');
//add by 26887cz 2021-08-13
var create_date = Leaf.formatDate(new Date());
var last_rent_due_date = Leaf.formatDate(req_record.get('last_rent_due_date'));
if (!compareDate(last_rent_due_date, create_date)) {
Leaf.showMessage('${l:HLS.PROMPT}', '申请创建日期小于变更起始期前期租金支付约定日,请先取消变更,进行收入和增值税确认!');
window['${/parameter/@bp_seq}${/parameter/@layout_code}_unlock_layout_dynamic_window']();
return false;
}
//支付预定日需要大于解约回购日
if (!compareDate(repurchase_date, paymengt_deadlinedate)) {
Leaf.showMessage('${l:HLS.PROMPT}', '支付预定日需要大于等于解约回购日!');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment