[ASTPPCOM-929] Package assignation with same price as account balance fails Created: 10/Aug/22 Updated: 26/Sep/22 Resolved: 23/Sep/22 |
|
| Status: | Closed |
| Project: | ASTPP Community |
| Component/s: | None |
| Affects Version/s: | v5.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Low |
| Reporter: | Alejandro Mejia | Assignee: | Kinjal Prajapati |
| Resolution: | Done | Votes: | 0 |
| Labels: | v5 | ||
| Remaining Estimate: | 0h | ||
| Time Spent: | 5h 40m | ||
| Original Estimate: | 2h | ||
| Reproducibility: | always |
| Category: | Functional |
| Sprint: | 2022-COM-DEV-V60-W37 |
| Edition: | Community |
| Description |
|
If customer on a prepaid account has $100 on balance, and administrator tries to assign a product that costs $100, it fails with "not enough balance" error message. Found that the validation on /opt/ASTPP/web_interface/astpp/application/modules/accounts/controllers/accounts.php for the function customer_orders_save checks for = instead of >= It should be: if ($account_balance >= $total_amt) |
| Comments |
| Comment by Alpesh Kaklottar [ 30/Aug/22 ] |
|
This things is not working when currency conversations is applied. For example: Base currency : USD Admin currency & customer currency : INR Currency rate USD to INR : 75.3400 Product price and customer account balance is 100 INR. When admin try to assign product to customer facing same error. This is not working due to currency conversion. See attached video. |
| Comment by Kinjal Prajapati [ 22/Sep/22 ] |
|
Solved this issue as per the above comment. https://gitlab.com/inextrix/ITPLATP/ASTPPCOM/-/merge_requests/800 |
| Comment by Bhavyata Raval (Inactive) [ 26/Sep/22 ] |
|
verified in latest community , checked as per currency conversion concern, now product able to purchase. |