First commit (wating to add alerts in budget)
This commit is contained in:
@@ -19,8 +19,6 @@ package com.axelor.apps.quality.service.print;
|
||||
|
||||
import com.axelor.apps.ReportFactory;
|
||||
import com.axelor.apps.quality.db.ArtWork;
|
||||
import com.axelor.apps.base.service.app.AppBaseService;
|
||||
import com.axelor.apps.quality.db.QualityControl;
|
||||
import com.axelor.apps.quality.exception.IExceptionMessage;
|
||||
import com.axelor.apps.quality.report.IReport;
|
||||
import com.axelor.apps.report.engine.ReportSettings;
|
||||
@@ -28,10 +26,8 @@ import com.axelor.apps.tool.file.PdfTool;
|
||||
import com.axelor.exception.AxelorException;
|
||||
import com.axelor.exception.db.repo.TraceBackRepository;
|
||||
import com.axelor.i18n.I18n;
|
||||
import com.axelor.inject.Beans;
|
||||
import java.io.File;
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
|
||||
public class ArtWorkPrintServiceImpl {
|
||||
|
||||
@@ -40,15 +36,9 @@ public class ArtWorkPrintServiceImpl {
|
||||
return I18n.get("ArtWork") + " " + artWork.getRef();
|
||||
}
|
||||
|
||||
public String printArtWork(ArtWork artWork, String format)
|
||||
throws AxelorException {
|
||||
public String printArtWork(ArtWork artWork, String format) throws AxelorException {
|
||||
|
||||
String fileName =
|
||||
I18n.get("ArtWork")
|
||||
+ " - "
|
||||
+ LocalDate.now().toString()
|
||||
+ "."
|
||||
+ format;
|
||||
String fileName = I18n.get("ArtWork") + " - " + LocalDate.now().toString() + "." + format;
|
||||
|
||||
return PdfTool.getFileLinkFromPdfFile(print(artWork, format), fileName);
|
||||
}
|
||||
@@ -70,8 +60,7 @@ public class ArtWorkPrintServiceImpl {
|
||||
artWork);
|
||||
}
|
||||
|
||||
String locale =
|
||||
ReportSettings.getPrintingLocale(artWork.getCompany().getPartner());
|
||||
String locale = ReportSettings.getPrintingLocale(artWork.getCompany().getPartner());
|
||||
String title = getFileName(artWork);
|
||||
|
||||
ReportSettings reportSetting =
|
||||
|
||||
Reference in New Issue
Block a user