[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
1.3 bin/am.pl , sub update , what is it supposed to do?
- Subject: 1.3 bin/am.pl , sub update , what is it supposed to do?
- From: herman vierendeels <..hidden..>
- Date: Wed, 30 Nov 2011 11:12:08 +0100
Hello,
Can anyone figure out what subroutine update in bin/am.pl is meant to do?
This subroutine is triggered by button update in form generated from
template UI/am-taxes.html.
After clicking the button different times, depending on the initial
number of tax-accounts displayed,
you get a form where each initial line is followed by an empty line.
When clicking Save button, one gets:
ERROR: duplicate key value violates unique constraint "tax_pkey"
DETAIL: Key (chart_id, validto)=(53, infinity) already exists.
CONTEXT: SQL statement "INSERT INTO tax(chart_id, validto, rate,
taxnumber, pass, taxmodule_id)
VALUES (in_chart_id, in_validto, in_rate, in_taxnumber, in_pass,
in_taxmodule_id)"
PL/pgSQL function "account__save_tax" line 14 at SQL statement
So, after the actual commit-freeze is lifted, i would disable that
button, so that ons does not get frustrated by these errors.
+PROCESS button element_data={name => 'action', value => 'update',
text => text('Update'),disabled=>'true'};
PROCESS button element_data={name => 'action', value => 'save_taxes',
text => text('Save')} ?>
Best Wishes,
Herman