From af66021ef163a3f51895db8eb89c957d292f8997 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 23 Oct 2006 19:51:03 +0000 Subject: Moved io lineitem column list to LedgerSMB::Sysconfig; git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@263 4979c152-3d1c-0410-bac9-87ea11338e46 --- Changelog | 1 + LedgerSMB/Sysconfig.pm | 2 +- bin/io.pl | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changelog b/Changelog index 0d3e746d..721d8264 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ Changelog for LedgerSMB 1.2.0 +* Moved IS/IR/OE the linitem column list to the LedgerSMB::Sysconfig Chris T) * Removed back-translation of function names for i18n (Seneca) * Invoice now has an Onhand column (Chris T) * Added logging module (Jason R) diff --git a/LedgerSMB/Sysconfig.pm b/LedgerSMB/Sysconfig.pm index 983675ff..7d0f56fe 100644 --- a/LedgerSMB/Sysconfig.pm +++ b/LedgerSMB/Sysconfig.pm @@ -7,7 +7,7 @@ package LSMBConfig; $session='DB'; $logging=0; # No logging on by default - +@io_lineitem_columns = qw(unit onhand sellprice discount linetotal); 1; diff --git a/bin/io.pl b/bin/io.pl index 263058a8..c2245c15 100755 --- a/bin/io.pl +++ b/bin/io.pl @@ -39,6 +39,7 @@ ####################################################################### use LedgerSMB::Tax; +use LedgerSMB::Sysconfig; # any custom scripts for this one if (-f "bin/custom/io.pl") { @@ -120,7 +121,7 @@ sub display_row { } - push @column_index, qw(unit onhand sellprice discount linetotal); + push @column_index, @{LSMBConfig::io_lineitem_columns}; my $colspan = $#column_index + 1; -- cgit v1.2.3