git sale price in return client
This commit is contained in:
@@ -807,7 +807,11 @@ public class StockMoveLineServiceImpl implements StockMoveLineService {
|
|||||||
unitPriceUntaxed = stockMoveLine.getProduct().getAvgPrice();
|
unitPriceUntaxed = stockMoveLine.getProduct().getAvgPrice();
|
||||||
}
|
}
|
||||||
} else if (stockMove.getTypeSelect() == StockMoveRepository.TYPE_INCOMING) {
|
} else if (stockMove.getTypeSelect() == StockMoveRepository.TYPE_INCOMING) {
|
||||||
|
if(stockMoveLine.getProduct().getSellable() == true){
|
||||||
|
unitPriceUntaxed = stockMoveLine.getProduct().getSalePrice();
|
||||||
|
}else{
|
||||||
unitPriceUntaxed = stockMoveLine.getProduct().getPurchasePrice();
|
unitPriceUntaxed = stockMoveLine.getProduct().getPurchasePrice();
|
||||||
|
}
|
||||||
} else if (stockMove.getTypeSelect() == StockMoveRepository.TYPE_INTERNAL
|
} else if (stockMove.getTypeSelect() == StockMoveRepository.TYPE_INTERNAL
|
||||||
&& stockMove.getFromStockLocation() != null
|
&& stockMove.getFromStockLocation() != null
|
||||||
&& stockMove.getFromStockLocation().getTypeSelect()
|
&& stockMove.getFromStockLocation().getTypeSelect()
|
||||||
|
|||||||
Reference in New Issue
Block a user