Como criar filtro por legenda em Contratos de Parceria no módulo de Compras?
Como criar filtro por legenda em Contratos de Parceria no módulo de Compras?
Olá Sabrina, seguem os pontos de entrada
/*/{Protheus.doc} User Function MT125LEG
(long_description)
@type Function
@author Leandro Lemos
@since 27/04/2023
@version P12
@param param_name, param_type, param_descr
@return return_var, return_type, return_description
@example
(examples)
@see (
https://tdn.totvs.com/pages/releaseview.action?pageId=6085668
https://tdn.totvs.com/pages/releaseview.action?pageId=6085669
)
/*/
User Function MT125LEG()
Local aNewLegenda := aClone(PARAMIXB[1]) // aLegendaa
Add(aNewLegenda,{'BR_PINK' , '** Legenda Adcional'})
Return (aNewLegenda)
/*/{Protheus.doc} User Function MT125COR
(long_description)
@type Function
@author Leandro Lemos
@since 27/04/2023
@version P12
@param param_name, param_type, param_descr
@return return_var, return_type, return_description
@example
(examples)
@see (
https://tdn.totvs.com/pages/releaseview.action?pageId=6085668
https://tdn.totvs.com/pages/releaseview.action?pageId=6085669
)
/*/
User Function MT125COR()
Local aNewCores := {}
aAdd(aNewCores,{ '!Empty(C3_RESIDUO)' , 'BR_CINZA'}) //Eliminado por Residuo
aAdd(aNewCores,{ 'C3_CONAPRO=="B".And.C3_QUJE < C3_QUANT' , 'BR_AZUL' }) //Bloqueado
aAdd(aNewCores,{ 'C3_QUJE==0' , 'ENABLE' }) //Pendente
aAdd(aNewCores,{ 'C3_QUJE<>0.And.C3_QUJE=C3_QUANT .And. C3_IPI ==0' , 'DISABLE' }) //Atendido
aAdd(aNewCores,{ 'C3_IPI>0' , 'BR_PINK' }) //-- Legenda Adcional
Return (aNewCores)