Hi all,
I started to implement my own service for creating a billing account - but
finally found an existing one (createBillingAccount within the
accounting-component).

I added the call of the service in the registration-process - but now I have
a permission-problem... The service has the following permissons:

<permission-service service-name="acctgBillingAcctCheck"
main-action="CREATE"/>

This leads to 

    <!-- Returns hasPermission=true if user has one of the base ACCOUNTING
CRUD+ADMIN permissions -->
    <simple-method method-name="acctgBillingAcctCheck"
short-description="Accounting billing account permission logic">
        <call-simple-method method-name="basePermissionCheck"/>
    </simple-method>

Which means, that the service can't be called as I call it during the
registration.

Any suggestions how would be the best way to handle this?

Thanks in advance!

Alexander


Anil Patel-3 wrote:
> 
> Alexander,
> I suggest you should look at the screen implementation for creating
> billing account from ofbiz accounting. If you trace code from there to
> controller, you will be able to reach to the service that finally creates
> billing account.
> 
> Based on your business process requirements you use OOTB services or may
> choose to write your own. Even if you decide to write your own, existing
> code will be very helpful.
> 
> Thanks and Regards
> Anil Patel
> HotWax Media Inc
> http://www.hotwaxmedia.com/apache-ofbiz-blog/ofbiz-tutorial-custom-components-in-ofbiz/
> 
> On Dec 4, 2009, at 1:03 PM, Alexander1893 wrote:
> 
>> 
>> Hi Sharan,
>> 
>> thanks for your reply - but actually thaht doesn't help too much.
>> I know how I can setup a billing account in the admin-area. But I want to
>> create one during the registration of a user in the Shop-Frontend.
>> My problem is, that I couldn't find any method or service in the API that
>> I
>> can call for creating a billing account.
>> 
>> Looking forward for any further help!
>> 
>> Kind regards
>> Alexander
>> 
>> 
>> Sharan-F wrote:
>>> 
>>> Hi Alexander
>>> 
>>> I'm not sure but this could be a reason.
>>> 
>>> Billing Accounts are normally created in the Accounting. This is because
>>> you would want to perform some type of credit check on a customer before
>>> you give them a Billing Account  and decide what their limit will be. 
>>> They need to be credit worthy otherwise you may not get paid.
>>> 
>>> Details of Billing Accounts and how to create and update them are
>>> available in the OFBiz online help. This is accessed by pressing 'Help'
>>> on
>>> any of the OFBiz screens.
>>> 
>>> Not sure if this helps you much.
>>> 
>>> Thanks
>>> Sharan
>>> 
>>> 
>>> Alexander1893 wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> I'm trying to set up an Billing Account for each customer, when he
>>>> registers in the e-commerce shop.
>>>> Actually I cannot fin the right way... For FinAccounts I found a
>>>> Service
>>>> doing that - but for Billing Accounts I found nothing.
>>>> 
>>>> Can anyone help?
>>>> 
>>>> Thanks a lot!
>>>> 
>>>> Greetz
>>>> Alexander
>>>> 
>>> 
>>> 
>> 
>> -- 
>> View this message in context:
>> http://n4.nabble.com/Creating-an-Billing-Account-tp940377p948745.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://n4.nabble.com/Creating-an-Billing-Account-tp940377p958975.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to