Yii Framework Forum: Cgridview Balance Amount - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cgridview Balance Amount Rate Topic: -----

#1 User is offline   nixnix 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 04-May 11

Posted 11 October 2012 - 03:01 AM

I have problem for calculate the balance every row. for example :

1. product A amount(100) balance(100)
2. product B amount( 50) balance(150)
3. product C amount( 30) balance(180)

the problem is i must call stupid function every row
please help me/us
0

#2 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 12 October 2012 - 01:38 PM

/* Moved from Feature Requests to General Discussion */

Perhaps you could be a bit more careful about where you post your questions? ;)
"Less noise - more signal"
0

#3 User is offline   compact_corpse 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 62
  • Joined: 24-May 11

Posted 12 October 2012 - 10:39 PM

This might be what you want: http://www.yiiframew...in-a-cgridview/
0

#4 User is offline   nixnix 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 04-May 11

Posted 15 October 2012 - 02:40 AM

View Postcompact_corpse, on 12 October 2012 - 10:39 PM, said:

This might be what you want: http://www.yiiframew...in-a-cgridview/


Thanks save my time .. ^^

	public function gridBankBalance($data,$row)
	{
		$this->balance += $this->gridBankAmnt($data,$row);
		return $this->balance;
	}

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users