Search in sources :

Example 21 with BonEngin

use of me.kadarh.mecaworks.domain.bons.BonEngin in project mecaworks by KadarH.

the class StockManagerServiceImpl method insertLivraison.

private void insertLivraison(Long id_bon) {
    BonEngin bonEngin = bonEnginRepo.getOne(id_bon);
    bonEngin.setQuantite((-1) * bonEngin.getQuantite());
    betweenService.insertBonLivraison(bonEngin);
}
Also used : BonEngin(me.kadarh.mecaworks.domain.bons.BonEngin)

Aggregations

BonEngin (me.kadarh.mecaworks.domain.bons.BonEngin)21 OperationFailedException (me.kadarh.mecaworks.service.exceptions.OperationFailedException)8 LocalDate (java.time.LocalDate)6 BonLivraison (me.kadarh.mecaworks.domain.bons.BonLivraison)6 ChronoUnit (java.time.temporal.ChronoUnit)5 Collectors (java.util.stream.Collectors)5 Slf4j (lombok.extern.slf4j.Slf4j)5 BonFournisseur (me.kadarh.mecaworks.domain.bons.BonFournisseur)5 Chantier (me.kadarh.mecaworks.domain.others.Chantier)5 BonEnginRepo (me.kadarh.mecaworks.repo.bons.BonEnginRepo)5 BonFournisseurRepo (me.kadarh.mecaworks.repo.bons.BonFournisseurRepo)5 BonLivraisonRepo (me.kadarh.mecaworks.repo.bons.BonLivraisonRepo)5 Service (org.springframework.stereotype.Service)5 Transactional (org.springframework.transaction.annotation.Transactional)5 Month (java.time.Month)4 java.util (java.util)4 ArrayList (java.util.ArrayList)4 Engin (me.kadarh.mecaworks.domain.others.Engin)4 Stock (me.kadarh.mecaworks.domain.others.Stock)4 ChantierBatch (me.kadarh.mecaworks.domain.user.ChantierBatch)4