--ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("EICHRECHTTYPE" NVARCHAR(50));
--ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("EICHRECHTTYPE" NVARCHAR(50));

ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("KWHNETPRICE" INTEGER CS_INT);
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("MINUTENETPRICE" INTEGER CS_INT);
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("SESSIONNETPRICE" INTEGER CS_INT);


-- Felder müssen noch im Interface gemappt werden
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("KWHGROSSPRICE" INTEGER CS_INT);
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("MINUTEGROSSPRICE" INTEGER CS_INT);
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("SESSIONGROSSPRICE" INTEGER CS_INT);
-- Mapping von CPOOPERATORID übernehmen
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("CPOOPERATORID" NVARCHAR(50));
--Neu 26.08.2021 Laden im Ausland Erweiterung
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("LOCATION_COUNTRY" NVARCHAR(3));
--Neu 20.04.2022 Neue PlausiCheckFelder
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("BUSINESSVALIDATIONRESULT" NVARCHAR(100));
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("TECHVALIDATIONRESULT" NVARCHAR(100));
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("NOTBILLABLEREASON" NVARCHAR(200));

--Neu 05.06.2023
ALTER TABLE "VIRTAPORTAL"."EMP_TRANSACTIONS" ADD ("FREEMINUTES" INTEGER CS_INT);


ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("KWHNETPRICE" INTEGER CS_INT);
ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("MINUTENETPRICE" INTEGER CS_INT);
ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("SESSIONNETPRICE" INTEGER CS_INT);
-- Schlumpf :o)

--04_05_2021
ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("BUSINESSVALIDATIONRESULT" NVARCHAR(100));
ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("TECHVALIDATIONRESULT" NVARCHAR(100));
ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" ADD ("NOTBILLABLEREASON" NVARCHAR(200));

ALTER TABLE "VIRTAPORTAL"."CPO_CHARGES" add  ("FULLEVSEID_REDUCED" NVARCHAR(5000) AS IFNULL("substr_regex"("FULLEVSEID",
	 '^(.*)(\*\d)$',
	 1,
	 1,
	 1,
	 ''),
	"FULLEVSEID"))
;
