[IMP]improved code for get sum of all draft invoices amount