use of org.adempiere.mm.attributes.api.ImmutableAttributeSet in project metasfresh-webui-api by metasfresh.
the class ForecastLineQuickInputProcessor method createASI.
private static final int createASI(final ProductAndAttributes productAndAttributes) {
final ImmutableAttributeSet attributes = productAndAttributes.getAttributes();
if (attributes.isEmpty()) {
return -1;
}
final IAttributeSetInstanceBL asiBL = Services.get(IAttributeSetInstanceBL.class);
final I_M_AttributeSetInstance asi = asiBL.createASIWithASFromProductAndInsertAttributeSet(productAndAttributes.getProductId(), attributes);
return asi.getM_AttributeSetInstance_ID();
}
use of org.adempiere.mm.attributes.api.ImmutableAttributeSet in project metasfresh-webui-api by metasfresh.
the class OrderLineQuickInputProcessor method createASI.
private static final int createASI(final ProductAndAttributes productAndAttributes) {
final ImmutableAttributeSet attributes = productAndAttributes.getAttributes();
if (attributes.isEmpty()) {
return -1;
}
final IAttributeSetInstanceBL asiBL = Services.get(IAttributeSetInstanceBL.class);
final I_M_AttributeSetInstance asi = asiBL.createASIWithASFromProductAndInsertAttributeSet(productAndAttributes.getProductId(), attributes);
return asi.getM_AttributeSetInstance_ID();
}
Aggregations