Dim i As Integer =DataTables("订单附表").Compute("sum(订单核算_合计)","绑定号='" & e.DataRow("绑定号") & "' and 收款信息_开piao状态 In ('未开piao','核对中') and 业务往来_方式='订单'")
dr("财务_待开piao")=i