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