Árvore de páginas

01. DADOS GERAIS

Produto:

TOTVS Varejo Lojas

Linha de Produto:

Linha Protheus

Segmento:

Varejo

Módulo:Controle de Lojas (SIGALOJA)
Função:

LjCadAux

País:Brasil
Ticket:Não há
Issue:DVARLOJ1-6440

02. SITUAÇÃO/REQUISITO

Disponibilizar mecanismos para efetuar o cadastro de Forma de Pagamento

Disponibilizar rotina/interface para efetuar o cadastro de Forma de Pagamento, para integração com PDV Sync.

03. SOLUÇÃO

Disponibilizada interface para efetuar os cadastros de Forma de Pagamento, no seguinte caminho:

Modulo SIGALOJA

> Atualizações > Smart Connector > Cadastros > Cad. Auxiliares

FORMA DE PAGAMENTO


Criado Json com layout (MIG) para montagem da tela de Forma de Pagamento no seguinte schema:

MIG - Layout Forma de Pagamento
{
	"Components": [
		{
			"ContentType": "String",
			"IdComponent": "forma",
			"Component": {
				"ComponentType": "GET",
				"Parameters": {
					"List": null,
					"Size": 3,
					"F3": "24",
					"Required": true,
					"Picture": null,
					"Valid": "ExistCpo('SX5', '24' + xValor) .And. LjAuxValid('FORMA DE PAGAMENTO', 'forma', xValor)",
					"CanChange": true,
					"Trigger": {
						"TargetIdField": "descricao",
						"SetValue": "Alltrim(SX5->X5_DESCRI)"
					}
				},
				"ComponentLabel": "Forma"
			},
			"ComponentContent": ""
		},
		{
			"ContentType": "String",
			"IdComponent": "descricao",
			"Component": {
				"ComponentType": "GET",
				"Parameters": {
					"List": null,
					"Size": 40,
					"F3": null,
					"Required": false,
					"Picture": null,
					"Valid": null,
					"CanChange": false,
					"Trigger": null
				},
				"ComponentLabel": "Descrição"
			},
			"ComponentContent": ""
		},
		{
			"ContentType": "String",
			"IdComponent": "descricaofiscal",
			"Component": {
				"ComponentType": "GET",
				"Parameters": {
					"List": null,
					"Size": 20,
					"F3": null,
					"Required": true,
					"Picture": null,
					"Valid": null,
					"CanChange": true,
					"Trigger": null
				},
				"ComponentLabel": "Descrição Fiscal"
			},
			"ComponentContent": ""
		},
		{
			"ContentType": "Logical",
			"IdComponent": "permitetroco",
			"Component": {
				"ComponentType": "CheckBox",
				"Parameters": {
					"List": null,
					"Size": 1,
					"F3": null,
					"Required": null,
					"Picture": null,
					"Valid": null,
					"CanChange": true,
					"Trigger": null
				},
				"ComponentLabel": "Permite Troco"
			},
			"ComponentContent": false
		},
		{
			"ContentType": "String",
			"IdComponent": "idFormaPagamentoTroco",
			"Component": {
				"ComponentType": "GET",
				"Parameters": {
					"List": null,
					"Size": 30,
					"F3": "{|| LjCadAuxF3('MIH', \"AllTrim(MIH->MIH_TIPCAD) == 'FORMA DE PAGAMENTO' .And. MIH->MIH_DESC <> FwFldGet('MIH_DESC') .And. MIH->MIH_ATIVO == '1'\", '1')}",
					"Required": false,
					"Picture": "@!",
					"Valid": "Vazio() .Or. ExistCpo('MIH', PadR('FORMA DE PAGAMENTO', TamSx3('MIH_TIPCAD')[1]) + xValor, 4)",
					"CanChange": true,
					"Trigger": null
				},
				"ComponentLabel": "Forma Pagamento Troco"
			},
			"ComponentContent": ""
		},
		{
			"ContentType": "Number",
			"IdComponent": "valorminimoaceito",
			"Component": {
				"ComponentType": "GET",
				"Parameters": {
					"List": null,
					"Size": 16,
					"F3": null,
					"Required": true,
					"Picture": "@E 9,999,999,999,999.99",
					"Valid": null,
					"CanChange": true,
					"Trigger": null
				},
				"ComponentLabel": "Valor Minimo Aceito"
			},
			"ComponentContent": ""
		},
		{
			"ContentType": "String",
			"IdComponent": "tipo",
			"Component": {
				"ComponentType": "COMBO",
				"Parameters": {
					"Size": 16,
					"F3": null,
					"Required": true,
					"Picture": null,
					"Valid": null,
					"CanChange": true,
					"Trigger": null,
					"List": [
						"",
						"DINHEIRO",
						"DEBITO",
						"GIFT",
						"OUTROS",
						"CREDITO",
						"TROCA",
						"CHEQUE",
						"POS",
						"QRCODE"
					]
				},
				"ComponentLabel": "Tipo Forma Pagamento"
			},
			"ComponentContent": ""
		}
	],
	"LayoutVersion": 1.1
}

04. DEMAIS INFORMAÇÕES

Importante

Esta melhoria estará disponível mediante atualização de pacote acumulado do Varejo e execução de UpdDistr, com a data igual ou posterior à 23/09/2021.

Serão criadas 2 novas tabelas:

  • MIG - Layouts de Cadastros
  • MIH - Cadastros Auxiliares

05. ASSUNTOS RELACIONADOS