use of de.metas.ui.web.order.products_proposal.view.ProductsProposalView in project metasfresh-webui-api by metasfresh.
the class WEBUI_ProductsProposal_ShowProductsSoldToOtherCustomers method doIt.
@Override
protected String doIt() {
final ProductsProposalView view = getView();
final List<ProductsProposalRow> selectedRows = getSelectedRows();
final ProductsProposalView otherSalesPricesView = otherSalePricesProductsProposalViewFactory.createView(view, selectedRows);
afterCloseOpenView(otherSalesPricesView.getViewId());
return MSG_OK;
}
use of de.metas.ui.web.order.products_proposal.view.ProductsProposalView in project metasfresh-webui-api by metasfresh.
the class WEBUI_ProductsProposal_AddProductFromBasePriceList method addSelectedRowsToInitialView.
private void addSelectedRowsToInitialView() {
final ProductsProposalView initialView = getInitialView();
final List<ProductsProposalRowAddRequest> addRequests = getSelectedRows().stream().map(this::toProductsProposalRowAddRequest).collect(ImmutableList.toImmutableList());
initialView.addOrUpdateRows(addRequests);
}
use of de.metas.ui.web.order.products_proposal.view.ProductsProposalView in project metasfresh-webui-api by metasfresh.
the class WEBUI_ProductsProposal_ShowProductsToAddFromBasePriceList method doIt.
@Override
protected String doIt() {
final ProductsProposalView basePriceListView = basePLVProductsProposalViewFactory.createView(getView());
afterCloseOpenView(basePriceListView.getViewId());
return MSG_OK;
}
Aggregations