- Cataloghi: parte finale... prima bozza 9 dic
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user