Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete customer who has open balance #390

Open
puneetimpinge opened this issue Jul 21, 2017 · 4 comments
Open

Delete customer who has open balance #390

puneetimpinge opened this issue Jul 21, 2017 · 4 comments

Comments

@puneetimpinge
Copy link

How can I delete a customer who has open balance?

oauth_client = OAuth::AccessToken.new($qb_oauth_consumer, qbo.token, qbo.secret)
@service = Quickbooks::Service::Customer.new
@service.access_token = oauth_client
@service.realm_id = qbo.realm_id

customer = @service.find_by(:company_name, @store.name).first
@service.delete(customer)

Error message:

Quickbooks::IntuitRequestException: Delete List Has Balance Error:
The entity you are trying to delete has an open balance. : This customer cannot be deleted because it has a non-zero balance

@minimul
Copy link
Collaborator

minimul commented Jul 21, 2017 via email

@puneetimpinge
Copy link
Author

Is there any way in apis to deactivate a customer?

@minimul
Copy link
Collaborator

minimul commented Jul 24, 2017 via email

@PhoenixUA
Copy link

Do a sparse update sending active: false in the payload`

On Mon, Jul 24, 2017 at 2:53 AM, puneetimpinge @.***> wrote: Is there any way in apis to deactivate a customer? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#390 (comment)>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMMtsi6DcPA25Y42_89T1hCXXHPGzKUks5sRD9_gaJpZM4OfJSL .

it doesn't help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants