set_lx_office_erp_web_admin_password() {
- if ! [ -f /etc/lx-office-erp/lx_office.conf ] ; then
- cp /etc/lx-office-erp/lx_office.conf.default /etc/lx-office-erp/lx_office.conf
- fi
db_get lx-office-erp/admin-password
ADMINPASSWORD="$RET"
- cat /etc/lx-office-erp/lx_office.conf | \
- sed --expression "s/admin_password = /admin_password = $ADMINPASSWORD/g" \
+ cat /etc/lx-office-erp/authentication.pl | \
+ sed --expression "s/{admin_password} = /{admin_password} = '$ADMINPASSWORD';#/g" \
> /tmp/1.txt
- mv /tmp/1.txt /etc/lx-office-erp/lx_office.conf
+ mv /tmp/1.txt /etc/lx-office-erp/authentication.pl
}
db_get lx-office-erp/lx-office-erp-user-postgresql-password
PASSWORD="$RET"
- cat /etc/lx-office-erp/lx_office.conf | \
- sed --expression "s/^password = /password = $PASSWORD/g" \
+ cat /etc/lx-office-erp/authentication.pl | \
+ sed --expression "s/'password' => /'password' => '$PASSWORD', #/g" \
> /tmp/1.txt
cat /tmp/1.txt | \
sed --expression "s/^user = postgres/user = lxoffice/g" \
- > /etc/lx-office-erp/lx_office.conf
+ > /etc/lx-office-erp/authentication.pl
}
set_user_rights() {
chown -R www-data:www-data /usr/lib/lx-office-erp/users
chown -R www-data:www-data /usr/lib/lx-office-erp/templates
- chown www-data:www-data /etc/lx-office-erp/lx_office.conf
+ chown www-data:www-data /etc/lx-office-erp/lx-erp.conf
+ chown www-data:www-data /etc/lx-office-erp/authentication.pl
+ chown www-data:www-data /etc/lx-office-erp/console.conf
chown www-data:www-data /usr/lib/lx-office-erp/menu.ini
- chmod 0600 /etc/lx-office-erp/lx_office.conf
+ chmod 0600 /etc/lx-office-erp/lx-erp.conf
+ chmod 0600 /etc/lx-office-erp/authentication.pl
}
disable_ipv6_on_lo_interface() {
}
mk_new_config() {
- if ! [ -f /etc/lx-office-erp/lx_office.conf ] ; then
- cp /etc/lx-office-erp/lx_office.conf.default /etc/lx-office-erp/lx_office.conf
+ if ! [ -f /etc/lx-office-erp/lx-erp.conf ] ; then
+ cp /etc/lx-office-erp/lx-erp.conf.default /etc/lx-office-erp/lx-erp.conf
+ fi
+ if ! [ -f /etc/lx-office-erp/authentication.pl ] ; then
+ cp /etc/lx-office-erp/authentication.pl.default /etc/lx-office-erp/authentication.pl
+ fi
+ if ! [ -f /etc/lx-office-erp/console.conf ] ; then
+ cp /etc/lx-office-erp/console.conf.default /etc/lx-office-erp/console.conf
fi
}
mk_links() {
- if ! [ -f /usr/lib/lx-office-erp/config/lx_office.conf ] ; then
- ln -s /etc/lx-office-erp/lx_office.conf /usr/lib/lx-office-erp/config/lx_office.conf
- fi;
- if ! [ -f /usr/lib/lx-office-erp/config/lx_office.conf.default ] ; then
- ln -s /etc/lx-office-erp/lx_office.conf.default /usr/lib/lx-office-erp/config/lx_office.conf.default
+ if ! [ -f /usr/lib/lx-office-erp/config/lx-erp.conf ] ; then
+ ln -s /etc/lx-office-erp/lx-erp.conf /usr/lib/lx-office-erp/config/lx-erp.conf
fi;
- if [ -e /etc/lx-office-erp/authentication.pl ] ; then
- rm /etc/lx-office-erp/authentication.pl
+ if ! [ -f /usr/lib/lx-office-erp/config/authentication.pl ] ; then
+ ln -s /etc/lx-office-erp/authentication.pl /usr/lib/lx-office-erp/config/authentication.pl
fi
if [ -e /etc/apache2 ] ; then
if ! [ -f /etc/apache2/conf.d/lx-office-erp.apache2.conf ] ; then
# set values which could be empty
my $taxzone_id = $form->{taxzone_id} * 1;
- $form->{department_id} = (split /--/, $form->{department})[1];
+
+ # Seit neuestem wird die department_id schon übergeben UND $form->department nicht mehr
+ # korrekt zusammengebaut. Sehr wahrscheinlich beim Umstieg auf T8 kaputt gegangen
+ # Ich lass den Code von 2005 erstmal noch stehen ;-) jb 03-2011
+ # copy & paste von IS.pm
+ if (!$form->{department_id}){
+ $form->{department_id} = (split /--/, $form->{department})[1];
+ }
$form->{invnumber} = $form->{id} unless $form->{invnumber};
$taxzone_id = 0 if (3 < $taxzone_id) || (0 > $taxzone_id);
}
$form->{defaultcurrency} = $form->get_default_currency($myconfig);
-
- ($null, $form->{department_id}) = split(/--/, $form->{department});
+ # Seit neuestem wird die department_id schon übergeben UND $form->department nicht mehr
+ # korrekt zusammengebaut. Sehr wahrscheinlich beim Umstieg auf T8 kaputt gegangen
+ # Ich lass den Code von 2005 erstmal noch stehen ;-) jb 03-2011
+ if (!$form->{department_id}){
+ ($null, $form->{department_id}) = split(/--/, $form->{department});
+ }
my $all_units = AM->retrieve_units($myconfig, $form);
cp_id = ?, marge_total = ?, marge_percent = ?,
globalproject_id = ?, delivery_customer_id = ?,
transaction_description = ?, delivery_vendor_id = ?,
- donumber = ?
+ donumber = ?, invnumber_for_credit_note = ?
WHERE id = ?|;
@values = ( $form->{"invnumber"}, $form->{"ordnumber"}, $form->{"quonumber"}, $form->{"cusordnumber"},
conv_date($form->{"invdate"}), conv_date($form->{"orddate"}), conv_date($form->{"quodate"}), conv_i($form->{"customer_id"}),
conv_i($form->{"cp_id"}), 1 * $form->{marge_total} , 1 * $form->{marge_percent},
conv_i($form->{"globalproject_id"}), conv_i($form->{"delivery_customer_id"}),
$form->{transaction_description}, conv_i($form->{"delivery_vendor_id"}),
- $form->{"donumber"}, #das entsprechende feld lieferscheinnummer aus der html-form 12.02.09 jb
+ $form->{"donumber"}, $form->{"invnumber_for_credit_note"},
conv_i($form->{"id"}));
do_query($form, $dbh, $query, @values);
a.duedate, a.taxincluded, a.curr AS currency, a.shipto_id, a.cp_id,
a.employee_id, a.salesman_id, a.payment_id,
a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type,
- a.transaction_description,
+ a.transaction_description, a.donumber, a.invnumber_for_credit_note,
a.marge_total, a.marge_percent,
- e.name AS employee, a.donumber
+ e.name AS employee
FROM ar a
LEFT JOIN employee e ON (e.id = a.employee_id)
WHERE a.id = ?|;
$form->{title} = $locale->text('Add Credit Note');
$form->{script} = 'is.pl';
-
+ # Bei Gutschriften bezug zur Rechnungsnummer
+ $form->{invnumber_for_credit_note} = $form->{invnumber};
# bo creates the id, reset it
map { delete $form->{$_} }
qw(id invnumber subject message cc bcc printed emailed queued);
- Beim Laden von Rechnungsentwürfen, das Fälligkeits- und Rechnungsdatum duch
das Tagesdatum ersetzen
+ - Bei Verkaufsgutschriften zusätzlich noch die Rechnungsnummer mitnehmen, damit der Bezug klarer ist.
+
+ Liste gefixter Bugs aus dem Bugtracker:
+
+ - Bugfix 1613: Status teilweise
+
2011-02-02 - Release 2.6.2
--- /dev/null
+-- @tag: ar_add_invnumber_for_credit_note
+-- @description: Die Rechnungsnummer wird bei Gutschriften bisher nicht uebernommen. Das aendert sich mit diesem Update. Hierfuer muss allerdings die Rechnungstabelle ar um einen entsprechenden Eintrag erweitert werden. (invnumber_for_credit_note in ar)
+-- @depends: delivery_orders
+alter table ar add column invnumber_for_credit_note text;
+
\rightline{\LARGE\textbf{\textit{Gutschrift}}} \vspace*{0.2cm}
\rightline{\large\textbf{\textit{Nr. <%invnumber%>% \vspace*{0.2cm}
}}}
+ für Rechnung: \hfill <%invnumber_for_credit_note%>
Gutschriftdatum:\hfill <%invdate%>
<th align="right" nowrap>[% 'Credit Note Number' | $T8 %]</th>
<td colspan="3"><input size='11' name="invnumber" value="[% HTML.escape(invnumber) %]"></td>
</tr>
+ <tr>
+ <th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th>
+ <td colspan="3"><input size='11' name="invnumber_for_credit_note" value="[% HTML.escape(invnumber_for_credit_note) %]"></td>
+ </tr>
<tr>
<th align="right">[% 'Credit Note Date' | $T8 %]</th>
<td nowrap>