Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Bloco de código
titleLayout Publicação
{
	"L1_FILIAL": "D MG 01",
	"L1_CLIENTE": "&IIF( Empty(self:oRegistro['IdentificacaoCliente']), SuperGetMv('MV_CLIPAD', .F., '000001'), self:DePara('SA1', self:oRegistro['IdentificacaoCliente'], 2, 0) )",
	"L1_LOJA": "&IIF( Empty(self:oRegistro['IdentificacaoCliente']), SuperGetMv('MV_LOJAPAD', .F., '01'), self:DePara('SA1', self:oRegistro['IdentificacaoCliente'], 3, 0) )",
	"L1_OPERADO": "C06",
	"L1_EMISSAO": "&self:oRegistro['VendaData']",
	"L1_EMISNF": "&self:oRegistro['VendaData']",
	"L1_DTLIM": "&self:oRegistro['VendaData']",
	"L1_NUMMOV": "&SubStr(cValToChar(self:oRegistro['IdCaixa']),1,2)",
	"L1_NUMCFIS": "&self:oRegistro['Ccf']",
	"L1_DOC": "&self:oRegistro['Ccf']",
	"L1_SERIE": "&self:LayEstAuto('LG_SERIE')",
	"L1_SERPDV": "&cValToChar(self:oRegistro['SerieNota'])",
	"L1_SERSAT": "&IIF(self:oRegistro['ModeloFiscal'] == 1, self:oRegistro['Periferico']['NumeroSerie'], '')",
	"L1_KEYNFCE": "&self:oRegistro['Chaveacesso']",
	"L1_COMIS": 0,
	"L1_VLRTOT": "&self:oXmlSefaz:getTotal({'ICMSTot', 'vProd'}) - self:oXmlSefaz:getTotal({'ICMSTot', 'vDesc'}, 0) - self:oXmlSefaz:getTotal({'DescAcrEntr', 'vDescSubtot'}, 0)",
	"L1_VALBRUT": "&self:oXmlSefaz:getTotal({'ICMSTot', 'vProd'}) - self:oXmlSefaz:getTotal({'ICMSTot', 'vDesc'}, 0) - self:oXmlSefaz:getTotal({'DescAcrEntr', 'vDescSubtot'}, 0)",
	"L1_VLRLIQ": "&self:oXmlSefaz:getTotal({'ICMSTot', 'vProd'}) - self:oXmlSefaz:getTotal({'ICMSTot', 'vDesc'}, 0) - self:oXmlSefaz:getTotal({'DescAcrEntr', 'vDescSubtot'}, 0)",
	"L1_VALMERC": "&self:oXmlSefaz:getTotal({'ICMSTot', 'vProd'})",
	"L1_DESCONT": "&IIF(Len(self:oRegistro['VendaDescontoAcrescimos']) > 0 .And. self:oRegistro['VendaDescontoAcrescimos'][1]['Valor'] < 0 , Abs(self:oRegistro['VendaDescontoAcrescimos'][1]['Valor']), 0)",
	"L1_DESPESA": "&IIF(Len(self:oRegistro['VendaDescontoAcrescimos']) > 0 .And. self:oRegistro['VendaDescontoAcrescimos'][1]['Valor'] > 0 , self:oRegistro['VendaDescontoAcrescimos'][1]['Valor'], 0)",
	"L1_ORIGEM": "N",
	"L1_CGCCLI": "&IIF( Empty(self:oRegistro['CpfCnpjConsumidor']), '', self:oRegistro['CpfCnpjConsumidor'] )",
	"L1_CONDPG": "CN",
	"L1_SITUA": "IP",
	"L1_TIPO": "V",
	"L1_TIPOCLI": "F",
	"L1_ESPECIE": "&IIF( self:oRegistro['ModeloFiscal'] == 1, 'SATCE', IIF(self:oRegistro['ModeloFiscal'] == 2, 'NFCE', 'ECF') )",
	"L1_PDV": "&self:LayEstAuto('LG_PDV')",
	"SL2": [
		{
			"L2_FILIAL": "D MG 01",
			"L2_PRODUTO": "&self:oXmlSefaz:getDet({'prod', 'cProd'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_ITEM": "&StrZero(self:oRegistro['VendaItems'][nItem]['Sequencia'], TamSx3('L2_ITEM')[1])",
			"L2_DESCRI": "&self:oXmlSefaz:getDet({'prod', 'xProd'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_QUANT": "&self:oXmlSefaz:getDet({'prod', 'qCom'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_VRUNIT": "&self:oXmlSefaz:getDet({'prod', 'vUnCom'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_VLRITEM": "&self:oXmlSefaz:getDet({'prod', 'vProd'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_LOCAL": "&SuperGetMv('MV_LOCPAD', .F., '01')",
			"L2_UM": "&self:oXmlSefaz:getDet({'prod', 'uCom'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_VALDESC": "&self:oXmlSefaz:getDet({'prod', 'vDesc'}, self:oRegistro['VendaItems'][nItem]['Sequencia'])",
			"L2_DESCPRO": "&self:oXmlSefaz:getDet({'prod', 'vRatDesc'}, self:oRegistro['VendaItems'][nItem]['Sequencia'], 0)",
			"L2_TES": "&SuperGetMv('MV_TESSAI', .F., '501', 'D MG 01')",
			"L2_EMISSAO": "&self:oRegistro['VendaData']",
			"L2_VEND": "&self:GetCadAux(self:oRegistro['VendaItems'][nItem]['Vendedor']['IdRetaguarda'],'OPERADOR DE LOJA','VENDEDOR')",
			"L2_CF": "",
			"L2_PICM": "&self:oXmlSefaz:getDetIcms('pICMS', self:oRegistro['VendaItems'][nItem]['Sequencia'], 0)",
			"L2_VALICM": "&self:oXmlSefaz:getDetIcms('vICMS', self:oRegistro['VendaItems'][nItem]['Sequencia'], 0)",
			"L2_BASEICM": "&self:oXmlSefaz:getDetIcms('vBC', self:oRegistro['VendaItems'][nItem]['Sequencia'], 0)",
			"L2_VALICMMODBC": "&self:oXmlSefaz:getDetIcms('modBC', self:oRegistro['VendaItems'][nItem]['Sequencia'], '0')",
			"L2_CSTPISORIGEM": "&self:oXmlSefaz:getDetIcms('Orig', self:oRegistro['VendaItems'][nItem]['Sequencia'], '0')",
			"L2_CSTCOFCLASFIS": "&self:oXmlSefaz:getDetIcms('Orig', self:oRegistro['VendaItems'][nItem]['Sequencia'], '0') + self:oXmlSefaz:getDetIcms('CST', self:oRegistro['VendaItems'][nItem]['Sequencia'])"
		}
	]
}