mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-21 00:47:26 +00:00
Add #vouchers, return an array of voucher adjustments
This commit is contained in:
committed by
Maikel Linke
parent
9b680e1a92
commit
3ec58d8791
@@ -618,6 +618,10 @@ module Spree
|
||||
end
|
||||
end
|
||||
|
||||
def vouchers
|
||||
adjustments.where(originator_type: 'Voucher')
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def fee_handler
|
||||
|
||||
Reference in New Issue
Block a user