- Cataloghi: parte finale... prima bozza 9 dic

This commit is contained in:
Surya Paolo
2024-12-09 12:32:19 +01:00
parent 5c20e75b6a
commit 29c59588c7
33 changed files with 1009 additions and 397 deletions

View File

@@ -8903,6 +8903,17 @@ export const tools = {
let parts = number.toFixed(2).split('.');
return parts.length > 1 ? parts[1] : '00';
},
arrotonda2Dec(number: any): string {
let num = ''
try {
if (number)
num = number.toFixed(2)
} catch (e) {
return number
}
return num
},
getRecordByField(field: any, record: any) {
let mioval = ''
@@ -9460,6 +9471,14 @@ export const tools = {
var jsonResult = this.xmlToJson(xmlDoc);
return jsonResult;
},
getScale(optcatalogo: ICatalogo) {
if (optcatalogo.printable && optcatalogo.generazionePDFInCorso)
return optcatalogo.areadistampa!.scale_printable
else
return optcatalogo.areadistampa!.scale
},
// FINE !
// getLocale() {