mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Show fee estimates in subscription totals in UI
This commit is contained in:
@@ -8,8 +8,11 @@ angular.module("admin.subscriptions").factory 'SubscriptionFunctions', ($injecto
|
||||
subtotal += item.price_estimate * item.quantity
|
||||
, 0
|
||||
|
||||
estimatedFees: ->
|
||||
@shipping_fee_estimate + @payment_fee_estimate
|
||||
|
||||
estimatedTotal: ->
|
||||
@estimatedSubtotal()
|
||||
@estimatedSubtotal() + @estimatedFees()
|
||||
|
||||
customer: ->
|
||||
return unless @customer_id
|
||||
|
||||
Reference in New Issue
Block a user