reactivate uncommented test and remove commented code
This commit is contained in:
parent
2ed639bbde
commit
75a9c5c5c4
@ -8,14 +8,11 @@
|
||||
/*
|
||||
Creates a single membership test record.
|
||||
*/
|
||||
-- create or replace procedure createHsOfficeMembershipTestData( forPartnerTradeName varchar, forMainDebitorNumber integer )
|
||||
create or replace procedure createHsOfficeMembershipTestData( forPartnerTradeName varchar, forMainDebitorNumber numeric )
|
||||
language plpgsql as $$
|
||||
declare
|
||||
currentTask varchar;
|
||||
idName varchar;
|
||||
-- forDebitorNumberPrefix integer;
|
||||
-- forDebitorNumberSuffix integer;
|
||||
relatedPartner hs_office_partner;
|
||||
relatedDebitor hs_office_debitor;
|
||||
newMemberNumber numeric;
|
||||
@ -36,7 +33,6 @@ begin
|
||||
raise notice '- using debitor (%): %', relatedDebitor.uuid, relatedDebitor;
|
||||
insert
|
||||
into hs_office_membership (uuid, partneruuid, maindebitoruuid, membernumber, validity, reasonfortermination)
|
||||
-- values (uuid_generate_v4(), relatedPartner.uuid, relatedDebitor.uuid, forDebitorNumberPrefix, daterange('20221001' , null, '[]'), 'NONE');
|
||||
values (uuid_generate_v4(), relatedPartner.uuid, relatedDebitor.uuid, newMemberNumber, daterange('20221001' , null, '[]'), 'NONE');
|
||||
end; $$;
|
||||
--//
|
||||
@ -52,10 +48,5 @@ do language plpgsql $$
|
||||
call createHsOfficeMembershipTestData('Second e.K.', 12);
|
||||
call createHsOfficeMembershipTestData('Third OHG', 13);
|
||||
end;
|
||||
-- begin
|
||||
-- call createHsOfficeMembershipTestData('First GmbH', 1000100);
|
||||
-- call createHsOfficeMembershipTestData('Second e.K.', 1000200);
|
||||
-- call createHsOfficeMembershipTestData('Third OHG', 1000300);
|
||||
-- end;
|
||||
$$;
|
||||
--//
|
||||
|
Loading…
Reference in New Issue
Block a user