- Raccolte Cataloghi corretto e migliorato.
- Bottoni "Apri" e "PDF".
This commit is contained in:
@@ -421,7 +421,6 @@ class GenPdf {
|
||||
id_catalog: catalogo._id,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
console.log('FINE Pubblicazione ONLINE !');
|
||||
}
|
||||
@@ -456,17 +455,18 @@ class GenPdf {
|
||||
|
||||
const catalog = await Catalog.findById(options.idCatalog);
|
||||
if (catalog) {
|
||||
const myfilenameout = await this.getPathByPage(catalog.idPageAssigned);
|
||||
|
||||
const url =
|
||||
tools.getHostByIdApp(this.idapp) +
|
||||
'/cataloghi?id=' +
|
||||
catalog._id +
|
||||
'&stampa=' +
|
||||
'/' +
|
||||
myfilenameout +
|
||||
'?' +
|
||||
'stampa=' +
|
||||
(stampa ? '1' : '0') +
|
||||
'&hideHeader=1';
|
||||
|
||||
if (url) {
|
||||
const myfilenameout = await this.getPathByPage(catalog.idPageAssigned);
|
||||
|
||||
let addstr = stampa ? '_stampabile' : '';
|
||||
|
||||
filenamerelative = options.path + `${myfilenameout}${addstr}_generato.pdf`;
|
||||
@@ -583,7 +583,6 @@ class GenPdf {
|
||||
|
||||
const myfile = stampa ? myrec.pdf_generato_stampa : myrec.pdf_generato;
|
||||
|
||||
|
||||
if (myfile && (await tools.isFileExistsAsync(mydir + myfile))) {
|
||||
// Aggiorna il PDF OnLine, copiando il file da Generato a OnLine
|
||||
let fileOrigin = mydir + (stampa ? myrec.pdf_generato_stampa : myrec.pdf_generato);
|
||||
|
||||
Reference in New Issue
Block a user