Search in sources :

Example 1 with WebuiASIEditingInfo

use of de.metas.ui.web.pattribute.WebuiASIEditingInfo in project metasfresh-webui-api by metasfresh.

the class ShipmentCandidateRow method getWebuiASIEditingInfo.

@Override
public WebuiASIEditingInfo getWebuiASIEditingInfo(@NonNull final AttributeSetInstanceId asiId) {
    final ProductId productId = product.getIdAs(ProductId::ofRepoIdOrNull);
    final ASIEditingInfo info = ASIEditingInfo.builder().type(WindowType.Regular).productId(productId).attributeSetInstanceId(asiId).callerTableName(null).callerColumnId(-1).soTrx(SOTrx.SALES).build();
    return WebuiASIEditingInfo.builder(info).build();
}
Also used : ProductId(de.metas.product.ProductId) WebuiASIEditingInfo(de.metas.ui.web.pattribute.WebuiASIEditingInfo) ASIEditingInfo(org.adempiere.mm.attributes.util.ASIEditingInfo)

Aggregations

ProductId (de.metas.product.ProductId)1 WebuiASIEditingInfo (de.metas.ui.web.pattribute.WebuiASIEditingInfo)1 ASIEditingInfo (org.adempiere.mm.attributes.util.ASIEditingInfo)1