Skip to content

Commit

Permalink
fix: refund (#470)
Browse files Browse the repository at this point in the history
* Update impl_genetic_analysis_orders.rs

* Update impl_genetic_analysis_orders.rs

* Update impl_genetic_analysis_orders.rs

* Update impl_genetic_analysis_orders.rs

* Update types.rs

* format fix

* format fix

* Update types.rs
  • Loading branch information
RiXelanya authored Oct 10, 2023
1 parent 9853a41 commit 5f12296
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 5f12296

Please sign in to comment.