Histórico da Página
...
tt_api_acr_aprop_liq_antec.tta_val_abtdo_antecip
Tabela Temporária | Descrição | Entrada/Saída |
tt_integr_perext_item_impl_acr | Contém informações para a tabela de extensão dos itens do lote, para a localização Peru | Input |
Atributo | Tipo | Formato | Descrição | Obrigatório | Observação |
tta_cod_estab | character | x(3) | Estabelecimento do Lote | Sim | |
tta_cod_refer | character | x(10) | Referência do Lote | Sim | |
tta_num_seq_refer | integer | >>>9 | Sequência do Item do Lote | Sim | |
tta_des_letra | character | x(1) | Letra do Comprovante | Não | |
tta_num_pto_vta | integer | >>>9 | Ponto de Venda | Não | |
tta_val_gravado | decimal | ->>>,>>>,>>9.99 | Valor Tributado | Sim | |
tta_val_no_gravado | decimal | ->>>,>>>,>>9.99 | Valor não Tributado | Não | |
tta_val_exento | decimal | ->>>,>>>,>>9.99 | Valor Isento | Sim | |
tta_val_brut | decimal | ->>>,>>>,>>9.99 | Valor Bruto | Sim | |
tta_val_neto | decimal | ->>>,>>>,>>9.99 | Valor Líquido | Sim |
def temp-table tt_integr_perext_item_impl_acr no-undo
field tta_cod_estab as character format "x(5)" label "Estabelecimento" column-label "Estab"
field tta_cod_refer as character format "x(10)" label "Referência" column-label "Referência"
field tta_num_seq_refer as integer format ">>>9" initial 0 label "Sequência" column-label "Seq"
field tta_des_letra as character format "A" label "Letra Comp." column-label "Letra Comp."
field tta_num_pto_vta as integer format ">>>9" initial 0 label "Ponto Venda" column-label "Pto Vda"
field tta_val_gravado as decimal format "->>>,>>>,>>9.99" decimals 2 initial 0 label "Tributado" column-label "Tributado"
field tta_val_no_gravado as decimal format "->>>,>>>,>>9.99" decimals 2 initial 0 label "Não Tributado" column-label "Não Tributado"
field tta_val_exento as decimal format "->>>,>>>,>>9.99" decimals 2 initial 0 label "Isento" column-label "Isento"
field tta_val_brut as decimal format "->>>,>>>,>>9.99" decimals 2 initial 0 label "Valor Bruto" column-label "Bruto"
field tta_val_neto as decimal format "->>>,>>>,>>9.99" decimals 2 initial 0 label "Líquido" column-label "Líquido"
field tta_cod_livre_1 as character format "x(100)" label "Livre 1" column-label "Livre 1"
field tta_cod_livre_2 as character format "x(100)" label "Livre 2" column-label "Livre 2"
field tta_log_livre_1 as logical format "Sim/Não" initial no label "Livre 1" column-label "Livre 1"
field tta_log_livre_2 as logical format "Sim/Não" initial no label "Livre 2" column-label "Livre 2"
field tta_num_livre_1 as integer format ">>>>>9" initial 0 label "Livre 1" column-label "Livre 1"
field tta_num_livre_2 as integer format ">>>>>9" initial 0 label "Livre 2" column-label "Livre 2"
field tta_val_livre_1 as decimal format ">>>,>>>,>>9.9999" decimals 4 initial 0 label "Livre 1" column-label "Livre 1"
field tta_val_livre_2 as decimal format ">>>,>>>,>>9.9999" decimals 4 initial 0 label "Livre 2" column-label "Livre 2"
field tta_dat_livre_1 as date format "99/99/9999" initial ? label "Início Período" column-label "Livre 1"
field tta_dat_livre_2 as date format "99/99/9999" initial ? label "Fim Período" column-label "Livre 2"
index tt_prxttmlt_id is primary unique
tta_cod_estab ascending
tta_cod_refer ascending
tta_num_seq_refer ascending
.
Tabela Temporária | Descrição | Entrada/Saída |
tt_api_acr_docto_mais_negoc | Utilizada exclusivamente pelo produto TOTVS Techfin Mais Negócios | Input |
Considerações (Importante)
...
Tabela Temporária | Descrição | Entrada/Saída |
tt_api_params_generic_api | Conterá campos novos das temp-tables passadas como parâmetro. | Input / Output |
Atributo | Tipo | Formato | Descrição | Obrig.Evol. | Observação | |
ttv_cod_recrow_id | recid | character | x(80) | Identificador>>>>>>9 | ||
ttv_cod_tabela | character | X(28) | Tabela | |||
ttv_cod_campo | character | X(25) | Campo | |||
ttv_cod_valor | character | X(8) | Valor |
Def new shared def temp-table tt_api_params_generic _api no-undo
field ttv_rec_id as recid format ">>>>>>9" cod_row_id as character format "x(80)"
field ttv_cod_tabela tabela as character format "x(28)" label "Tabela" column-label "Tabela"
field ttv_cod_campo as campo as character format "x(2535)" label "Campo" column-label "Campo"
field ttv_cod_valor as valor as character format "x(8)" label "Valor" column-label "Valor"
index tt_idx_param_generic generic is primary unique
ttv_cod_tabela ascending
ttv_rec_id ascending
ttv_cod_campo ascendingtabela ascending
ttv_cod_row_id ascending
ttv_cod_campo ascending
.
Exemplo Criação temp-table tt_api_params_generic_api para para campo SAFRA:
create tt_api_params_generic_api.
assign tt_api_params_generic_api.ttv_cod_recrow_id id = (Campo Recid identificador da temp-table de item) tt_integrapi_acr_item_lote_impl_9.ttv_cod_recid_item_lote_impl_tit_acr
tt_api_params_generic_api.ttv_cod_campo = 'Safra':U
tt tt_api_params_generic_api.ttv_cod_tabela = 'tt_integrapi_acr_item_lote_impl':U
tt_api_params_generic_api.ttv_cod_valor = (Valor Da Safra).
Exemplo Criação temp-table tt_api_params_generic_api para para campo NÚMERO DO CONTRATO:
create tt_api_params_generic_api.
assign tt_api_params_generic_api.ttv_cod_recrow_id = (Campo Recid identificador da temp-table de item) tt_integrapi_acr_item_lote_impl_9.ttv_reccod_id_item_lote_impl_tit_acr
tt_api_params_generic_api.ttv_cod_campo = 'cod_contrato':U
tt tt_api_params_generic_api.ttv_cod_tabela = 'tt_integrapi_acr_item_lote_impl':U
tt_api_params_generic_api.ttv_cod_valor = (Valor Do Contrato).
...
Exemplo Criação temp-table tt_paramsapi_generic_api para campo Devolve Imposto Retido?:
...