Fix error in setting product resource type. (#897)
Signed-off-by: kriegfrj <fr.jkrieg@greekwelfaresa.org.au>
This commit is contained in:
parent
d51333aa57
commit
445ca8e0fa
|
@ -453,7 +453,7 @@ public class MProduct extends X_M_Product implements ImmutablePOSupport
|
|||
public boolean setResource (MResourceType parent)
|
||||
{
|
||||
boolean changed = false;
|
||||
if (PRODUCTTYPE_Resource.equals(getProductType()))
|
||||
if (!PRODUCTTYPE_Resource.equals(getProductType()))
|
||||
{
|
||||
setProductType(PRODUCTTYPE_Resource);
|
||||
changed = true;
|
||||
|
|
Loading…
Reference in New Issue