Can I create a visitor account in "Arrears"?
- 01 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Can I create a visitor account in "Arrears"?
- Updated on 01 Apr 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
When we add a Visitor patron from the Nerve Center it creates the accounts with "Advanced" billing - is it possible to create a Visitor account in "Arrears" ?
Visitors are created using the CreateVisitorPatron function in VisitorPatrons.asp. At the start of VisitorPatrons.asp is the following function:
function CreateVisitorPatron( LogonId, Group, LastName, FirstNames, Password )
{
var User = SignUpGlobals.GetPsUser();
User.LogonId = ( null == LogonId ? "" : LogonId );
User.Group = ( null == Group ? "" : Group );
User.LastName = ( null == LastName ? "" : LastName );
User.FirstName = ( null == FirstNames ? "" : FirstNames );
User.Password = ( null == Password ? "" : Password );
// If this throws an exception it will be propagated to the caller.
User.CreateAsVisitor( SignUp.Credentials );
return true;
}
To create Visitor patrons with Arrears billing, modify the function to look like this:
function CreateVisitorPatron( LogonId, Group, LastName, FirstNames, Password )
{
var User = SignUpGlobals.GetPsUser();
User.LogonId = ( null == LogonId ? "" : LogonId );
User.Group = ( null == Group ? "" : Group );
User.LastName = ( null == LastName ? "" : LastName );
User.FirstName = ( null == FirstNames ? "" : FirstNames );
User.Password = ( null == Password ? "" : Password );
User.BillingOption = "Arrears";
// If this throws an exception it will be propagated to the caller.
User.CreateAsVisitor( SignUp.Credentials );
return true;
}
Was this article helpful?