From d7742cd654be379aa4f203bcbb0abf09b50e93ce Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 6 Jan 2014 17:22:43 +0000 Subject: Commodity column in default CSV format should match the displayed amount If one uses --exchange to force CSV display amounts into a particular currency, then the commodity output column should match that currency. Without this patch, the commodity column contains the original commodity, not the commodity for the exported amount. --- src/report.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/report.h b/src/report.h index 5897e8f6..d7c80e11 100644 --- a/src/report.h +++ b/src/report.h @@ -521,7 +521,7 @@ public: "%(quoted(code))," "%(quoted(payee))," "%(quoted(display_account))," - "%(quoted(commodity))," + "%(quoted(commodity(scrub(display_amount))))," "%(quoted(quantity(scrub(display_amount))))," "%(quoted(cleared ? \"*\" : (pending ? \"!\" : \"\")))," "%(quoted(join(note | xact.note)))\n"); -- cgit v1.2.3