Examples of Need


Examples of org.zeroexchange.model.resource.participant.Need

    Assert.assertEquals(nextStatus, ContractStatus.UNCOMPLETED);

    //Need only
    Resource resource = new Resource();
    resource.setOwner(contractOwner);
    Need need = new Need();
    need.setAmount(BigDecimal.ONE);
    need.setAcceptDate(new Date());
    User needOwner = new User();
    needOwner.setId(2);
    need.setUser(needOwner);
    resource.getNeeds().add(need);
    contract.getResources().add(resource);
    nextStatus = uncompletedStep.nextStep(contract);
    Assert.assertEquals(nextStatus, ContractStatus.UNCOMPLETED);
View Full Code Here

Examples of org.zeroexchange.model.resource.participant.Need

    @Transactional
    public void reconcile(Resource resource, User consumer) {
        //Write-off cycle
        int consumersCount = 0;
        User supplier = null;
        Need consumerTender = null;
        Supply supplierTender = null;
        BigDecimal totalSuppliersPrice = BigDecimal.ZERO;
        BigDecimal totalConsumerAmount = BigDecimal.ZERO;
        for(Supply supply: resource.getSupplies()) {
            if(supply.getAcceptDate() != null) {
View Full Code Here

Examples of org.zeroexchange.model.resource.participant.Need

            supply.setCurrency(currencyCode);
            BigDecimal totalPrice = tenderData.getTotalPrice();
            supply.setTotalPrice(totalPrice);
            supply.setSupplyTime(tenderData.getSupplyTime());
        } else {
            tender = new Need();
        }       
        User currentUser = authorizedUserService.getCurrentUser();
        tender.setResource(resource);
        tender.setUser(currentUser);
        tender.setAdditionalInfo(tenderData.getInfo());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.