YKPN#90406 Facturen verkeerd geboekt. Herstelscript aangemaakt.

svn path=/Customer/; revision=70478
This commit is contained in:
Arthur Egberink
2025-09-30 18:05:09 +00:00
parent d0940e3efd
commit 576528c5a2

43
onces/YKPN/YKPN#90406.sql Normal file
View File

@@ -0,0 +1,43 @@
DECLARE
CURSOR c IS
select fin_factuur_key from fin_factuur where fin_factuur_key in
(22388,
22389,
22390,
22587,
24357,
24358,
24546,
27476,
27477,
27478,
27479,
27480,
27725,
27726,
27727,
27728,
27729,
27730,
27731,
27732,
27733,
27734,
27737,
27739,
27740,
27761,
27762,
27763,
28100,
28174);
BEGIN
FOR rec IN c
LOOP
UPDATE fin_factuur SET cnt_contract_key = 445 WHERE fin_factuur_key = rec.fin_factuur_key;
fac.trackaction('FINUPD', rec.fin_factuur_key, NULL, NULL, 'Factuur gewijzigd - herstelscript ticket YKPN#90406' || CHR(10) || 'Contract 4-1-3-1 --> 4-3-3-1' );
END LOOP;
END;
/