瀏覽代碼

合同支付,公式相关

MaiXinRong 4 年之前
父節點
當前提交
5a3e07587f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      DataModules/PhasePayDm.pas

+ 1 - 1
DataModules/PhasePayDm.pas

@@ -512,7 +512,7 @@ begin
     for i := 0 to sddPhasePay.RecordCount - 1 do
     begin
       vRec := sddPhasePay.Records[i];
-      if not CheckFormulaWithBase(vRec.ValueByName('Formula0').AsString) and (GetCalcType(vRec.ValueByName('ID').AsInteger) = 2) then
+      if (not CheckFormulaWithBase(vRec.ValueByName('Formula0').AsString)) or (GetCalcType(vRec.ValueByName('ID').AsInteger) = 2) then
         vRec.ValueByName('Formula0').AsString := '';
     end;
   end;