diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-25 04:45:23 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2006-10-25 04:45:23 +0000 |
commit | 8a5f43eea358e6a55e83f519126a73e501f2cbc9 (patch) | |
tree | 6d819b1d48c7521d019420db36463170529b2fcd /bin | |
parent | 607d006837906e0ad95a4f5f032117efade097dd (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-x | bin/pos.pl | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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"}){ |