- aggiornamento Cataloghi

- Gestione delle versioni del prodotto ("Nuovi","Usati","Epub", ecc..)
This commit is contained in:
Surya Paolo
2024-06-20 17:22:46 +02:00
parent 49d51712bd
commit 2ffcf56625
55 changed files with 659 additions and 400 deletions

View File

@@ -335,6 +335,7 @@ export const tools = {
},
],
SelectListColors: [
{ label: '[Nessuno]', value: '' },
{ label: 'aliceblue', value: '#f0f8ff' },
@@ -1391,6 +1392,13 @@ export const tools = {
},
SelectListVersione: [
{ label: '[Tutti]', value: 0 },
{ label: 'Nuovi', value: shared_consts.PRODUCTTYPE.NUOVO },
{ label: 'Usati', value: shared_consts.PRODUCTTYPE.USATO },
{ label: 'DVD', value: shared_consts.PRODUCTTYPE.DVD },
],
INDEX_MENU_DELETE: 4,
menuPopupTodo:
@@ -8644,8 +8652,9 @@ export const tools = {
},
// get the last 2 digit fraction part, of a decimal number
getDecPart2Digit(number: number) {
return Math.round(number * 100) % 100
getDecPart2Digit(number: number): string {
let parts = number.toFixed(2).split('.');
return parts.length > 1 ? parts[1] : '00';
},
getRecordByField(field: any, record: any) {