WhilePrintingRecords;
BooleanVar UltimaPag;
BooleanVar FazRetencao;
If Not FazRetencao OR Not {DocumentosVenda.LiquidacaoAutomatica} Then
(
if UltimaPag then
// ToText( FetchNumberVar( "TotalAPagar" ) - {CabecDoc.TotalRetencao})
totext(CRWArredonda( FetchNumberVar( "TotalAPagar" ) ,{Moedas.DecArredonda}),2)
else
""
)
Else
(
if UltimaPag then
totext(CRWArredonda( FetchNumberVar( "TotalAPagar" ) - {CabecDoc.TotalRetencao} ,{Moedas.DecArredonda}),2)
else
""
)
|