19 package org.turro.financials.document;
21 import java.util.Iterator;
22 import org.turro.elephant.util.DecimalFormats;
23 import org.turro.financials.entity.Document;
24 import org.turro.financials.model.document.AmountRetained;
25 import org.turro.financials.model.document.AmountTaxable;
26 import org.turro.financials.model.document.DocumentAmounts;
27 import org.turro.i18n.I_;
28 import org.turro.zkoss.layout.GridLayout;
29 import org.zkoss.zk.ui.ext.AfterCompose;
30 import org.zkoss.zul.Auxhead;
31 import org.zkoss.zul.Auxheader;
45 this.document = document;
52 Iterator<AmountTaxable> iat = da.
getTaxables().iterator();
54 boolean keepOn =
true, totalDone =
false;
55 boolean hasReq = da.
hasReq();
102 keepOn = iat.hasNext() || iar.hasNext();
108 Auxhead aux =
new Auxhead();
110 Auxheader auxh =
new Auxheader(
I_.
get(
"Tax"));
112 auxh.setAlign(
"center");
113 aux.appendChild(auxh);
114 auxh =
new Auxheader(
I_.
get(
"% Ret."));
116 auxh.setAlign(
"center");
117 aux.appendChild(auxh);
121 auxh.setAlign(
"center");
122 aux.appendChild(auxh);
123 setColumns(
"right-1,right-3,right-3,right-3,right-3,right-1,right-3,right-3,right-3");
129 I_.
get(
"Tax amount"),
void setDocument(Document document)
DocumentDefinition getDocumentDefinition()
Double getTaxRealAmount()
AmountTaxableSet getTaxables()
AmountRetainedSet getRetentions()
static String get(String msg)
void setColCaptions(String captions)
void setColumns(int columns)
GridLayout addValue(String value)
GridLayout addBoldValue(String value)