summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-25 04:45:23 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2006-10-25 04:45:23 +0000
commit8a5f43eea358e6a55e83f519126a73e501f2cbc9 (patch)
tree6d819b1d48c7521d019420db36463170529b2fcd /bin
parent607d006837906e0ad95a4f5f032117efade097dd (diff)
Added cc track fields. Will look into obfuscation later but this meets PCI-DSS by itself
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@299 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pos.pl10
1 files changed, 7 insertions, 3 deletions
diff --git a/bin/pos.pl b/bin/pos.pl
index 1802d669..dd858612 100755
--- a/bin/pos.pl
+++ b/bin/pos.pl
@@ -460,10 +460,14 @@ sub form_footer {
$column_data{source} = qq|<td><input name="source_$i" size=10 value="$form->{"source_$i"}"></td>|;
$column_data{memo} = qq|<td>$memoselect</td>|;
$column_data{memo} =~ s/MEMONAME/memo_$i/;
- if ($form->{"memo_$i"}){
- my $memval = $form->{"memo_$i"};
- $column_data{memo} =~ s/(option value="$memval")/$1 SELECTED/;
+ if (!$form->{"memo_$i"}){
+ $form->{"memo_$i"} = $pos_source_default;
}
+ my $memval = $form->{"memo_$i"};
+ $column_data{memo} =~ s/(option value="$memval")/$1 SELECTED/;
+
+ $column_data{cctrack} = qq|<td><input type="text" name="cctrack_$i"
+ value="|.$form->{"cctrack_$i"}.qq|" size="3"></td>|;
if ($pos_config{"coa_prefix"}){
if (!$form->{"AR_paid_$i"}){