Treating nil as zero in sum function

后端 未结 3 443
遥遥无期
遥遥无期 2020-12-15 04:37

I have a Seller model that has_many Items.

I want to get the total sale price of all of a Seller\'s items.

In seller.rb I have

def total_item         


        
3条回答
提交回复
热议问题