niksmac / mitd

https://waffle.io/niksmac/mitd
GNU General Public License v2.0
2 stars 0 forks source link

Payment Calculation Incorrect #139

Open zivanta opened 7 years ago

zivanta commented 7 years ago

User: subrata.zivanta_1347

How much I need to pay if I want to purchase Premium plan after purchasing Basic and Standard plan and before expire the previous plan.

For example: Few day ago user (subrata.zivanta_1347) purchased Basic plan and today user purchased Standard plan. And for that the user already paid $30+$99= $129. But this is incorrect. Again if that user want to purchase Premium plan now. That user need to pay again $199. This is also incorrect, because user paid some amount already but not fully utilised the service. The formula of payment should be… Actual pay = Plan value - Previously paid amount (if previous plan still active)

zivanta commented 7 years ago

makeitdeals_needtopay

salusn commented 7 years ago

Based on discussion: 1.User can subscribe only after he's left with 0 bids 2.We will remove the buttons from the subscribe page if he have any bids remaining.

Completed the above functionalities.Please check.

zivanta commented 7 years ago

Unable to test up to 5 bid process. After 3 bid process system stats showing PDO duplicate error.

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'message-215-0-0-und' for key 'PRIMARY': INSERT INTO {field_data_field_opportunity_ref} (entity_type, entity_id, revision_id, bundle, delta, language, field_opportunity_ref_target_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => message [:db_insert_placeholder_1] => 215 [:db_insert_placeholder_2] => 215 [:db_insert_placeholder_3] => notify_user_when_invited [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 553 ) in field_sql_storage_field_storage_write() (line 514 of /home/makeitdeals-admin/public_html/modules/field/modules/field_sql_storage/field_sql_storage.module).

salusn commented 7 years ago

Checked and no issues found here.Can you please explain that particular use case?

zivanta commented 7 years ago

No error found today while testing.

salusn commented 7 years ago

Can you please close the error?