Migliorie in elenco inventari

This commit is contained in:
2022-11-22 10:42:18 +01:00
parent bad3e58fbd
commit 1512cb7de9
11 changed files with 343 additions and 50 deletions

View File

@@ -2,7 +2,7 @@
"formatVersion": 1,
"database": {
"version": 11,
"identityHash": "1fbbe769d42f5fb33a56580bea8b11c6",
"identityHash": "6a7fc5a013080ef96827187ce0637459",
"entities": [
{
"tableName": "articoli_griglia",
@@ -868,7 +868,7 @@
},
{
"tableName": "inventari",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT, `id_inventario` INTEGER, `cod_mdep` TEXT NOT NULL, `data_inventario` INTEGER, `data_reg` INTEGER, `data_ver` INTEGER, `filtro` TEXT, `flag_stato` TEXT, `flag_operazione` TEXT, `cod_anag` TEXT, `cod_dtip` TEXT, `inserito_da` TEXT, `registrato_da` TEXT, `verificato_da` TEXT, `data_ora_inizio` INTEGER, `data_ora_fine` INTEGER, `causale` TEXT, `remote_sync_date` INTEGER)",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT, `id_inventario` INTEGER, `cod_mdep` TEXT NOT NULL, `data_inventario` INTEGER, `data_reg` INTEGER, `data_ver` INTEGER, `filtro` TEXT, `flag_stato` TEXT, `flag_operazione` TEXT, `cod_anag` TEXT, `cod_dtip` TEXT, `inserito_da` TEXT, `registrato_da` TEXT, `verificato_da` TEXT, `data_ora_inizio` INTEGER, `data_ora_fine` INTEGER, `causale` TEXT, `zona` TEXT, `remote_sync_date` INTEGER)",
"fields": [
{
"fieldPath": "id",
@@ -972,6 +972,12 @@
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "zona",
"columnName": "zona",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "remoteSyncDate",
"columnName": "remote_sync_date",
@@ -1006,12 +1012,139 @@
}
],
"foreignKeys": []
},
{
"tableName": "inventario_rows",
"createSql": "CREATE TABLE IF NOT EXISTS `${TABLE_NAME}` (`_id` INTEGER PRIMARY KEY AUTOINCREMENT, `parent_id` INTEGER, `cod_mart` TEXT NOT NULL, `partita_mag` TEXT, `descrizione` TEXT, `qta` REAL NOT NULL DEFAULT 0, `num_cnf` REAL NOT NULL DEFAULT 0, `qta_cnf` REAL NOT NULL DEFAULT 0, `unt_mis` TEXT NOT NULL DEFAULT '0', `data_ora_inv` INTEGER, `scan_cod_barre` TEXT, `zona` TEXT, `remote_sync_date` INTEGER, FOREIGN KEY(`parent_id`) REFERENCES `inventari`(`_id`) ON UPDATE NO ACTION ON DELETE NO ACTION )",
"fields": [
{
"fieldPath": "id",
"columnName": "_id",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "parentId",
"columnName": "parent_id",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "codMart",
"columnName": "cod_mart",
"affinity": "TEXT",
"notNull": true
},
{
"fieldPath": "partitaMag",
"columnName": "partita_mag",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "descrizione",
"columnName": "descrizione",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "qta",
"columnName": "qta",
"affinity": "REAL",
"notNull": true,
"defaultValue": "0"
},
{
"fieldPath": "numConf",
"columnName": "num_cnf",
"affinity": "REAL",
"notNull": true,
"defaultValue": "0"
},
{
"fieldPath": "qtaConf",
"columnName": "qta_cnf",
"affinity": "REAL",
"notNull": true,
"defaultValue": "0"
},
{
"fieldPath": "untMis",
"columnName": "unt_mis",
"affinity": "TEXT",
"notNull": true,
"defaultValue": "'0'"
},
{
"fieldPath": "dataOraInv",
"columnName": "data_ora_inv",
"affinity": "INTEGER",
"notNull": false
},
{
"fieldPath": "scanCodBarre",
"columnName": "scan_cod_barre",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "zona",
"columnName": "zona",
"affinity": "TEXT",
"notNull": false
},
{
"fieldPath": "remoteSyncDate",
"columnName": "remote_sync_date",
"affinity": "INTEGER",
"notNull": false
}
],
"primaryKey": {
"columnNames": [
"_id"
],
"autoGenerate": true
},
"indices": [
{
"name": "index_inventario_rows__id",
"unique": false,
"columnNames": [
"_id"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_inventario_rows__id` ON `${TABLE_NAME}` (`_id`)"
},
{
"name": "index_inventario_rows_parent_id",
"unique": false,
"columnNames": [
"parent_id"
],
"orders": [],
"createSql": "CREATE INDEX IF NOT EXISTS `index_inventario_rows_parent_id` ON `${TABLE_NAME}` (`parent_id`)"
}
],
"foreignKeys": [
{
"table": "inventari",
"onDelete": "NO ACTION",
"onUpdate": "NO ACTION",
"columns": [
"parent_id"
],
"referencedColumns": [
"_id"
]
}
]
}
],
"views": [],
"setupQueries": [
"CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)",
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '1fbbe769d42f5fb33a56580bea8b11c6')"
"INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, '6a7fc5a013080ef96827187ce0637459')"
]
}
}