[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb:[3467] trunk
- Subject: SF.net SVN: ledger-smb:[3467] trunk
- From: ..hidden..
- Date: Fri, 08 Jul 2011 12:06:12 +0000
Revision: 3467
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3467&view=rev
Author: einhverfr
Date: 2011-07-08 12:06:12 +0000 (Fri, 08 Jul 2011)
Log Message:
-----------
removing debugging code
Modified Paths:
--------------
trunk/UI/accounts/edit.html
trunk/scripts/account.pl
Modified: trunk/UI/accounts/edit.html
===================================================================
--- trunk/UI/accounts/edit.html 2011-07-08 11:10:18 UTC (rev 3466)
+++ trunk/UI/accounts/edit.html 2011-07-08 12:06:12 UTC (rev 3467)
@@ -37,14 +37,18 @@
<label class="line"><?lsmb text('Heading') ?></label>
<div class="inputgroup">
<?lsmb
+ FOREACH h IN form.all_headings;
+ h.text = h.accno _ '--' _ h.description;
+ END;
+ form.all_headings.push({});
INCLUDE select element_data = {
name = 'heading'
options = form.all_headings
- default_options = [form.heading]
+ default_values = [form.heading]
text_attr = 'text'
value_attr = 'id'
class = 'account'
- } ?>
+ }; ?>
</div>
</div>
<div class="inputline" id="charttype-line">
@@ -319,20 +323,20 @@
<div class="inputgroup">
<?lsmb IF form.fixed_asset;fixed_asset= 'CHECKED'; END;
INCLUDE input element_data={
- name = 'fixed_asset',
+ name = 'Fixed_Asset',
type = 'checkbox',
label = text('Fixed Asset'), #'
checked = fixed_asset,
- value = 'fixed_asset'} ?>
+ value = 'Fixed_Asset'} ?>
</div>
<div class="inputgroup">
<?lsmb IF form.accum_dep;accum_dep = 'CHECKED'; END;
INCLUDE input element_data={
- name = 'accum_dep',
+ name = 'Asset_Dep',
type = 'checkbox',
label = text('Depreciation'),
- checked = accum_dep,
- value = 'accum_dep'} ?>
+ checked = asset_dep,
+ value = 'Asset_Dep'} ?>
</div>
<div class="inputgroup">
<?lsmb IF form.asset_expense;asset_expense = 'CHECKED'; END;
Modified: trunk/scripts/account.pl
===================================================================
--- trunk/scripts/account.pl 2011-07-08 11:10:18 UTC (rev 3466)
+++ trunk/scripts/account.pl 2011-07-08 12:06:12 UTC (rev 3467)
@@ -80,6 +80,7 @@
sub save {
my ($request) = @_;
my $account = LedgerSMB::DBObject::Account->new(base => $request);
+ $account->{$account->{summary}}=$account->{summary};
$account->save;
edit($request);
}
@@ -101,7 +102,6 @@
my ($form) = @_;
my $account = LedgerSMB::DBObject::Account->new({base => $form});
@{$form->{all_headings}} = $account->list_headings();
- $form->error(..hidden..>{all_headings}});
my $locale = $form->{_locale};
my $buttons = [];
my $checked;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.