@davoodmehraban89 / Factor-easy / commits / 1068eaf
Fork 0

سامانه صدور فاکتور و حسابداری

test(wp2): give disposable two-member organization exactly two licensed seats

davoodmehraban89 committed Nov 22, 2026 at 13:37 UTC 1068eafeeb435d4706921e247a108e9b844d8fc1
1 file changed +1 -1
scripts/wp2-source-approval-boundary-jwt-e2e.mjs
+1 -1
@@ -68,7 +68,7 @@ const sourceId='QA229_SALE_'+suffix,voucherId='QA229_JV_'+suffix;
68 sql('INSERT INTO public.organizations(id,owner_user_id,name) VALUES ('+
69 q(org)+','+q(owner.id)+','+q('QA229 disposable organization')+');');
70 sql('UPDATE public.licenses SET organization_id='+q(org)+
71 - ",plan='lifetime',status='active',ends_at=date '2099-01-01',modules=array['full_suite']::text[] WHERE user_id="+q(owner.id)+';');
71 + ",plan='lifetime',status='active',max_users=2,ends_at=date '2099-01-01',modules=array['full_suite']::text[] WHERE user_id="+q(owner.id)+';');
72 sql('INSERT INTO public.organization_members(organization_id,user_id,status,is_owner) VALUES ('+
73 q(org)+','+q(owner.id)+",'active',true),("+q(org)+','+q(seller.id)+",'active',false);");
74 sql('INSERT INTO public.member_module_permissions(organization_id,member_id,module_key,capabilities,scope_type) '+