The facilities app when creating a new facility places the value for the owner party id as "COMPANY". Since the owner party ID value can vary, for example "NN_COMPANY" and not COMPANY it throws a foreign key constraint error hindering the facility creation through facilities app.
Expected behavior
The owner party id should not be hard coded as "COMPANY" instead should be the owner of the product store the facility is created for.
Steps to reproduce the issue
Please provide the steps to reproduce and if possible a minimal reproducible example of the problem
Current behavior
The facilities app when creating a new facility places the value for the owner party id as "COMPANY". Since the owner party ID value can vary, for example "NN_COMPANY" and not COMPANY it throws a foreign key constraint error hindering the facility creation through facilities app.
Expected behavior
The owner party id should not be hard coded as "COMPANY" instead should be the owner of the product store the facility is created for.
Steps to reproduce the issue
Please provide the steps to reproduce and if possible a minimal reproducible example of the problem
Can you handle fixing this bug by yourself?
Environment details
Additional information