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);
}
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);
}
Aggregations