Subversion Repositories SmartDukaan

Rev

Rev 12769 | Rev 13051 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12769 Rev 12863
Line 6... Line 6...
6
 
6
 
7
import java.io.ByteArrayOutputStream;
7
import java.io.ByteArrayOutputStream;
8
import java.io.File;
8
import java.io.File;
9
import java.io.FileOutputStream;
9
import java.io.FileOutputStream;
10
import java.io.IOException;
10
import java.io.IOException;
-
 
11
import java.math.BigDecimal;
11
import java.text.DateFormat;
12
import java.text.DateFormat;
12
import java.util.Date;
13
import java.util.Date;
13
 
14
 
14
import org.slf4j.Logger;
15
import org.slf4j.Logger;
15
import org.slf4j.LoggerFactory;
16
import org.slf4j.LoggerFactory;
Line 299... Line 300...
299
            double lineTotal = lineitem.getQuantity() * lineitem.getUnitPrice();
300
            double lineTotal = lineitem.getQuantity() * lineitem.getUnitPrice();
300
            total += lineTotal;
301
            total += lineTotal;
301
            detailsTable.addCell(new Phrase("" + lineTotal, helvetica8));
302
            detailsTable.addCell(new Phrase("" + lineTotal, helvetica8));
302
        }
303
        }
303
        detailsTable.addCell(getTotalCell(5));
304
        detailsTable.addCell(getTotalCell(5));
304
        detailsTable.addCell(new Phrase("" + total, helvetica8));
305
        detailsTable.addCell(new Phrase(BigDecimal.valueOf(total).toPlainString(), helvetica8));
305
        return detailsTable;
306
        return detailsTable;
306
    }
307
    }
307
 
308
 
308
    private static PdfPTable getBillToTable(long warehouseId, TaxType taxType) {
309
    private static PdfPTable getBillToTable(long warehouseId, TaxType taxType) {
309
    	//TODO Write this code in a proper configurable way
310
    	//TODO Write this code in a proper configurable way