Package clips.delegate.contract

Examples of clips.delegate.contract.ServisePriceData


                        return "Не оказана";
                    }
                }
                case COL_PRICE: {
                    //Полная стоимость услуги
                    ServisePriceData contractServiceData = serRenLocal.getContractService();
                    if (contractServiceData != null && !serRenLocal.hasReferencedSerRen()) {
                        return String.format("%.2f", ((float) contractServiceData.getPrice()) /
                                100);
                    } else {
                        return "";
                    }
                }
                case COL_MONEY: {
                    //оплачивается договором
                    ServisePriceData contractServiceData = serRenLocal.getContractService();
                    if (contractServiceData != null && !serRenLocal.hasReferencedSerRen()) {
                        return String.format("%.2f", ((float) contractServiceData.getMoney()) /
                                100);
                    } else {
                        return "";
                    }
                }
                case COL_DISCOUNT: {
                    //скидка услуги
                    return serRenLocal.getCalculatedDiscount();
                }
                case COL_REST: {
                    //осталось оплатить
                    ServisePriceData contractServiceData = serRenLocal.getContractService();
                    if (contractServiceData != null && !serRenLocal.hasReferencedSerRen()) {
                        float discount = (float) serRenLocal.getCalculatedDiscount() / 100;
                        float lack = contractServiceData.getLack() * (1 - discount) / 100;
                        return String.format("%.2f", lack);
                    } else {
                        return "";
                    }
                }
View Full Code Here


        } else {
            contract = getPolisData().getContract();
            contractMap.put(contractID, contract);
        }
        DirectoryServiceItem service = getService();
        ServisePriceData contractService = null;
        DirectoryReceptionTypeItem nullItem = DirectoryLocator.getDirectory(DirectoryReceptionType.class).getNullItem();
        DirectoryReceptionTypeItem recType = nullItem;
        if (getCollaboratorFunctions() != null){
            recType = getCollaboratorFunctions().getReceptionType();
        }
View Full Code Here

TOP

Related Classes of clips.delegate.contract.ServisePriceData

Copyright © 2018 www.massapicom. 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.