001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.kfs.module.ar.report.util;
017    
018    import java.util.Map;
019    
020    import org.kuali.rice.kns.util.KualiDecimal;
021    
022    /**
023     * This class...
024     */
025    public class CustomerAgingReportDataHolder {
026    
027        private Map<String, Object> knownCustomers;
028        private KualiDecimal total0to30;
029        private KualiDecimal total31to60;
030        private KualiDecimal total61to90;
031        private KualiDecimal total91toSYSPR;
032        private KualiDecimal totalSYSPRplus1orMore;
033        private KualiDecimal totalAmountDue;
034        /**
035         * Gets the knownCustomers attribute. 
036         * @return Returns the knownCustomers.
037         */
038        public Map<String, Object> getKnownCustomers() {
039            return knownCustomers;
040        }
041        /**
042         * Sets the knownCustomers attribute value.
043         * @param knownCustomers The knownCustomers to set.
044         */
045        public void setKnownCustomers(Map<String, Object> knownCustomers) {
046            this.knownCustomers = knownCustomers;
047        }
048        /**
049         * Gets the total0to30 attribute. 
050         * @return Returns the total0to30.
051         */
052        public KualiDecimal getTotal0to30() {
053            return total0to30;
054        }
055        /**
056         * Sets the total0to30 attribute value.
057         * @param total0to30 The total0to30 to set.
058         */
059        public void setTotal0to30(KualiDecimal total0to30) {
060            this.total0to30 = total0to30;
061        }
062        /**
063         * Gets the total31to60 attribute. 
064         * @return Returns the total31to60.
065         */
066        public KualiDecimal getTotal31to60() {
067            return total31to60;
068        }
069        /**
070         * Sets the total31to60 attribute value.
071         * @param total31to60 The total31to60 to set.
072         */
073        public void setTotal31to60(KualiDecimal total31to60) {
074            this.total31to60 = total31to60;
075        }
076        /**
077         * Gets the total61to90 attribute. 
078         * @return Returns the total61to90.
079         */
080        public KualiDecimal getTotal61to90() {
081            return total61to90;
082        }
083        /**
084         * Sets the total61to90 attribute value.
085         * @param total61to90 The total61to90 to set.
086         */
087        public void setTotal61to90(KualiDecimal total61to90) {
088            this.total61to90 = total61to90;
089        }
090        /**
091         * Gets the total91toSYSPR attribute. 
092         * @return Returns the total91toSYSPR.
093         */
094        public KualiDecimal getTotal91toSYSPR() {
095            return total91toSYSPR;
096        }
097        /**
098         * Sets the total91toSYSPR attribute value.
099         * @param total91toSYSPR The total91toSYSPR to set.
100         */
101        public void setTotal91toSYSPR(KualiDecimal total91toSYSPR) {
102            this.total91toSYSPR = total91toSYSPR;
103        }
104        /**
105         * Gets the totalSYSPRplus1orMore attribute. 
106         * @return Returns the totalSYSPRplus1orMore.
107         */
108        public KualiDecimal getTotalSYSPRplus1orMore() {
109            return totalSYSPRplus1orMore;
110        }
111        /**
112         * Sets the totalSYSPRplus1orMore attribute value.
113         * @param totalSYSPRplus1orMore The totalSYSPRplus1orMore to set.
114         */
115        public void setTotalSYSPRplus1orMore(KualiDecimal totalSYSPRplus1orMore) {
116            this.totalSYSPRplus1orMore = totalSYSPRplus1orMore;
117        }
118        /**
119         * Gets the totalAmountDue attribute. 
120         * @return Returns the totalAmountDue.
121         */
122        public KualiDecimal getTotalAmountDue() {
123            return totalAmountDue;
124        }
125        /**
126         * Sets the totalAmountDue attribute value.
127         * @param totalAmountDue The totalAmountDue to set.
128         */
129        public void setTotalAmountDue(KualiDecimal totalAmountDue) {
130            this.totalAmountDue = totalAmountDue;
131        }
132    
133        /**
134         * 
135         * This method clears all the amount fields and resets them to zero.
136         */
137        public void clearAllAmounts() {
138            this.total0to30 = KualiDecimal.ZERO;
139            this.total31to60 = KualiDecimal.ZERO;
140            this.total61to90 = KualiDecimal.ZERO;
141            this.total91toSYSPR = KualiDecimal.ZERO;
142            this.totalSYSPRplus1orMore = KualiDecimal.ZERO;
143            this.totalAmountDue = KualiDecimal.ZERO;
144        }
145    }