mirror of
https://github.com/Ride-The-Lightning/RTL.git
synced 2025-02-21 22:11:54 +01:00
Addition of Invoices screen
This commit is contained in:
parent
2034cb2a55
commit
38bd8c5f56
6 changed files with 12 additions and 7 deletions
|
@ -609,10 +609,10 @@ THE SOFTWARE.
|
|||
>>>>>>> Initial commit
|
||||
|
||||
|
||||
@angular/material/card
|
||||
|
||||
@angular/material/icon
|
||||
|
||||
@angular/material/card
|
||||
|
||||
@angular/material/divider
|
||||
|
||||
@angular/material/button
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
<base href="/">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="icon" type="image/x-icon" href="assets/images/favicon.ico">
|
||||
<link rel="stylesheet" href="styles.56c3cb2889f85205c3dc.css"></head>
|
||||
<link rel="stylesheet" href="styles.e8ad9595401679e5b3a6.css"></head>
|
||||
<body>
|
||||
<rtl-app></rtl-app>
|
||||
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.78ee218d8411ef810887.js"></script></body>
|
||||
<script type="text/javascript" src="runtime.ec2944dd8b20ec099bf3.js"></script><script type="text/javascript" src="polyfills.b2575713cefb95077d85.js"></script><script type="text/javascript" src="main.750ef2a5e3b7af05b623.js"></script></body>
|
||||
</html>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -14,6 +14,13 @@ exports.listInvoices = (req, res, next) => {
|
|||
error: (undefined === body || search_idx > -1) ? 'Error From Server!' : body.error
|
||||
});
|
||||
} else {
|
||||
body.invoices.forEach(invoice => {
|
||||
invoice.creation_date_str = (undefined === invoice.creation_date) ? '' : common.convertTimestampToDate(invoice.creation_date);
|
||||
invoice.settle_date_str = (undefined === invoice.settle_date) ? '' : common.convertTimestampToDate(invoice.settle_date);
|
||||
invoice.btc_value = (undefined === invoice.value) ? 0 : common.convertToBTC(invoice.value);
|
||||
invoice.btc_amt_paid_sat = (undefined === invoice.amt_paid_sat) ? 0 : common.convertToBTC(invoice.amt_paid_sat);
|
||||
});
|
||||
console.log('\nInvoices Received: ' + JSON.stringify(body));
|
||||
res.status(200).json(body);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"flgSidenavOpened":false,"flgSidenavPinned":false,"menu":"Vertical","menuType":"Regular","theme":"dark-blue","lndConfigPath":"","satsToBTC":true}
|
||||
{"flgSidenavOpened":true,"flgSidenavPinned":true,"menu":"Vertical","menuType":"Regular","theme":"dark-blue","lndConfigPath":"","satsToBTC":false}
|
Loading…
Add table
Reference in a new issue