Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: refund #470

Merged
merged 10 commits into from
Oct 10, 2023
4 changes: 3 additions & 1 deletion pallets/genetic-analysis-orders/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ where
}

pub fn can_refunded(self) -> Option<Self> {
if self.status == GeneticAnalysisOrderStatus::Paid {
if self.status == GeneticAnalysisOrderStatus::Paid ||
self.status == GeneticAnalysisOrderStatus::Failed
{
Some(self)
} else {
None
Expand Down
Loading