commit 588e318c9635f728f16ae37f29ad7d7efee1a705
parent fa269936dee76de07dfed35de82f61f599aa8f92
Author: Kristaps Kaupe <kristaps@blogiem.lv>
Date: Mon, 29 Aug 2022 22:16:06 +0300
Fix after recent changes
1be9494e18e25afe05871c1716816454e2869c37 and fa269936dee76de07dfed35de82f61f599aa8f92
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/generate_payment_report.py b/scripts/generate_payment_report.py
@@ -65,7 +65,7 @@ def main():
with open(args.report_file, "w", newline="") as csvfile:
reportwriter = csv.writer(csvfile)
reportwriter.writerow([
- "Date", "Invoice ID", "Fiat value", "BTC value",
+ "Date", "Invoice ID", "Base value", "Base currency", "BTC value",
"BTC paid", "Payment method", "Address"
])
num_rows = 0
@@ -89,6 +89,7 @@ def main():
int(invoice["time"])).strftime("%Y-%m-%d"),
invoice["uuid"],
invoice["base_value"],
+ invoice["base_currency"],
"%.8f" % float(invoice["btc_value"]),
"%.8f" % float(conf_paid),
invoice["method"],