use of com.axelor.apps.stock.db.CustomsCodeNomenclature in project axelor-open-suite by axelor.
the class StockMoveLineServiceImpl method storeCustomsCodes.
@Override
public void storeCustomsCodes(List<StockMoveLine> stockMoveLineList) {
if (stockMoveLineList == null) {
return;
}
for (StockMoveLine stockMoveLine : stockMoveLineList) {
Product product = stockMoveLine.getProduct();
CustomsCodeNomenclature customsCodeNomenclature = product != null ? product.getCustomsCodeNomenclature() : null;
stockMoveLine.setCustomsCodeNomenclature(customsCodeNomenclature);
stockMoveLine.setCustomsCode(customsCodeNomenclature != null ? customsCodeNomenclature.getCode() : null);
}
}
Aggregations