cFornPDestination supplier, mutable private variable. (Ref. 1)
AdvPL GuideUser Function F290FORNP()Controls destination supplier and store editing on the first FINA290 screen.
The historical TDN page describes locking the destination supplier and store fields. .F. prevents editing; .T. allows it. The standard context exposes mutable private variables cFornP and cLojaP. (TOTVS, ref. 1) The P12.2210 listing places the call in both field WHEN conditions in FA290AUT, without a fourth argument. MV_PAR01 == 2 is another condition: returning .T. does not remove that outer restriction. (Ref. 2)
User Function F290FORNP()cFornPDestination supplier, mutable private variable. (Ref. 1)
cLojaPDestination store, mutable private variable. (Ref. 1)
Logical: .F. locks the fields; .T. allows editing when the other screen conditions are satisfied. (Ref. 1)
#Include "Protheus.ch"
User Function F290FORNP()
// Adapted from the purpose and return documented by TOTVS (ref. 1).
// Called from field WHEN conditions; do not write records here.
// Keeps the current cFornP and cLojaP values.
Return .F.Proposes retaining current values and locking both fields. Does not define a supplier, store or invoicing rule. Example not compiled or run in Protheus.
© 2026 Usina.BR. All rights reserved. TOTVS, Protheus, Microsiga and their respective logos are trademarks of their owners. AdvPL Guide is independent and uses limited, attributed excerpts justified by educational purposes. See the Terms of Use. Terms of Use
Comments
There are no approved comments yet.
Sign in with Google or Microsoft to comment.