This commit is contained in:
funa 2026-05-25 15:22:18 +08:00
parent 1b33db51a9
commit d13f259718

View File

@ -157,7 +157,7 @@ begin
SQL.Clear; SQL.Clear;
Filtered := False; Filtered := False;
sql.Add('select *,NWoAmount=Amount-isnull(FFWoAmount,0),CurWoAmount=0.00,CurSXFAmount=0.00,CurJHExchangeRate=0.0000 '); sql.Add('select *,NWoAmount=Amount-isnull(FFWoAmount,0),CurWoAmount=0.00,CurSXFAmount=0.00,CurJHExchangeRate=0.0000 ');
SQL.Add(',JHSTATUS=(SELECT STATUS FROM Trade_Plan_Main F WHERE F.ORDERNO=C.ORDERNO )'); SQL.Add(',JHSTATUS=(SELECT STATUS FROM Trade_Plan_Main F WHERE F.ORDERNO=A.ORDERNO )');
sql.Add('from Finance_Flow A '); sql.Add('from Finance_Flow A ');
sql.Add(' where Amount-isnull(FFWoAmount,0)<>0'); sql.Add(' where Amount-isnull(FFWoAmount,0)<>0');
sql.Add(' and FFType=' + quotedstr(trim('壇澗운되션'))); sql.Add(' and FFType=' + quotedstr(trim('壇澗운되션')));