f985 / aaa

0 stars 0 forks source link

Deleting Firebase: add endpoint for "transcationTable" data #42

Open armen181 opened 4 years ago

armen181 commented 4 years ago

We need to create an endpoint for providing data for transcationTable page and please add this example data as test data

example

 "transcationTable": {
      "expenseCategory": [{
            "itmNo": "#itm001",
            "date": "19 Aug 2019",
            "type": "Hotel",
            "typeColor": "primary",
            "companyName": "Witting-Goodwin",
            "amount": 2000,
            "statusColor": "primary",
            "status": "paid"
         },
         {
            "itmNo": "#itm002",
            "date": "22 Mar 2019",
            "type": "Meal",
            "typeColor": "accent",
            "companyName": "Stehr Ltd.",
            "amount": 500,
            "statusColor": "primary",
            "status": "paid"
         },
         {
            "itmNo": "#itm003",
            "date": "30 Sep 2019",
            "type": "car rental",
            "typeColor": "primary",
            "companyName": "Boehm Solutions",
            "amount": 1500,
            "statusColor": "warn",
            "status": "not paid"
         },
         {
            "itmNo": "#itm004",
            "date": "20 Aug 2019",
            "type": "Health",
            "typeColor": "accent",
            "companyName": "Hyatt infotech",
            "amount": 1700,
            "statusColor": "primary",
            "status": "paid"
         },
         {
            "itmNo": "#itm005",
            "date": "13 Jan 2019",
            "type": "accommodation",
            "typeColor": "primary",
            "companyName": "Goldnet infotech",
            "amount": 1290,
            "statusColor": "warn",
            "status": "Not paid"
         },
         {
            "itmNo": "#itm006",
            "date": "24 Mar 2019",
            "type": "Meal",
            "typeColor": "accent",
            "companyName": "Ngrpunu Ltd.",
            "amount": 500,
            "statusColor": "primary",
            "status": "paid"
         },
         {
            "itmNo": "#itm007",
            "date": "30 Jan 2019",
            "type": "accommodation",
            "typeColor": "primary",
            "companyName": "Russel infotech",
            "amount": 1290,
            "statusColor": "warn",
            "status": "Not paid"
         }
      ],
      "transactionList": [{
            "transid": "#trn001",
            "date": "19 Aug 2019",
            "account": "Citibank",
            "type": "Saving",
            "typeColor": "primary",
            "amount": 2000,
            "debit": 1807.00,
            "balance": 430.00
         },
         {
            "transid": "#trn002",
            "date": "22 Mar 2019",
            "account": "Standard Chartered Bank",
            "type": "Income",
            "typeColor": "accent",
            "amount": 500,
            "debit": 1307.00,
            "balance": 330.00
         },
         {
            "transid": "#trn003",
            "date": "30 Sep 2019",
            "account": "HSBC Bank",
            "type": "Expense",
            "typeColor": "warn",
            "amount": 1500,
            "debit": 2307.00,
            "balance": 230.00
         },
         {
            "transid": "#trn004",
            "date": "20 Aug 2019",
            "account": "Deutsche Bank",
            "type": "Income",
            "typeColor": "accent",
            "amount": 1700,
            "debit": 3307.00,
            "balance": 200.00
         },
         {
            "transid": "#trn005",
            "date": "13 Jan 2019",
            "account": "Bank of Scotland",
            "type": "Saving",
            "typeColor": "primary",
            "amount": 1290,
            "debit": 1000.00,
            "balance": 330.00
         },
         {
            "transid": "#trn006",
            "date": "13 Jan 2019",
            "account": "Barclays Bank",
            "type": "Income",
            "typeColor": "accent",
            "amount": 1290,
            "debit": 1500.00,
            "balance": 330.00
         },
         {
            "transid": "#trn007",
            "date": "13 Jan 2019",
            "account": "The Bank of America",
            "type": "Expense",
            "typeColor": "warn",
            "amount": 1290,
            "debit": 1709.00,
            "balance": 430.00
         }
      ],
      "transferreport": [{
            "transid": "#trn001",
            "date": "19 Aug 2019",
            "account": "Citibank",
            "type": "Saving",
            "typeColor": "primary",
            "amount": 2000,
            "balance": 1807.00,
            "statusColor": "primary",
            "status": "Send"
         },
         {
            "transid": "#trn002",
            "date": "22 Mar 2019",
            "account": "Standard Chartered Bank",
            "type": "Income",
            "typeColor": "accent",
            "amount": 500,
            "balance": 1807.00,
            "statusColor": "warn",
            "status": "Not Send"
         },
         {
            "transid": "#trn003",
            "date": "30 Sep 2019",
            "account": "HSBC Bank",
            "type": "Expense",
            "typeColor": "warn",
            "amount": 1500,
            "balance": 1807.00,
            "statusColor": "primary",
            "status": "Send"
         },
         {
            "transid": "#trn004",
            "date": "20 Aug 2019",
            "account": "Deutsche Bank",
            "type": "Income",
            "typeColor": "accent",
            "amount": 1700,
            "balance": 1807.00,
            "statusColor": "primary",
            "status": "Send"
         },
         {
            "transid": "#trn005",
            "date": "13 Jan 2019",
            "account": "Bank of Scotland",
            "type": "Saving",
            "typeColor": "primary",
            "amount": 1290,
            "balance": 1807.00,
            "statusColor": "warn",
            "status": "Not Send"
         },
         {
            "transid": "#trn006",
            "date": "13 Jan 2019",
            "account": "Barclays Bank",
            "type": "Income",
            "typeColor": "accent",
            "amount": 1290,
            "balance": 1807.00,
            "statusColor": "primary",
            "status": "Send"
         },
         {
            "transid": "#trn007",
            "date": "13 Jan 2019",
            "account": "The Bank of America",
            "type": "Expense",
            "typeColor": "warn",
            "amount": 1290,
            "balance": 1807.00,
            "balance": 1807.00,
            "statusColor": "warn",
            "status": "Not Send"
         }
      ]
   },