[Vtigercrm-commits] [Vtiger development] #7938: SalesOrder recurring invoice, does not create invoice at proper interval

Vtiger development vtiger-tickets at trac.vtiger.com
Tue Mar 11 15:23:06 GMT 2014


#7938: SalesOrder recurring invoice,does not create invoice at proper interval
------------------------+------------------------
 Reporter:  uma.s       |       Owner:  developer
     Type:  defect      |      Status:  closed
 Priority:  unassigned  |   Milestone:  6.1.0
Component:  vtigercrm   |     Version:  6.0.0
 Severity:  Medium      |  Resolution:  fixed
 Keywords:              |
------------------------+------------------------

Comment (by dubwise):

 Not fixed for me, I had to put CreateInvoice function before
 $adb->pquery...

 Working code :
 {{{
         if(strtotime($nextRecurringDate) == strtotime(date('Y-m-d'))) {
                 $adb->pquery('update vtiger_invoice_recurring_info SET
 last_recurring_date = ? WHERE salesorderid = ?', array($nextRecurringDate,
 $salesorder_id));
                 createInvoice($salesorder_id);
         }
 }}}

 Not working code :

 {{{
         if(strtotime($nextRecurringDate) == strtotime(date('Y-m-d'))) {
                 createInvoice($salesorder_id);
                 $adb->pquery('update vtiger_invoice_recurring_info SET
 last_recurring_date = ? WHERE salesorderid = ?', array($nextRecurringDate,
 $salesorder_id));
         }
 }}}


 http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Sales-orders-
 please-help-me-td9148.html#a9659

--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7938#comment:4>
Vtiger development <http://trac.vtiger.com/>
Vtiger CRM


More information about the vtigercrm-commits mailing list