import-debitor-relationship (into intermediate data structure) #22
@ -224,8 +224,8 @@ public class ImportOfficeData extends ContextBasedTest {
|
||||
debitors.forEach( (id, debitor) -> {
|
||||
final var debitorRel = HsOfficeRelationshipEntity.builder()
|
||||
.relType(HsOfficeRelationshipType.DEBITOR)
|
||||
.relAnchor(debitor.getPartner().getPerson())
|
||||
.relHolder(debitor.getPartner().getPerson()) // just 1 debitor/partner in legacy hsadmin
|
||||
.relAnchor(debitor.getPartner().getPartnerRole().getRelHolder())
|
||||
.relHolder(debitor.getPartner().getPartnerRole().getRelHolder()) // just 1 debitor/partner in legacy hsadmin
|
||||
.contact(debitor.getBillingContact())
|
||||
.build();
|
||||
if (debitorRel.getRelAnchor() != null && debitorRel.getRelHolder() != null &&
|
||||
|
Loading…
Reference in New Issue
Block a user