|
|
@@ -127,6 +127,10 @@ public class CustomerServiceImpl extends CommonBaseServiceImpl<CustomerMapper, C
|
|
|
customer.setCompanyId(companyId);
|
|
|
customer.setCreatorId(userId);
|
|
|
customer.setCreateTime(new Date());
|
|
|
+ //应付款余额
|
|
|
+ Double beginapamount = main.getCu_beginaramount()==null?new Double(0):main.getCu_beginaramount();
|
|
|
+ Double beginprepayamount = main.getCu_beginprerecamount()==null?new Double(0):main.getCu_beginprerecamount();
|
|
|
+ main.setCu_leftamount(beginapamount-beginprepayamount);
|
|
|
|
|
|
//编号校验
|
|
|
cu_code = pushMaxnubmer(cu_code, cu_id);
|