Skip to content

Commit

Permalink
Fixed: Convert RequirementServices.xml mini lang to groovy (OFBIZ-12745)
Browse files Browse the repository at this point in the history
  • Loading branch information
MkLeila committed Sep 6, 2024
1 parent 59b4222 commit 4ef71d9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,11 @@ Map autoAssignRequirementToSupplier() {
}
GenericValue supplierProduct = supplierProductsQuery.queryFirst()
if (supplierProduct?.partyId) {
delegator.createOrStore('RequirementRole', [requirementId: requirement.requirementId,
GenericValue requirementRole = delegator.makeValue('RequirementRole', [requirementId: requirement.requirementId,
partyId: supplierProduct.partyId,
roleTypeId: 'SUPPLIER',
fromDate: UtilDateTime.nowTimestamp()])
delegator.createOrStore(requirementRole)
}
}
return success()
Expand Down

0 comments on commit 4ef71d9

Please sign in to comment.