Add #vouchers, return an array of voucher adjustments

This commit is contained in:
Gaetan Craig-Riou
2023-03-15 14:07:21 +11:00
committed by Maikel Linke
parent 9b680e1a92
commit 3ec58d8791
2 changed files with 21 additions and 0 deletions

View File

@@ -618,6 +618,10 @@ module Spree
end
end
def vouchers
adjustments.where(originator_type: 'Voucher')
end
private
def fee_handler