[
{
"operation": "modify-overwrite-beta",
"spec": {
"items": {
"*": {
"codigoNcm_": "=split('\\.', @(1,codigoNcm))",
"codigo_Ncm": "=join('', @(1,codigoNcm_))",
"idExterno": "=concat('pdvsync-ncm-', @(1,id),'-', @(1,dataUltimaAtualizacao))",
"aliquotaImportada": "",
"aliquotaMunicipal": "",
"chave": null,
"fonte": null,
"situacao": 1
}
}
}
},
{
"operation": "shift",
"spec": {
"items": {
"*": {
"idExterno": "idExterno[&1]",
"id": "items[&1].[0].idRetaguarda",
"codigo_Ncm": "items[&1].[0].codigoNcm",
"codigoExcecao": "items[&1].[0].codigoExcecao",
"aliquotaNacional": "items[&1].[0].aliquotaNacional",
"aliquotaEstadual": "items[&1].[0].aliquotaEstadual",
"codigoCest": "items[&1].[0].codigoCest",
"aliquotaImportada": "items[&1].[0].aliquotaImportada",
"aliquotaMunicipal": "items[&1].[0].aliquotaMunicipal",
"chave": "items[&1].[0].chave",
"fonte": "items[&1].[0].fonte",
"situacao": "items[&1].[0].situacao"
}
}
}
},
{
"operation": "default",
"spec": {
"_attr_access": "items",
"items[]": {
"*[]": {
"*": {
"idInquilino": "{{ID_INQUILINO}}",
"idProprietario": "{{MASTER_ID_PROPRIETARIO}}",
"loteOrigem": "{{LOTE_ORIGEM}}",
"situacao": 1
}
}
}
}
}] |