PIVP#74972 -- Fase 2 implementatie
svn path=/Customer/trunk/; revision=59309
This commit is contained in:
@@ -3589,7 +3589,8 @@ BEGIN
|
||||
*/
|
||||
-- PUUR OM EENVOUDIGER TE KUNNEN TESTEN
|
||||
v_startDate:=TO_DATE('01-01-2022','DD-MM-YYYY');
|
||||
v_endDate:=TO_DATE(SYSDATE,'DD-MM-YYYY');
|
||||
v_endDate:=TO_DATE('31-12-2022','DD-MM-YYYY');
|
||||
v_factuurdatum := TO_DATE('31-01-2023','DD-MM-YYYY');
|
||||
v_bestand:= 'EXM_MLD';
|
||||
FOR rec in mld(v_startDate, v_endDate)
|
||||
LOOP
|
||||
@@ -3608,13 +3609,11 @@ BEGIN
|
||||
|
||||
pivp.add_xml_row (v_bestand, '<Invoice type="V" code="00">');
|
||||
pivp.add_xml_element (v_bestand, 'Description', 'Geleverde diensten van '||TO_CHAR(v_startDate,'DD-MM-YYYY')||' tot '||TO_CHAR(v_endDate,'DD-MM-YYYY')||'.');
|
||||
pivp.add_xml_element(v_bestand, 'YourRef','Uwe referentie : '||rec_regel.ponummer);
|
||||
pivp.add_xml_element(v_bestand, 'YourRef',rec_regel.ponummer);
|
||||
pivp.add_xml_row (v_bestand, '<Order type="V"/>'); -- vaste waarde
|
||||
pivp.add_xml_element (v_bestand, 'Resource', '2'); -- vaste waarde
|
||||
pivp.add_xml_row (v_bestand, '<Warehouse code="1"/>'); -- vaste waarde
|
||||
pivp.add_xml_row (v_bestand, '<Costcenter code="KP003"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Costunit code="003.190"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Project code="003.P23002"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Resource number="2"/>'); -- vaste waarde
|
||||
|
||||
|
||||
pivp.add_xml_row (v_bestand, '<Currency code="EUR"/>');
|
||||
pivp.add_xml_element (v_bestand, 'CalcIncludeVAT', 'N');
|
||||
pivp.add_xml_row (v_bestand, '<OrderedBy>');
|
||||
@@ -3651,6 +3650,13 @@ BEGIN
|
||||
v_factuurregel:= rec_regel.melding_key||'-'||rec_regel.vagroep;
|
||||
END IF;
|
||||
END IF;
|
||||
-- Vaste waardes die evt worden aangepast bij vervolg project
|
||||
pivp.add_xml_row (v_bestand, '<Warehouse code="1"/>'); -- vaste waarde
|
||||
pivp.add_xml_row (v_bestand, '<Costcenter code="KP003"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Costunit code="003.190"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Project code="003.P23002"/>');
|
||||
|
||||
|
||||
pivp.add_xml_element (v_bestand, 'Description', SUBSTR(v_factuurregel,0,60));
|
||||
pivp.add_xml_row (v_bestand, '<Item code="' || rec_regel.dienstencode || '"/>');
|
||||
pivp.add_xml_element (v_bestand, 'Quantity', '1' );
|
||||
@@ -3784,6 +3790,7 @@ BEGIN
|
||||
-- PUUR OM EENVOUDIGER TE KUNNEN TESTEN
|
||||
v_startDate:=TO_DATE('01-01-2022','DD-MM-YYYY');
|
||||
v_endDate:=TO_DATE('31-12-2022','DD-MM-YYYY');
|
||||
v_factuurdatum := TO_DATE('31-01-2023','DD-MM-YYYY');
|
||||
------
|
||||
|
||||
v_bestand:= 'EXR_RES';
|
||||
@@ -3806,11 +3813,8 @@ BEGIN
|
||||
pivp.add_xml_element (v_bestand, 'Description', 'Zaalreserveringen van '||TO_CHAR(v_startDate,'DD-MM-YYYY')||' tot '||TO_CHAR(v_endDate,'DD-MM-YYYY')||'.');
|
||||
pivp.add_xml_element(v_bestand, 'YourRef','Uwe referentie');
|
||||
pivp.add_xml_row (v_bestand, '<Order type="V"/>');
|
||||
pivp.add_xml_element (v_bestand, 'Resource', '2'); -- vaste waarde
|
||||
pivp.add_xml_row (v_bestand, '<Warehouse code="1"/>'); -- vaste waarde
|
||||
pivp.add_xml_row (v_bestand, '<Costcenter code="KP003"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Costunit code="003.190"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Project code="003.P23002"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Resource number="2"/>'); -- vaste waarde
|
||||
|
||||
pivp.add_xml_row (v_bestand, '<Currency code="EUR"/>');
|
||||
pivp.add_xml_element (v_bestand, 'CalcIncludeVAT', 'N');
|
||||
pivp.add_xml_row (v_bestand, '<OrderedBy>');
|
||||
@@ -3834,7 +3838,16 @@ BEGIN
|
||||
|
||||
|
||||
END IF;
|
||||
pivp.add_xml_row (v_bestand, '<InvoiceLine lineNo="' || v_sub_count || '" type="N" subtype="N">');
|
||||
pivp.add_xml_row (v_bestand, '<InvoiceLine lineNo="' || v_sub_count || '" type="N" subtype="N">');
|
||||
|
||||
|
||||
-- Vaste waardes worden in vervolg project evt aangepast
|
||||
pivp.add_xml_row (v_bestand, '<Warehouse code="1"/>'); -- vaste waarde
|
||||
pivp.add_xml_row (v_bestand, '<Costcenter code="KP003"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Costunit code="003.190"/>');
|
||||
pivp.add_xml_row (v_bestand, '<Project code="003.P23002"/>');
|
||||
|
||||
|
||||
v_factuurregel := rec_regel.reservering_nr||'/'||rec_regel.reservering_volgnr||'-'||rec_regel.ruimte_nr||' ('||TO_CHAR(rec_regel.datum,'DD-MM-YYYY')||' '||rec_regel.van||'-'||rec_regel.tot||')';
|
||||
pivp.add_xml_element (v_bestand, 'Description', v_factuurregel);
|
||||
pivp.add_xml_row (v_bestand, '<Item code="' || v_dienstencode || '"/>');
|
||||
|
||||
Reference in New Issue
Block a user