Revision 844a541e
Von Moritz Bunkus vor etwa 3 Jahren hinzugefügt
SL/IS.pm | ||
---|---|---|
1318 | 1318 |
shipvia = ?, notes = ?, intnotes = ?, |
1319 | 1319 |
currency_id = (SELECT id FROM currencies WHERE name = ?), |
1320 | 1320 |
department_id = ?, payment_id = ?, taxincluded = ?, |
1321 |
type = ?, language_id = ?, taxzone_id = ?, shipto_id = ?, |
|
1321 |
type = ?, language_id = ?, taxzone_id = ?, shipto_id = ?, billing_address_id = ?,
|
|
1322 | 1322 |
employee_id = ?, salesman_id = ?, storno_id = ?, storno = ?, |
1323 | 1323 |
cp_id = ?, marge_total = ?, marge_percent = ?, |
1324 | 1324 |
globalproject_id = ?, delivery_customer_id = ?, |
... | ... | |
1332 | 1332 |
conv_date($form->{"duedate"}), conv_date($form->{"deliverydate"}), '1', $form->{"shippingpoint"}, |
1333 | 1333 |
$form->{"shipvia"}, $restricter->process($form->{"notes"}), $form->{"intnotes"}, |
1334 | 1334 |
$form->{"currency"}, conv_i($form->{"department_id"}), conv_i($form->{"payment_id"}), $form->{"taxincluded"} ? 't' : 'f', |
1335 |
$form->{"type"}, conv_i($form->{"language_id"}), conv_i($form->{"taxzone_id"}), conv_i($form->{"shipto_id"}), |
|
1335 |
$form->{"type"}, conv_i($form->{"language_id"}), conv_i($form->{"taxzone_id"}), conv_i($form->{"shipto_id"}), conv_i($form->{billing_address_id}),
|
|
1336 | 1336 |
conv_i($form->{"employee_id"}), conv_i($form->{"salesman_id"}), conv_i($form->{storno_id}), $form->{"storno"} ? 't' : 'f', |
1337 | 1337 |
conv_i($form->{"cp_id"}), 1 * $form->{marge_total} , 1 * $form->{marge_percent}, |
1338 | 1338 |
conv_i($form->{"globalproject_id"}), conv_i($form->{"delivery_customer_id"}), |
... | ... | |
2030 | 2030 |
a.transdate AS invdate, a.deliverydate, a.tax_point, a.paid, a.storno, a.storno_id, a.gldate, |
2031 | 2031 |
a.shippingpoint, a.shipvia, a.notes, a.intnotes, a.taxzone_id, |
2032 | 2032 |
a.duedate, a.taxincluded, (SELECT cu.name FROM currencies cu WHERE cu.id=a.currency_id) AS currency, a.shipto_id, a.cp_id, |
2033 |
a.billing_address_id, |
|
2033 | 2034 |
a.employee_id, a.salesman_id, a.payment_id, |
2034 | 2035 |
a.mtime, a.itime, |
2035 | 2036 |
a.language_id, a.delivery_customer_id, a.delivery_vendor_id, a.type, |
... | ... | |
2218 | 2219 |
c.street, c.zipcode, c.city, c.country, |
2219 | 2220 |
c.notes AS intnotes, c.pricegroup_id as customer_pricegroup_id, c.taxzone_id, c.salesman_id, cu.name AS curr, |
2220 | 2221 |
c.taxincluded_checked, c.direct_debit, |
2222 |
(SELECT aba.id |
|
2223 |
FROM additional_billing_addresses aba |
|
2224 |
WHERE aba.default_address |
|
2225 |
LIMIT 1) AS default_billing_address_id, |
|
2221 | 2226 |
b.discount AS tradediscount, b.description AS business |
2222 | 2227 |
FROM customer c |
2223 | 2228 |
LEFT JOIN business b ON (b.id = c.business_id) |
Auch abrufbar als: Unified diff
Zusätzliche Rechnungsadressen: in Verkaufsbelegmasken auswählbar