Browse Source

fixed #42

ali 3 years ago
parent
commit
aef29108a3
1 changed files with 1 additions and 49 deletions
  1. 1 49
      src/models/Invoice.js

+ 1 - 49
src/models/Invoice.js

@@ -86,43 +86,7 @@ class Invoice extends Model {
         ]
       }
     }
-    //
-    // this.statusEnums = [
-    //   {
-    //     label: 'در حال تأیید',
-    //     value: 'VERIFYING'
-    //   },
-    //   {
-    //     label: 'لغو شد',
-    //     value: 'CANCELED'
-    //   },
-    //   {
-    //     label: 'تأیید نشده',
-    //     value: 'NOT_VERIFIED'
-    //   },
-    //   {
-    //     label: 'درحال پرداخت',
-    //     value: 'PAYING'
-    //   },
-    //   {
-    //     label: 'درحال تایید پرداخت',
-    //     value: 'TRANSACTION_VERIFYING'
-    //   },
-    //   {
-    //     label: 'پرداخت شده',
-    //     value: 'PAID_FULL'
-    //   },
-    //   {
-    //     label: 'درحال پرداخت اقساط',
-    //     value: 'PAYING_IN_INSTALMENT'
-    //   },
-    //   {
-    //     label: 'اقساط پرداخت شده',
-    //     value: 'PAID_IN_INSTALMENT'
-    //   }
-    // ]
-    //
-    // this.loadStatusInfo()
+
     this.loadEnums()
   }
 
@@ -143,18 +107,6 @@ class Invoice extends Model {
       this[enumItem.infoKey] = target
     }
   }
-
-  loadStatusInfo () {
-    const target = this.statusEnums.find(type => type.value === this.status)
-    if (!target) {
-      this.status_info = {
-        label: null,
-        value: null
-      }
-    } else {
-      this.status_info = target
-    }
-  }
 }
 
 class InvoiceList extends Collection {