CONN#16445
svn path=/Customer/trunk/; revision=13987
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
-- Script containing customer specific configuration sql statements for CONN: Connexxion
|
||||
-- (c) 2005-2006 Dijkoraad IT bv
|
||||
-- $Revision: 143 $
|
||||
-- $Modtime: 5-08-09 7:47 $
|
||||
-- $Revision: 144 $
|
||||
-- $Modtime: 11-11-09 10:12 $
|
||||
--
|
||||
-- Support: +31 53 4800700
|
||||
|
||||
@@ -4765,6 +4765,8 @@ AS
|
||||
c_bestelopdr_id VARCHAR2 (20);
|
||||
c_totaal NUMBER;
|
||||
c_fact_totaal NUMBER;
|
||||
c_factuur_totaal NUMBER;
|
||||
c_factuur_btw NUMBER;
|
||||
c_find BOOLEAN;
|
||||
c_find_ordernr BOOLEAN;
|
||||
c_mld_opdr_key NUMBER (10);
|
||||
@@ -5103,6 +5105,12 @@ BEGIN
|
||||
INTO c_index
|
||||
FROM DUAL;
|
||||
|
||||
SELECT SUM (kostprijs) totaal,
|
||||
SUM (btw_bedrag) totaal_btw
|
||||
INTO c_factuur_totaal, c_factuur_btw
|
||||
FROM conn_imp_factuur
|
||||
WHERE LTRIM(RTRIM(ordernr)) = rc.ordernr;
|
||||
|
||||
INSERT INTO fin_factuur
|
||||
(fin_factuur_key,
|
||||
fin_factuur_totaal,
|
||||
@@ -5120,8 +5128,8 @@ BEGIN
|
||||
prs_kostensoort_key
|
||||
)
|
||||
VALUES (c_index,
|
||||
rc.totaal,
|
||||
rc.totaal_btw,
|
||||
c_factuur_totaal,
|
||||
c_factuur_btw,
|
||||
c_mld_opdr_key,
|
||||
c_cnt_contract_key,
|
||||
c_bes_bestelopdr_key,
|
||||
|
||||
Reference in New Issue
Block a user