<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"Arial Narrow";
        panose-1:2 11 6 6 2 2 2 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Segoe UI",sans-serif;
        mso-fareast-language:EN-US;}
p.BalloonText, li.BalloonText, div.BalloonText
        {mso-style-name:"Balloon Text";
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma",sans-serif;}
span.E-MailFormatvorlage21
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.E-MailFormatvorlage22
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage23
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.E-MailFormatvorlage24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE-AT link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>For each reseller, you have a „Reseller Contract“ (system contract), which is linked to a dedicated contact. Such contacts for system contracts must have an emtpy reseller field.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>For subscribers, you have „Customer“ contracts. Each subscriber can belong to exactly one customer contract. A customer contract will belong to exactly one reseller. Each customer contract is linked to a contact, which is linked to the reseller the customer is supposed to belong to.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=DE style='mso-fareast-language:DE-AT'>Von:</span></b><span lang=DE style='mso-fareast-language:DE-AT'> Koot Pienaar [mailto:koot@ntelecom.co.za] <br><b>Gesendet:</b> Donnerstag, 18. Mai 2017 07:57<br><b>An:</b> 'Rene Krenn' <rkrenn@sipwise.com>; Spce-user@lists.sipwise.com<br><b>Betreff:</b> RE: [Spce-user] Problem Creating Customers/Resellers<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=AF style='color:#1F497D'>So this means i wil have to have 2 contacts per one with reseller and one without?<o:p></o:p></span></p><p class=MsoNormal><span lang=AF style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF style='color:#1F497D'>This seems to be counterintuitave.<o:p></o:p></span></p><p class=MsoNormal><span lang=AF style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormalCxSpMiddle style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto'><span lang=EN-US style='font-family:"Arial Narrow",sans-serif;color:#404040;mso-fareast-language:AF'>Koot Pienaar<o:p></o:p></span></p></div><p class=MsoNormal><span lang=AF style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma",sans-serif;mso-fareast-language:AF'>From:</span></b><span lang=EN-US style='font-size:10.0pt;font-family:"Tahoma",sans-serif;mso-fareast-language:AF'> Rene Krenn [<a href="mailto:rkrenn@sipwise.com">mailto:rkrenn@sipwise.com</a>] <br><b>Sent:</b> 17 May 2017 04:45 PM<br><b>To:</b> 'Koot Pienaar'; <a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><b>Subject:</b> AW: [Spce-user] Problem Creating Customers/Resellers<o:p></o:p></span></p></div></div><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>>Now i want to create a customer for the reseller. So i select create customer, i then select my contact and billing profile and click save. <o:p></o:p></span></p><p class=MsoNormal><span lang=AF>Create a separate contact for each customer, or make sure for to choose an existing contact *<b>belonging to your newly created reseller</b>*.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>An additional check for this was introduced by commit 35bad60d2ed0776ae5a76bce7ca54ba55d502353 in ngcp-panel master three weeks ago.<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>Also the billing profile you use is also supposed to belong to your new reseller, so make sure to prepare billing profiles per reseller separately before.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span lang=DE style='mso-fareast-language:DE-AT'>Von:</span></b><span lang=DE style='mso-fareast-language:DE-AT'> Spce-user [<a href="mailto:spce-user-bounces@lists.sipwise.com">mailto:spce-user-bounces@lists.sipwise.com</a>] <b>Im Auftrag von </b>Koot Pienaar<br><b>Gesendet:</b> Mittwoch, 17. Mai 2017 15:51<br><b>An:</b> <a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><b>Betreff:</b> [Spce-user] Problem Creating Customers/Resellers<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span lang=AF>Hi Guys<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>I am trying to create a reseller, with customers and subscribers.<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>I create Reseller 1 from the resellers page. Then i create a new contract from the dialog box for creating reseller, but then i select create contact from the create contract page.<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>I save the contact, select the contact then save the contract. <o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>I then select the new contract and Create my reseller.<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>Now i want to create a customer for the reseller. So i select create customer, i then select my contact and billing profile and click save. Then i get error, Failed to create customer contract [14BF6018FA287110], my panel log shows the output below:<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>', 'billing_profiles.0.row.network_id' => '', 'status' => 'active', 'billing_profiles.0.start' => '', 'billing_profile_definition' => 'id', 'billing_profile.id' => '1', 'invoice_template.id' => '', 'billing_profiles.0.row.profile_id' => '', 'vat_rate' => '0', 'external_id' => '', 'invoice_email_template.id' => '', 'passreset_email_template.id' => '', 'contact.id' => '7', 'billing_profiles.0.end' => '', 'save' => 'Save', 'profile_package.id' => '', 'subscriber_email_template.id' => ''} MSG="Failed to create customer contract ({UNKNOWN}: Can't call method "id" on an undefined value at /usr/share/perl5/NGCP/Panel/Utils/ProfilePackages.pm line 538. at /usr/share/perl5/Catalyst/Model/DBIC/Schema.pm line 526#012)" LOG=""<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>It looks like it is because the contact does not have a reseller assigned to it. But when trying to edit the contact to assing reseller there is no option to do so. When i manually create a contact and not from the Reseller creation page this does not happen but this is a catch 22. I cannot assign a reseller to the contact if it is not created yet. I also cannot create reseller without contact.<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>How can i overcome this? Or am i doing something wrong?<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p><p class=MsoNormal><span lang=AF>Regards <o:p></o:p></span></p><p class=MsoNormalCxSpMiddle style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;mso-add-space:auto'><span lang=EN-US style='font-family:"Arial Narrow",sans-serif;color:#404040;mso-fareast-language:AF'>Koot Pienaar<o:p></o:p></span></p><p class=MsoNormal><span lang=AF><o:p> </o:p></span></p></div></body></html>