Revision e9b11e12
Von Jan Büren vor fast 3 Jahren hinzugefügt
SL/RP.pm | ||
---|---|---|
1296 | 1296 |
SELECT ${ct}.id AS ctid, ${ct}.name, |
1297 | 1297 |
street, zipcode, city, country, contact, email, |
1298 | 1298 |
phone as customerphone, fax as customerfax, ${ct}number, |
1299 |
"invnumber", "transdate", |
|
1299 |
"invnumber", "transdate", "type",
|
|
1300 | 1300 |
(amount - COALESCE((SELECT sum(amount)*$ml FROM acc_trans WHERE chart_link ilike '%paid%' AND acc_trans.trans_id=${arap}.id AND acc_trans.transdate <= (date $todate)),0)) as "open", "amount", |
1301 | 1301 |
"duedate", invoice, ${arap}.id, date_part('days', now() - duedate) as overduedays, datepaid, (amount - paid) as current_open, |
1302 | 1302 |
(SELECT $buysell |
Auch abrufbar als: Unified diff
Offene Forderung: Falls Typ Schlussrechnung, Hinweis auf manuelles Ausbuchen