Árvore de páginas

Versões comparadas

Chave

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

...

#INCLUDE 'PROTHEUS.CH'
#INCLUDE 'TOTVS.CH'  
User Function MT46DTEN()
    Local dDtEntrega    := cTod("//")
    Local lMata410      := ProcName(2) == "Ma410PvNfs" //Pedido de Vendas
    Local lMata461      := ProcName(2) == "Ma460Nota"// Documento de Saida
 
    If lMata410
        msgyesno("PE MT46DTEN","PE-MT46DTEN  - PEDIDO: MT46DTEN")
        dDtEntrega := cTod("30/01/2026")
    EndIf
 
    If lMata461
        msgyesno("PE MT46DTEN","PE-MT46DTEN  ")
        dDtEntrega := cTod("30/12/2027")
    EndIf
 
Return dDtEntrega

...