_getPredictedSales
Last updated
Last updated
FM_api('Quotes_getPredictedSales', ['daysFrom' => '-353', 'daysTo' => '7', 'customer_id' => '6', 'notes' => '', 'status' => '', 'user_id' => ''])""select sum(total_net) as total_net, sum(profit) as profit, sale_chance from user82878_quotes where cdate>=date_add(date(now()), interval 0 day) and date(cdate)<=date_add(date(now()), interval 0 day) and customer_id=6 and status=0 group by sale_chance""