Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Informe agrupado / resumido
#2
He estado intentando hacer esto sin éxito.

Supongo que lo más fácil será lanzar directamente en mysql:

Code:
SELECT accountname as 'Accounts_accountname', concat(vtiger_invoice.currency_id,'::',sum(total)) as 'Invoice_Total',
vtiger_account.accountid as 'LBL_ACTION'
from vtiger_invoice
inner join vtiger_crmentity on crmid=vtiger_invoice.invoiceid
inner join vtiger_account on vtiger_invoice.accountid=vtiger_account.accountid
WHERE vtiger_invoice.invoiceid > 0 AND deleted=0
group by vtiger_invoice.accountid ,vtiger_invoice.currency_id
having sum(vtiger_invoice.total) >= 3000
Joe
TSolucio
Reply


Messages In This Thread
Informe agrupado / resumido - JesusPC - 10-13-2017, 12:02 PM
RE: Informe agrupado / resumido - joebordes - 10-13-2017, 11:03 PM
RE: Informe agrupado / resumido - JesusPC - 10-14-2017, 10:09 AM
RE: Informe agrupado / resumido - JesusPC - 10-14-2017, 04:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)