Skip to content

Commit

Permalink
#6915 Extend BPartner-Relation and add it as BPartner-Tab
Browse files Browse the repository at this point in the history
#10590

fix DAO
  • Loading branch information
BodorAnnamaria committed Feb 9, 2021
1 parent 366ce36 commit c421fc5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ public class BPartnerDAO implements IBPartnerDAO
{
private static final Logger logger = LogManager.getLogger(BPartnerDAO.class);
private final IQueryBL queryBL = Services.get(IQueryBL.class);
private final IBPartnerDAO bPartnersRepo = Services.get(IBPartnerDAO.class);

private final GLNLoadingCache glnsLoadingCache = new GLNLoadingCache();
private final CCache<BPartnerId, BPartnerPrintFormatMap> printFormatsCache = CCache.<BPartnerId, BPartnerPrintFormatMap>builder()
Expand Down Expand Up @@ -933,7 +932,7 @@ public I_C_BPartner_Location retrieveBillToLocation(
.firstOnly(I_C_BP_Relation.class); // just added an UC
if (billtoRelation != null)
{
return InterfaceWrapperHelper.create(bPartnersRepo.getBPartnerLocationById(BPartnerLocationId.ofRepoId(billtoRelation.getC_BPartner_ID(), billtoRelation.getC_BPartnerRelation_Location_ID())), I_C_BPartner_Location.class);
return InterfaceWrapperHelper.create(getBPartnerLocationById(BPartnerLocationId.ofRepoId(billtoRelation.getC_BPartner_ID(), billtoRelation.getC_BPartnerRelation_Location_ID())), I_C_BPartner_Location.class);
}
return null;
}
Expand Down

0 comments on commit c421fc5

Please sign in to comment.