[ASTPPCOM-450] Unable to add zero-cost DID to customer account unless account balance below credit limit Created: 02/Jul/18  Updated: 09/Oct/19  Resolved: 08/Sep/18

Status: Done
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task
Reporter: alexheylin Assignee: Samir Doshi
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Current Behaviour: Try to assign DID with zero cost, get "This Account have not sufficient amount to purchase this DID" message.

Expected Behaviour: DID is assigned to account.

Guys - I don't understand this one well enough to fix it myself and send you a PR for it.



 Comments   
Comment by Samir Doshi [ 12/Jul/18 ]

Just tried the same thing on demo server and its working fine.
Please reconfirm and provide steps to reproduce the issue.

http://latest.astppbilling.org/

Comment by alexheylin [ 25/Jul/18 ]

Hi [~smrdoshi]

I just checked again current v3.6 and I get the same thing.

Steps to reproduce:
Set post-paid customer account to credit limit 10, set customer balance to 20 (over credit limit), try to create DID -> Enter DID number, select provider -> select customer account, click save. I get red warning triangle, with mouseover as shown. Setting Setup Fee & Monthly Fee to zero makes no difference, it still refuses.

I tried to test against http://latest.astppbilling.org/ but currently it's returning the PHP contents of index.php instead of running the PHP and returning output. Is that the demo server you mean?

Please can you confirm - for post-paid customers a positive balance is actually a debt (invoiced but not yet paid)?

Comment by alexheylin [ 25/Jul/18 ]

http://latest.astppbilling.org/ is back now - so tested on there... Create post-paid customer, set credit limit to 20, create DID with setup cost of 20 and assign to customer - this works, and customer is now at credit limit. Change customer credit limit to 10 (to emulate CDR being invoiced to customer, taking them over credit limit). Now try to assign them a DID with zero setup and monthly costs and it fails as above.

Comment by Samir Doshi [ 08/Sep/18 ]

Tried again with the steps which you provided and it worked.

Generated at Sat Feb 10 07:17:14 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.