1009 |
1009 |
cp_id = ?, marge_total = ?, marge_percent = ?,
|
1010 |
1010 |
globalproject_id = ?, delivery_customer_id = ?,
|
1011 |
1011 |
transaction_description = ?, delivery_vendor_id = ?,
|
1012 |
|
donumber = ?
|
|
1012 |
donumber = ?, invnumber_for_credit_note = ?
|
1013 |
1013 |
WHERE id = ?|;
|
1014 |
1014 |
@values = ( $form->{"invnumber"}, $form->{"ordnumber"}, $form->{"quonumber"}, $form->{"cusordnumber"},
|
1015 |
1015 |
conv_date($form->{"invdate"}), conv_date($form->{"orddate"}), conv_date($form->{"quodate"}), conv_i($form->{"customer_id"}),
|
... | ... | |
1022 |
1022 |
conv_i($form->{"cp_id"}), 1 * $form->{marge_total} , 1 * $form->{marge_percent},
|
1023 |
1023 |
conv_i($form->{"globalproject_id"}), conv_i($form->{"delivery_customer_id"}),
|
1024 |
1024 |
$form->{transaction_description}, conv_i($form->{"delivery_vendor_id"}),
|
1025 |
|
$form->{"donumber"}, #das entsprechende feld lieferscheinnummer aus der html-form 12.02.09 jb
|
|
1025 |
$form->{"donumber"}, $form->{"invnumber_for_credit_note"},
|
1026 |
1026 |
conv_i($form->{"id"}));
|
1027 |
1027 |
do_query($form, $dbh, $query, @values);
|
1028 |
1028 |
|
... | ... | |
1452 |
1452 |
a.duedate, a.taxincluded, a.curr AS currency, a.shipto_id, a.cp_id,
|
1453 |
1453 |
a.employee_id, a.salesman_id, a.payment_id,
|
1454 |
1454 |
a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type,
|
1455 |
|
a.transaction_description,
|
|
1455 |
a.transaction_description, a.donumber, a.invnumber_for_credit_note,
|
1456 |
1456 |
a.marge_total, a.marge_percent,
|
1457 |
|
e.name AS employee, a.donumber
|
|
1457 |
e.name AS employee
|
1458 |
1458 |
FROM ar a
|
1459 |
1459 |
LEFT JOIN employee e ON (e.id = a.employee_id)
|
1460 |
1460 |
WHERE a.id = ?|;
|
Hinweis von Moritz bzgl. Rechnungsnummer für Gutschrift:
Indeed. Das hatte ich in meinem ersten Enthusiasmus übersehen. Gleich mehr
...