18 package org.turro.financials.document;
20 import java.util.logging.Level;
21 import java.util.logging.Logger;
22 import org.turro.elephant.context.ElephantContext;
23 import org.turro.financials.entity.Document;
24 import org.turro.financials.model.Amount;
25 import org.turro.i18n.I_;
26 import org.turro.zkoss.grid.CollectionGrid;
27 import org.zkoss.zul.Row;
51 this.document = document;
68 throw new UnsupportedOperationException(
"Not supported yet.");
82 }
catch (ClassNotFoundException ex) {
89 private void addColumns() throws ClassNotFoundException {
90 int fractionDigits = document.
getCurrency().getDefaultFractionDigits();
92 "subtotal",
null, fractionDigits,
false,
false);
94 "discount",
null, fractionDigits,
false,
false);
96 "taxable",
null, fractionDigits,
false,
false);
98 "tax",
null, 2,
false,
false);
100 "taxValue",
null, fractionDigits,
false,
false);
103 "req",
null, 2,
false,
false);
105 "reqValue",
null, fractionDigits,
false,
false);
108 "retained",
null, fractionDigits,
false,
false);
110 "amount",
null, fractionDigits,
false,
false);
static String logMsg(String msg)
void updateDocument(Document document)
boolean isValid(Amount v)
void setDocument(Document document)
boolean deleteRow(Row row)
DocumentAmountsGrid(Document document)
void initiateRow(Row row, Amount value)
boolean isEquivalenceSurcharge()
DocumentDefinition getDocumentDefinition()
static String get(String msg)
EditableColumn addColumn(String label, Class javaClass, String property, String format, int scale, boolean onlyDate, boolean readOnly)
void setReadOnly(boolean readOnly)