Hi,
How can i change the select so the debtornumer is not only 90049 but all. So no filter on debtornumber
SQL
SELECTReportingDate,InvoiceNumber,SupplierInvoiceNumber,banktransactions.DescriptionASDescription,DueDate,(((ISNULL(InvoiceAmount,0)+ISNULL(Other,0)+ISNULL(DiscSurc,0))-ISNULL(ReceiptPaid,0)))ASSaldo,TCCode,(InvoiceAmountTC+ISNULL(DiscSurc,0))ASOrigInvAmtTC,(CASEWHEN((ReceiptPaidTCISNULL)OR(TCCode<>TCCodeS))THENNULLELSE(ISNULL(InvoiceAmountTC,0)+ISNULL(OtherTC,0)+ISNULL(DiscSurc,0)-ISNULL(ReceiptPaidTC,0))END)ASSaldoTC,(CASEWHEN(CASEWHEN(ROUND(ISNULL(OtherInvoice,0),2)=0.0)THENReceiptPaid*-1ELSE(ISNULL(OtherInvoice,2))-(CASEWHEN(ROUND(ISNULL(ABS(ReceiptPaid),0),2)>(ROUND(ISNULL(OtherInvoice,0),2))ANDROUND(ReceiptPaid,2)<>0.00)THEN(ISNULL(OtherInvoice,2))...