Produse aproape de expirare — Pro
Produsele cu stoc pozitiv care expiră în următoarele 30 de zile, pe gestiune, produs, serie și dată de expirare.
Intervalul include astăzi și următoarele 29 de zile; ziua a 30-a este exclusă. Produsele expirate deja și cele fără dată de expirare nu sunt incluse. O listă goală poate fi un rezultat corect. Cantitatea este suma netă a liniilor de stoc, inclusiv rezervările, nu cantitatea disponibilă de vânzare. Se păstrează identitatea produsului și gestiunii; produsele cu același cod dar identitate diferită nu sunt amestecate. Seria este cea înregistrată în sursă; nu se inventează loturi, prețuri sau stări de expirare. Poți filtra la deschidere după gestiune.
Manual Nexus: https://www.docs.nexuserp.ro/articol/citire-stoc-detaliat/4304 ; https://www.docs.nexuserp.ro/articol/stoc-depozit/4986 . Adaptare SQL Server verificată read-only pe schema Nexus; nu este o configurație oficială Nexus.
Cache automat la 60 de minute, maximum 100.000 de rânduri. Numai citire; plan Pro pentru SQL personalizat.
Screenshots
What this package creates
- Home: Produse aproape de expirare
Sources are mapped locally and verified before applying.
Custom queriesPRO1 SQL
Custom queries are a PRO feature. Cifru repeats read-only validation against the local source before execution.
$.components.workspaceSelection.datasets.0.sqlQuerySELECT
CONCAT(s.id_gestiune, N'|', s.id_produs, N'|', CONVERT(varchar(10), CAST(s.data_expirare AS date), 23),
N'|', COALESCE(s.serie_produs,N'')) AS row_key,
s.id_gestiune, s.id_produs, MAX(LTRIM(RTRIM(s.cod_produs))) AS cod_produs,
MAX(s.den_produs) AS den_produs, MAX(s.den_gestiune) AS den_gestiune,
COALESCE(s.serie_produs,N'') AS serie_produs, CAST(s.data_expirare AS date) AS data_expirare,
SUM(s.cantitate) AS cantitate,
DATEDIFF(day, CAST(GETDATE() AS date), CAST(s.data_expirare AS date)) AS zile_ramase
FROM dbo.accesex_stoc_detaliat_view AS s
WHERE s.data_expirare >= CAST(GETDATE() AS date)
AND s.data_expirare < DATEADD(day, 30, CAST(GETDATE() AS date))
GROUP BY s.id_gestiune, s.id_produs,
COALESCE(s.serie_produs,N''), CAST(s.data_expirare AS date)
HAVING SUM(s.cantitate) > 0static read-only checks passed
View the JSON being importedcollapsed by default
{
"components": {
"sourceSlots": [
{
"displayName": "NexusERP",
"id": "E70641CD-BD44-5128-BAD6-A8AB216D2898",
"kind": "sqlServer",
"requiredObjects": [
"dbo.accesex_stoc_detaliat_view"
],
"requiresCustomSQL": true
}
],
"workspaceSelection": {
"commonFields": [],
"datasets": [
{
"cacheMode": "cached",
"calculatedFields": [],
"customQueryIntegrationName": "NexusERP",
"endpointPath": "",
"fetchSortRules": [
{
"direction": "ascending",
"id": "70DFCD13-33C7-5938-A7D6-CA4BBD756AE5",
"key": "data_expirare",
"type": "date"
},
{
"direction": "ascending",
"id": "C0662EC4-4556-524F-9B67-210C0C480C6C",
"key": "den_produs",
"type": "text"
}
],
"id": "76373DDE-B4C2-508C-A3E2-70C1421F038F",
"mappings": [
{
"commonFieldKey": "",
"key": "row_key",
"label": "Cheie stoc",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "row_key",
"type": "text",
"visibleInDetail": false,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "id_gestiune",
"label": "Cheie gestiune",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "id_gestiune",
"type": "text",
"visibleInDetail": false,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "id_produs",
"label": "Cheie produs",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "id_produs",
"type": "text",
"visibleInDetail": false,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "den_produs",
"label": "Produs",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "den_produs",
"type": "text",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "cod_produs",
"label": "Cod produs / EAN",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "cod_produs",
"type": "text",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "den_gestiune",
"label": "Gestiune",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "den_gestiune",
"type": "text",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "serie_produs",
"label": "Serie produs",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "serie_produs",
"type": "text",
"visibleInDetail": true,
"visibleInList": false
},
{
"commonFieldKey": "",
"key": "data_expirare",
"label": "Expiră la",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "data_expirare",
"type": "date",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "cantitate",
"label": "Cantitate în stoc",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "cantitate",
"type": "number",
"visibleInDetail": true,
"visibleInList": true
},
{
"commonFieldKey": "",
"key": "zile_ramase",
"label": "Zile rămase",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic",
"sourceColumn": "zile_ramase",
"type": "number",
"visibleInDetail": true,
"visibleInList": true
}
],
"maxRows": 100000,
"name": "Produse aproape de expirare",
"primaryKey": "row_key",
"queryParameters": [],
"refreshPolicy": {
"enabled": true,
"intervalMinutes": 60
},
"rootArrayPath": "",
"rowLimitEnabled": true,
"searchKeys": [
"den_produs",
"cod_produs",
"den_gestiune",
"serie_produs"
],
"sourceID": "E70641CD-BD44-5128-BAD6-A8AB216D2898",
"sqlQuery": "SELECT\n CONCAT(s.id_gestiune, N'|', s.id_produs, N'|', CONVERT(varchar(10), CAST(s.data_expirare AS date), 23),\n N'|', COALESCE(s.serie_produs,N'')) AS row_key,\n s.id_gestiune, s.id_produs, MAX(LTRIM(RTRIM(s.cod_produs))) AS cod_produs,\n MAX(s.den_produs) AS den_produs, MAX(s.den_gestiune) AS den_gestiune,\n COALESCE(s.serie_produs,N'') AS serie_produs, CAST(s.data_expirare AS date) AS data_expirare,\n SUM(s.cantitate) AS cantitate,\n DATEDIFF(day, CAST(GETDATE() AS date), CAST(s.data_expirare AS date)) AS zile_ramase\nFROM dbo.accesex_stoc_detaliat_view AS s\nWHERE s.data_expirare >= CAST(GETDATE() AS date)\n AND s.data_expirare < DATEADD(day, 30, CAST(GETDATE() AS date))\nGROUP BY s.id_gestiune, s.id_produs,\n COALESCE(s.serie_produs,N''), CAST(s.data_expirare AS date)\nHAVING SUM(s.cantitate) > 0",
"tableName": ""
}
],
"pages": [
{
"actions": [],
"badgeKey": "cantitate",
"cardEnrichments": [],
"cardFieldLayout": [
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "den_produs",
"label": "Produs",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "cod_produs",
"label": "Cod produs / EAN",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "den_gestiune",
"label": "Gestiune",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "data_expirare",
"label": "Expiră la",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "cantitate",
"label": "Cantitate în stoc",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "zile_ramase",
"label": "Zile rămase",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
}
],
"datasetID": "76373DDE-B4C2-508C-A3E2-70C1421F038F",
"dateFilterKey": "",
"dateFilterLastDays": 7,
"dateFilterPreset": "none",
"detailFieldLayout": [
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "den_produs",
"label": "Produs",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "cod_produs",
"label": "Cod produs / EAN",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "den_gestiune",
"label": "Gestiune",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "serie_produs",
"label": "Serie produs",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "data_expirare",
"label": "Expiră la",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "cantitate",
"label": "Cantitate în stoc",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
},
{
"detailGroup": "",
"detailRole": "information",
"isVisible": true,
"key": "zile_ramase",
"label": "Zile rămase",
"locationLabelKey": "",
"locationLongitudeKey": "",
"presentation": "automatic"
}
],
"detailLiveRefreshSeconds": 0,
"fixedFilters": [],
"id": "58D58D5E-2731-5526-941F-A87191B7E871",
"openFilters": [
{
"id": "35EB1D9B-BCAC-58EC-B53A-1C2AE05876F4",
"includeAllOption": true,
"key": "den_gestiune",
"title": "Gestiune",
"type": "text"
}
],
"pageSize": 100,
"requiresOpeningFilterSelection": true,
"showOnHome": true,
"sortRules": [
{
"direction": "ascending",
"id": "70DFCD13-33C7-5938-A7D6-CA4BBD756AE5",
"key": "data_expirare",
"type": "date"
},
{
"direction": "ascending",
"id": "C0662EC4-4556-524F-9B67-210C0C480C6C",
"key": "den_produs",
"type": "text"
}
],
"subtitle": "",
"subtitleKey": "cod_produs",
"systemImage": "shippingbox",
"title": "Produse aproape de expirare",
"titleKey": "den_produs"
}
],
"relations": [],
"widgets": []
}
},
"format": "cifru-configuration-package",
"formatVersion": 1,
"manifest": {
"applicationName": "NexusERP",
"configurationLanguages": [
"ro"
],
"countries": [
"RO"
],
"createdAt": "2026-09-24T13:20:32Z",
"description": "Intervalul include astăzi și următoarele 29 de zile; ziua a 30-a este exclusă. Produsele expirate deja și cele fără dată de expirare nu sunt incluse. O listă goală poate fi un rezultat corect. Cantitatea este suma netă a liniilor de stoc, inclusiv rezervările, nu cantitatea disponibilă de vânzare. Se păstrează identitatea produsului și gestiunii; produsele cu același cod dar identitate diferită nu sunt amestecate. Seria este cea înregistrată în sursă; nu se inventează loturi, prețuri sau stări de expirare. Poți filtra la deschidere după gestiune.\n\nManual Nexus: https://www.docs.nexuserp.ro/articol/citire-stoc-detaliat/4304 ; https://www.docs.nexuserp.ro/articol/stoc-depozit/4986 . Adaptare SQL Server verificată read-only pe schema Nexus; nu este o configurație oficială Nexus.\n\nCache automat la 60 de minute, maximum 100.000 de rânduri. Numai citire; plan Pro pentru SQL personalizat.",
"licenseCode": "Cifru-Community-1.0",
"minimumCifruVersion": "1.0",
"minimumPlan": "pro",
"packageID": "27D8FC9F-626D-5F35-8DBE-92C7C6DA1EF8",
"rootButtonCount": 1,
"summary": "Produsele cu stoc pozitiv care expiră în următoarele 30 de zile, pe gestiune, produs, serie și dată de expirare.",
"tags": [
"NexusERP",
"read-only",
"expirare"
],
"title": "Produse aproape de expirare — Pro"
}
}