mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-16 04:24:23 +00:00
WIP: ProxyOrders don't require an order, calculating total for serialized proxy orders from standing order where order does not exist
This commit is contained in:
@@ -12,5 +12,9 @@ class StandingLineItem < ActiveRecord::Base
|
||||
.any?
|
||||
end
|
||||
|
||||
def total_estimate
|
||||
(price_estimate || 0) * (quantity || 0)
|
||||
end
|
||||
|
||||
default_scope order('id ASC')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user