OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 19 | Rev 41 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19 Rev 25
Line 113... Line 113...
113
        super();
113
        super();
114
        this.row = row;
114
        this.row = row;
115
        this.askOverwriting = true;
115
        this.askOverwriting = true;
116
        Date d = (Date) this.row.getObject("DATE");
116
        Date d = (Date) this.row.getObject("DATE");
117
        String year = yearFormat.format(d);
117
        String year = yearFormat.format(d);
118
        init(year, "Devis.odt", "DevisPrinter", DevisXmlSheet.getTuple2Location());
118
        init(year, "Devis.odt", "DevisPrinter");
119
    }
119
    }
120
 
120
 
121
    protected boolean savePDF() {
121
    protected boolean savePDF() {
122
        return true;
122
        return true;
123
    }
123
    }
124
 
124
 
-
 
125
    @Override
125
    public String getFileName() {
126
    public String getFileName() {
126
        String fileName = "Devis_" + AbstractSheetXml.getValidFileName(this.row.getString("NUMERO"));
127
        String fileName = "Devis_" + this.row.getString("NUMERO");
127
        return fileName;
128
        return fileName;
128
    }
129
    }
-
 
130
 
-
 
131
    public String getTemplateId() {
-
 
132
        return "sales.quote.text";
-
 
133
    }
129
}
134
}