[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[5921] branches/1.3
- Subject: SF.net SVN: ledger-smb:[5921] branches/1.3
- From: ..hidden..
- Date: Wed, 24 Jul 2013 08:35:18 +0000
Revision: 5921
http://sourceforge.net/p/ledger-smb/code/5921
Author: einhverfr
Date: 2013-07-24 08:35:17 +0000 (Wed, 24 Jul 2013)
Log Message:
-----------
Merging fix from trunk regarding locked descriptions
Modified Paths:
--------------
branches/1.3/LedgerSMB/OE.pm
branches/1.3/bin/io.pl
branches/1.3/bin/oe.pl
Modified: branches/1.3/LedgerSMB/OE.pm
===================================================================
--- branches/1.3/LedgerSMB/OE.pm 2013-07-24 08:32:40 UTC (rev 5920)
+++ branches/1.3/LedgerSMB/OE.pm 2013-07-24 08:35:17 UTC (rev 5921)
@@ -824,6 +824,12 @@
SELECT value, current_date FROM defaults
WHERE setting_key = 'curr'|;
( $form->{currencies}, $form->{transdate} ) = $dbh->selectrow_array($query);
+
+ $query = qq|
+ SELECT value FROM defaults
+ WHERE setting_key = 'lock_description'|;
+ ( $form->{lock_description}) = $dbh->selectrow_array($query);
+
if ( $form->{id} ) {
Modified: branches/1.3/bin/io.pl
===================================================================
--- branches/1.3/bin/io.pl 2013-07-24 08:32:40 UTC (rev 5920)
+++ branches/1.3/bin/io.pl 2013-07-24 08:35:17 UTC (rev 5921)
@@ -285,20 +285,23 @@
$linetotal = $form->round_amount( $linetotal * $form->{"qty_$i"},
$moneyplaces);
- if (
- ( $rows = $form->numtextrows( $form->{"description_$i"}, 46, 6 ) ) >
- 1 )
- {
- $form->{"description_$i"} =
- $form->quote( $form->{"description_$i"} );
- $column_data{description} =
-qq|<td><textarea name="description_$i" rows=$rows $desc_disabled cols=46 wrap=soft>$form->{"description_$i"}</textarea></td>|;
- }
- else {
- $form->{"description_$i"} =
- $form->quote( $form->{"description_$i"} );
- $column_data{description} =
+ $form->{"description_$i"} = $form->quote( $form->{"description_$i"} );
+ if ($desc_disabled){
+ $column_data{description} = qq|<td>$form->{"description_$i"} |
+ . qq|<input type="hidden" name="description_$i"
+ value="$form->{"description_$i"}" /></td>|
+ } else {
+ if (
+ ( $rows = $form->numtextrows( $form->{"description_$i"}, 46, 6 ) ) >
+ 1 )
+ {
+ $column_data{description} =
+qq|<td><textarea name="description_$i" rows=$rows cols=46 wrap=soft>$form->{"description_$i"}</textarea></td>|;
+ }
+ else {
+ $column_data{description} =
qq|<td><input name="description_$i" $desc_disabled size=48 value="$form->{"description_$i"}"></td>|;
+ }
}
for (qw(partnumber sku unit)) {
Modified: branches/1.3/bin/oe.pl
===================================================================
--- branches/1.3/bin/oe.pl 2013-07-24 08:32:40 UTC (rev 5920)
+++ branches/1.3/bin/oe.pl 2013-07-24 08:35:17 UTC (rev 5921)
@@ -610,7 +610,8 @@
}
$form->hide_form(qw(entity_control_code meta_number address city));
$form->hide_form(
- qw(id type formname media format printed emailed queued vc title discount creditlimit creditremaining tradediscount business recurring form_id nextsub)
+ qw(id type formname media format printed emailed queued vc title discount creditlimit creditremaining tradediscount business recurring form_id nextsub
+ lock_description)
);
print qq|
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.