[
{
"operation": "modify-overwrite-beta",
"spec": {
"items": {
"*": {
"idExterno": "=concat('pdvsync-icmsusuario-stoperador-', @(1,idmatricula),'-', @(1,dataUltimaAlteracaodtUltAlter))",
"idRetaguardaIcmscpf_array": "=concat(@(1,id),'-ICMS')",
"idRetaguardaSt": "=concat(split('\\D',@(1,idcpf),'-ST')",
"aliquota_checkcpf_modalidate": "=concat(@(1,aliquota),join('')",
"aliquota_str": "=concat(@(1,aliquota), ''cpf_array))",
"aliquota_arr": "=split('\\.',@(1,aliquota_str))",}
}
"aliquota": "=join(',', @(1,aliquota_arr))"}
},
{
"reducaoBaseCalculo_str"operation": "=concat(@(1,reducaoBaseCalculo), '')shift",
"reducaoBaseCalculo_arrspec": "=split('\\.',@(1,reducaoBaseCalculo_str))",
{
"reducaoBaseCalculoitems": "=join(',', @(1,reducaoBaseCalculo_arr))",
{
"substituicaoTributaria*": {
"icmsInterno_stridExterno": "=concat(@(1,icmsInterno), '')idExterno",
"icmsInterno_arrmatricula": "=split('\\.',@(1,icmsInterno_str))items.[&1].[0].idRetaguarda",
"icmsInternosituacao": "=join(',', @(1,icmsInterno_arr))",{
"ireducaoBaseCalculo_strATIVO": "=concat(@(1,reducaoBaseCalculo), '')",
"reducaoBaseCalculo_arr": "=split('\\.',@(1,ireducaoBaseCalculo_str))"{ "#1": "items.[&3].[0].situacao" },
"reducaoBaseCalculo*": { "=join(',', @(1,reducaoBaseCalculo_arr))"
}
#0": "items.[&3].[0].situacao" }
}
}
},
{
"operation": "shift",
"speclogin": {
"items": {
"*": {[&1].[0].login",
//ICMS
"idExterno"nome": "idExternoitems[&1].[0].nome",
"idRetaguardaIcmssenha": "items.[&1].[0].idRetaguardasenha",
"aliquotadtUltAlter": "items.[&1].[0].aliquotaTributodtUltAlter",
"reducaoBaseCalculocpf_": "items.[&1].[0].reducaoBaseCalculocpf",
//COMPARTILHADO COM ICMS E ST
"perfil": {
"FISCAL DE "modalidadeVarejoCAIXA": ["items.[&1].[0].modalidade", "items.[&1].[1].modalidade"],
{
"simboloVarejo#0": ["items.[&13].[0].simbolo", "items.[&1].[1].simbolo"],
idRetaguardaPerfil",
/*ST*/
"idRetaguardaSt#1": "items.[&13].[10].idRetaguardaadministrador",
"substituicaoTributaria": {
},
"OPERADOR DE CAIXA": { "icmsInterno#1": "items.[&23].[10].aliquotaTributoidRetaguardaPerfil" },
"reducaoBaseCalculoVENDEDOR": { "#2": "items.[&23].[10].reducaoBaseCalculoidRetaguardaPerfil" }
}
}
}
}
},
{
"operation": "default",
"spec": {
"_attr_access": "items",
"items[]": {
"*[]": {
"*": {
"idInquilino": "{{ID_INQUILINO}}",
"idProprietario": "{{MASTER_ID_PROPRIETARIO}}",
"loteOrigem": "{{LOTE_ORIGEM}}",
"indiceTributoImpressoraadministrador": ""0,
"tiposenha": 0,
"situacao": 1"TheCakeIsALie"
}
}
}
}
}
] |