Explorar el Código

use store code for display instead of store name

Pi hace 3 años
padre
commit
4fc8ffae8b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      grocery_transactions.sh

+ 1 - 1
grocery_transactions.sh

@@ -62,7 +62,7 @@ BEGIN;
 $(cat - )
 SELECT
   date_part('day',ts)||'/'||date_part('month',ts)||' '||date_part('hour',ts)::int%12 AS ts,
-  substr(store,1,4) AS shop,
+  code AS shop,
   substr(description,1,32) AS description,
   quantity AS volume,
   substr(unit,1,4) AS unit,