First commit (wating to add alerts in budget)

This commit is contained in:
BACHIR SOULDI
2025-09-04 13:21:24 +01:00
parent f70bf3341b
commit 9eb959f07a
192 changed files with 51034 additions and 4992 deletions

View File

@@ -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 =