Revision ea13b69d
Von Jan Büren vor etwa 4 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
transdate = ?, ordnumber = ?, vendor_id = ?, taxincluded = ?,
|
||
amount = ?, duedate = ?, deliverydate = ?, tax_point = ?, paid = ?, netamount = ?,
|
||
currency_id = (SELECT id FROM currencies WHERE name = ?), notes = ?, department_id = ?, storno = ?, storno_id = ?,
|
||
globalproject_id = ?, direct_debit = ?
|
||
globalproject_id = ?, direct_debit = ?, payment_id = ?
|
||
WHERE id = ?|;
|
||
@values = ($form->{invnumber}, conv_date($form->{transdate}),
|
||
$form->{ordnumber}, conv_i($form->{vendor_id}),
|
||
... | ... | |
conv_i($form->{department_id}), $form->{storno},
|
||
$form->{storno_id}, conv_i($form->{globalproject_id}),
|
||
$form->{direct_debit} ? 't' : 'f',
|
||
$form->{payment_id},
|
||
$form->{id});
|
||
do_query($form, $dbh, $query, @values);
|
||
|
bin/mozilla/ap.pl | ||
---|---|---|
print $form->parse_html_template('ap/form_header', {
|
||
today => DateTime->today,
|
||
currencies => SL::DB::Manager::Currency->get_all_sorted,
|
||
payment_terms => SL::DB::Manager::PaymentTerm->get_all_sorted(query => [ or => [ obsolete => 0, id => $::form->{payment_id}*1 ]]),
|
||
payment_terms => SL::DB::Manager::PaymentTerm->get_all_sorted(query => [ or => [ obsolete => 0, id => $form->{invoice_obj}->{payment_id}*1 ]]),
|
||
});
|
||
|
||
$main::lxdebug->leave_sub();
|
templates/webpages/ap/form_header.html | ||
---|---|---|
[% L.textarea_tag("intnotes", intnotes, wrap="soft", rows=textarea_rows, cols=50, readonly=readonly) %]
|
||
</td>
|
||
<td>
|
||
[% L.select_tag('payment_id', payment_terms, default=payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]
|
||
[% L.select_tag('payment_id', payment_terms, default=invoice_obj.payment_id, title_key='description', with_empty=1, style="width: 250px", onchange="kivi.SalesPurchase.set_duedate_on_reference_date_change('invdate')") %]
|
||
</td>
|
||
<tr>
|
||
</table>
|
Auch abrufbar als: Unified diff
Zahlungsbedingungen Kreditorenbeleg Speichern und Laden in Maske
Das was Commit 8b5bed7fe5 versprochen hat, jetzt auch in Echt ;-)