chiark / gitweb /
Slightly clearer headings on multi-leg financial table
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 18 May 2009 02:07:59 +0000 (03:07 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Mon, 18 May 2009 02:07:59 +0000 (03:07 +0100)
ypp-restock-rum

index 96e6867f7ad0564cdc518a64dec2e8c5b3894eba..569f461e36ee9bbe649b5c20ba386a5cded916f9 100755 (executable)
@@ -196,8 +196,9 @@ sub pr1s ($) {
 sub compute_stock_values() {
     return unless @have;
     print @have>1 ? <<END
-                 Rum      Rum     Shot    Shot     total      Profit    Profit
-                equiv.   value   stocks   value    value      this leg   total
+
+                _____Rum_____      ___Shot___      total      _____Profit___
+             fine equiv.  value   qty    value     value     per leg     total
 END
 : <<END
                              Rum      Rum             Shot    Shot     total
@@ -231,13 +232,7 @@ END
        $last_value= $total_value;
        print "\n";
     }
-    print @have>1 ? <<END
-                 fine      poe    units    poe       poe     delta-poe     poe
-END
-: <<END
-                             fine      poe            units    poe       poe
-END
-;
+    print "\n" if @have>1;
     print "\n";
 }