BLCC#64393 Herziening facturatie/allocatiemodel
svn path=/Customer/trunk/; revision=49034
This commit is contained in:
@@ -9538,7 +9538,6 @@ AS
|
||||
DECODE (UPPER (factent.fac_usrdata_omschr), 'CRF', 1, 0) crf, -- CCCV=0 en CRF=1
|
||||
DECODE (factuur.cnt_kenmerkcontract_waarde, NULL, 0, 1) factuur,
|
||||
NULL alg_onroerendgoed_type, TO_NUMBER (NULL) alg_onroerendgoed_keys, NULL alg_plaatsaanduiding,
|
||||
|
||||
ROUND (((LEAST (TRUNC (x.lt), LAST_DAY (TO_DATE (x.maand, 'yyyymm'))) - GREATEST (TRUNC (x.lv), TO_DATE (x.maand, 'yyyymm')) + 1) / (LAST_DAY (TO_DATE (x.maand, 'yyyymm')) - TO_DATE (x.maand, 'yyyymm') + 1)) *
|
||||
(COALESCE (pxq.p, 0) * DECODE (cs.cnt_kenmerkcontract_waarde, NULL, 0, COALESCE (pxq.q, 0))) *
|
||||
1/12, 2)
|
||||
|
||||
Reference in New Issue
Block a user