Skip to content

Instantly share code, notes, and snippets.

@lpj145
Last active July 31, 2023 12:30
Show Gist options
  • Save lpj145/46db1a935bac72a5868dcf9a58e444f5 to your computer and use it in GitHub Desktop.
Save lpj145/46db1a935bac72a5868dcf9a58e444f5 to your computer and use it in GitHub Desktop.
Estrutura de ICMS
export const ORIGEM = [
'0 – Nacional, exceto as indicadas nos códigos 3, 4, 5 e 8;',
'1 – Estrangeira – Importação direta, exceto a indicada no código 6;',
'2 – Estrangeira – Adquirida no mercado interno, exceto a indicada no código 7;',
'3 – Nacional, mercadoria ou bem com Conteúdo de Im…) e igual ou inferior a 70% (setenta por cento) ;',
'4 – Nacional, cuja produção tenha sido feita em co….248/1991, 8.387/1991, 10.176/2001 e 11.484/2007;',
'5 – Nacional, mercadoria ou bem com Conteúdo de Importação inferior ou igual a 40%;',
'6 – Estrangeira – Importação direta, sem similar n…stante em lista de Resolução Camex e gás natural;',
'7 – Estrangeira – Adquirida no mercado interno, se…stante em lista de Resolução Camex e gás natural.',
'8 – Nacional – Mercadoria ou bem com Conteúdo de Importação superior a 70% (setenta por cento).'
]
export const ICMS_CSOSN = [
'101 - Tributada pelo Simples Nacional com permissão de crédito',
'102 - Tributada pelo Simples Nacional sem permissão de crédito',
'103 - Isenção do ICMS no Simples Nacional para faixa de receita bruta',
'201 - Tributada pelo Simples Nacional com permissão com cobrança do ICMS por substituição tributária',
'202 - Tributada pelo Simples Nacional sem permissão com cobrança do ICMS por substituição tributária',
'203 - Isenção do ICMS no Simples Nacional para faixa com cobrança do ICMS por substituição tributária',
'300 - Imune',
'400 - Não tributada pelo Simples Nacional',
'500 - ICMS cobrado anteriormente por substituição tributária (substituído) ou por antecipação',
'900 - Outros',
]
export const ICMS_CSOSN_SCHEMA = [
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: 'Alíquota aplicável',
field: 'pCredSN',
attrs: {
type: 'number'
}
},
{
label: 'Valor do crédito',
field: 'vCredICMSSN',
attrs: {
type: 'number'
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '101'
}
}
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '102'
}
}
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '103'
}
}
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '201'
}
},
{
label: 'Modalidade',
field: 'modBCST',
component: 'app-select',
attrs: {
items: [
"0=Preço tabelado ou máximo sugerido",
"1=Lista Negativa (valor)",
"2=Lista Positiva (valor)",
"3=Lista Neutra (valor)",
"4=Margem Valor Agregado (%)",
"5=Pauta (valor)"
]
}
},
{
label: 'Percentual de Margem',
field: 'pMVAST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual de Redução',
field: 'pRedBCST',
attrs: {
type: 'number'
}
},
{
label: 'Valor BC ICMS ST',
field: 'vBCST',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota ICMS ST',
field: 'pICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor ICMS ST',
field: 'vICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Base de Cálculo FCP',
field: 'vBCFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual do FCP retido por ST',
field: 'pFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do FCP retido por ST',
field: 'vFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota aplicável do crédito',
field: 'pCredSN',
attrs: {
type: 'number'
}
},
{
label: 'Valor do crédito ICMS',
field: 'vCredICMSSN',
attrs: {
type: 'number'
}
}
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '202'
}
},
{
label: 'Modalidade',
field: 'modBCST',
component: 'app-select',
attrs: {
items: [
"0=Preço tabelado ou máximo sugerido",
"1=Lista Negativa (valor)",
"2=Lista Positiva (valor)",
"3=Lista Neutra (valor)",
"4=Margem Valor Agregado (%)",
"5=Pauta (valor)"
]
}
},
{
label: 'Percentual de Margem ICMS ST',
field: 'pMVAST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual da Redução de BC ICMS ST',
field: 'pRedBCST',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do ICMS ST',
field: 'vBCST',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota do ICMS ST',
field: 'pICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do ICMS ST',
field: 'vICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do FCP',
field: 'vBCFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual do FCP retido',
field: 'pFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do FCP retido por ST',
field: 'vFCPST',
attrs: {
type: 'number'
}
},
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '202'
}
},
{
label: 'Modalidade',
field: 'modBCST',
component: 'app-select',
attrs: {
items: [
"0=Preço tabelado ou máximo sugerido",
"1=Lista Negativa (valor)",
"2=Lista Positiva (valor)",
"3=Lista Neutra (valor)",
"4=Margem Valor Agregado (%)",
"5=Pauta (valor)"
]
}
},
{
label: 'Percentual de Margem ICMS ST',
field: 'pMVAST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual da Redução de BC ICMS ST',
field: 'pRedBCST',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do ICMS ST',
field: 'vBCST',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota do ICMS ST',
field: 'pICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do ICMS ST',
field: 'vICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do FCP',
field: 'vBCFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual do FCP retido',
field: 'pFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do FCP retido por ST',
field: 'vFCPST',
attrs: {
type: 'number'
}
},
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '102'
}
}
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '102'
}
}
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '500'
}
},
{
label: 'Valor da BC ICMS ST retido',
field: 'vBCSTRet',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota suportada pelo consumidor final',
field: 'pST',
attrs: {
type: 'number'
}
},
{
label: 'Valor ICMS próprio ST',
field: 'vICMSSubstituto',
attrs: {
type: 'number'
}
},
{
label: 'Valor ICMS ST retido',
field: 'vICMSSTRet',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do FCP retido',
field: 'vBCFCPSTRet',
attrs: {
type: 'number'
}
},
{
label: 'Percentual do FCP retido',
field: 'pFCPSTRet',
attrs: {
type: 'number'
}
},
{
label: 'Valor do FCP retido por ST',
field: 'vFCPSTRet',
attrs: {
type: 'number'
}
},
{
label: 'Percentual da BC efetiva',
field: 'pRedBCEfet',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC efetiva',
field: 'vBCEfet',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota ICMS efetiva',
field: 'pICMSEfet',
attrs: {
type: 'number'
}
},
{
label: 'Valor do ICMS efetivo',
field: 'vICMSEfet',
attrs: {
type: 'number',
readonly: true,
}
},
],
[
{
label: 'Origem',
field: 'orig',
component: 'app-select',
attrs: {
items: ORIGEM
}
},
{
label: '',
field: 'CSOSN',
attrs: {
value: '900'
}
},
{
label: 'Modalidade',
field: 'modBC',
component: 'app-select',
attrs: {
items: [
"0=Margem de valor agregado(%)",
"1=Pauta (valor)",
"2=Preço Tabelado Max",
"3=Valor da operação",
]
}
},
{
label: 'Valor da BC ICMS',
field: 'vBC',
attrs: {
type: 'number'
}
},
{
label: 'Percentual de Redução da BC',
field: 'pRedBC',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota do imposto',
field: 'pICMS',
attrs: {
type: 'number'
}
},
{
label: 'Valor ICMS',
field: 'vICMS',
attrs: {
type: 'number'
}
},
{
label: 'Modalidade',
field: 'modBCST',
component: 'app-select',
attrs: {
items: [
'0=Preço tabelado ou máximo sugerido',
'1=Lista Negativa (valor)',
'2=Lista Positiva (valor)',
'3=Lista Neutra (valor)',
'4=Margem Valor Agregado (%)',
'5=Pauta (valor)'
]
}
},
{
label: 'Percentual de MVA do ICMS ST',
field: 'pMVAST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual de redução da BC do ICMS ST',
field: 'pRedBCST',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do ICMS ST',
field: 'vBCST',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota do ICMS ST',
field: 'pICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do ICMS ST',
field: 'vICMSST',
attrs: {
type: 'number'
}
},
{
label: 'Valor da BC do FCP retido por ST',
field: 'vBCFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Percentual do FCP retido por ST',
field: 'pFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Valor do FCP retido por ST',
field: 'vFCPST',
attrs: {
type: 'number'
}
},
{
label: 'Alíquota aplicável do crédito',
field: 'pCredSN',
attrs: {
type: 'number'
}
},
{
label: 'Valor do crédito ICMS',
field: 'vCredICMSSN',
attrs: {
type: 'number'
}
},
],
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment