|
@@ -52,13 +52,7 @@ public class ReportController {
|
|
|
|
|
|
Customer customer = customerService.get(account.getCustomerId());
|
|
|
if(customer != null) {
|
|
|
- String allName = "";
|
|
|
- if (StringUtils.isNotEmpty(customer.getCompany())) {
|
|
|
- allName = customer.getName() + "(" + customer.getCompany() + ")";
|
|
|
- } else {
|
|
|
- allName = customer.getName();
|
|
|
- }
|
|
|
- account.setCustomerName(allName);
|
|
|
+ account.setCustomerName(customer.getCompany());
|
|
|
}
|
|
|
else {
|
|
|
account.setCustomerName(null);
|
|
@@ -82,13 +76,7 @@ public class ReportController {
|
|
|
|
|
|
Customer customer = customerService.get(account.getCustomerId());
|
|
|
if(customer != null) {
|
|
|
- String allName = "";
|
|
|
- if (StringUtils.isNotEmpty(customer.getCompany())) {
|
|
|
- allName = customer.getName() + "(" + customer.getCompany() + ")";
|
|
|
- } else {
|
|
|
- allName = customer.getName();
|
|
|
- }
|
|
|
- account.setCustomerName(allName);
|
|
|
+ account.setCustomerName(customer.getCompany());
|
|
|
}
|
|
|
else {
|
|
|
account.setCustomerName(null);
|
|
@@ -147,13 +135,7 @@ public class ReportController {
|
|
|
|
|
|
Customer customer = customerService.get(account.getCustomerId());
|
|
|
if(customer != null) {
|
|
|
- String allName = "";
|
|
|
- if (StringUtils.isNotEmpty(customer.getCompany())) {
|
|
|
- allName = customer.getName() + "(" + customer.getCompany() + ")";
|
|
|
- } else {
|
|
|
- allName = customer.getName();
|
|
|
- }
|
|
|
- account.setCustomerName(allName);
|
|
|
+ account.setCustomerName(customer.getCompany());
|
|
|
}
|
|
|
else {
|
|
|
account.setCustomerName(null);
|
|
@@ -177,13 +159,7 @@ public class ReportController {
|
|
|
|
|
|
Customer customer = customerService.get(account.getCustomerId());
|
|
|
if(customer != null) {
|
|
|
- String allName = "";
|
|
|
- if (StringUtils.isNotEmpty(customer.getCompany())) {
|
|
|
- allName = customer.getName() + "(" + customer.getCompany() + ")";
|
|
|
- } else {
|
|
|
- allName = customer.getName();
|
|
|
- }
|
|
|
- account.setCustomerName(allName);
|
|
|
+ account.setCustomerName(customer.getCompany());
|
|
|
}
|
|
|
else {
|
|
|
account.setCustomerName(null);
|