作者 陈志颖

fix:金额激励分红预算承接人部分

@@ -63,8 +63,8 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do @@ -63,8 +63,8 @@ func (domainService *ConfirmMoneyIncentivesEstimateService) Confirm(contract *do
63 if undertakerEstimated { 63 if undertakerEstimated {
64 return nil, fmt.Errorf("用户 " + undertaker.UserName + " 已分红") 64 return nil, fmt.Errorf("用户 " + undertaker.UserName + " 已分红")
65 } else { 65 } else {
66 - undertakerDividendsAmount, _ := decimal.NewFromFloat(moneyIncentivesRuleMatched.MoneyIncentivesAmount).  
67 - Mul(decimal.NewFromFloat(1).Sub(decimal.NewFromFloat(moneyIncentivesRuleMatched.SalesmanPercentage).Add(decimal.NewFromFloat(moneyIncentivesRuleMatched.ReferrerPercentage)).Div(decimal.NewFromFloat(100)))).Float64() 66 + undertakerDividendsAmount, _ := decimal.NewFromFloat(moneyIncentivesRuleMatched.MoneyIncentivesAmount).Float64()
  67 + //Mul(decimal.NewFromFloat(1).Sub(decimal.NewFromFloat(moneyIncentivesRuleMatched.SalesmanPercentage).Add(decimal.NewFromFloat(moneyIncentivesRuleMatched.ReferrerPercentage)).Div(decimal.NewFromFloat(100)))).Float64()
68 dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{ 68 dividendsEstimateDetails = append(dividendsEstimateDetails, &service.DividendsEstimateDetail{
69 DividendsUser: &domain.User{ 69 DividendsUser: &domain.User{
70 UserId: undertaker.UserId, 70 UserId: undertaker.UserId,