File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -158,15 +158,13 @@ public function changeIdentity(Varien_Event_Observer $event)
158158 if (is_object ($ order_totals )) {
159159 $ order_totals
160160 ->addFieldToFilter ('customer_id ' , $ customer ->getId ())
161- ->addFieldToFilter ('status ' , Mage_Sales_Model_Order::STATE_COMPLETE )
162- ;
161+ ->addFieldToFilter ('status ' , Mage_Sales_Model_Order::STATE_COMPLETE );
163162
164163 $ order_totals ->getSelect ()
165164 ->reset (Zend_Db_Select::COLUMNS )
166165 ->columns (new Zend_Db_Expr ("SUM(grand_total) as total " ))
167166 ->columns (new Zend_Db_Expr ("AVG(grand_total) as avg_total " ))
168- ->group ('customer_id ' )
169- ;
167+ ->group ('customer_id ' );
170168
171169 if (count ($ order_totals ) > 0 ) {
172170 $ sum = (float ) $ order_totals ->getFirstItem ()->getTotal ();
You can’t perform that action at this time.
0 commit comments