Search in sources :

Example 1 with IHUPackingAware

use of de.metas.adempiere.gui.search.IHUPackingAware in project metasfresh-webui-api by metasfresh.

the class ForecastLineQuickInputProcessor method updateForecastLine.

private final void updateForecastLine(final I_M_ForecastLine forecastLine, final QuickInput fromQuickInput) {
    final I_M_Forecast forecast = fromQuickInput.getRootDocumentAs(I_M_Forecast.class);
    final IForecastLineQuickInput fromForecastLineQuickInput = fromQuickInput.getQuickInputDocumentAs(IForecastLineQuickInput.class);
    final IHUPackingAware quickInputPackingAware = createQuickInputPackingAware(forecast, fromForecastLineQuickInput);
    final IHUPackingAware orderLinePackingAware = ForecastLineHUPackingAware.of(forecastLine);
    huPackingAwareBL.prepareCopyFrom(quickInputPackingAware).overridePartner(false).asiCopyMode(// because we just created the ASI
    ASICopyMode.CopyID).copyTo(orderLinePackingAware);
}
Also used : IHUPackingAware(de.metas.adempiere.gui.search.IHUPackingAware) I_M_Forecast(org.compiere.model.I_M_Forecast)

Example 2 with IHUPackingAware

use of de.metas.adempiere.gui.search.IHUPackingAware in project metasfresh-webui-api by metasfresh.

the class OrderLineQuickInputProcessor method updateOrderLine.

private final void updateOrderLine(final Object orderLineObj, final QuickInput fromQuickInput) {
    final I_C_Order order = fromQuickInput.getRootDocumentAs(I_C_Order.class);
    final IOrderLineQuickInput fromOrderLineQuickInput = fromQuickInput.getQuickInputDocumentAs(IOrderLineQuickInput.class);
    final IHUPackingAware quickInputPackingAware = createQuickInputPackingAware(order, fromOrderLineQuickInput);
    final I_C_OrderLine orderLineToUpdate = InterfaceWrapperHelper.create(orderLineObj, I_C_OrderLine.class);
    final IHUPackingAware orderLinePackingAware = OrderLineHUPackingAware.of(orderLineToUpdate);
    huPackingAwareBL.prepareCopyFrom(quickInputPackingAware).overridePartner(false).asiCopyMode(// because we just created the ASI
    ASICopyMode.CopyID).copyTo(orderLinePackingAware);
}
Also used : I_C_Order(de.metas.adempiere.model.I_C_Order) IHUPackingAware(de.metas.adempiere.gui.search.IHUPackingAware) I_C_OrderLine(org.compiere.model.I_C_OrderLine)

Aggregations

IHUPackingAware (de.metas.adempiere.gui.search.IHUPackingAware)2 I_C_Order (de.metas.adempiere.model.I_C_Order)1 I_C_OrderLine (org.compiere.model.I_C_OrderLine)1 I_M_Forecast (org.compiere.model.I_M_Forecast)1