3 places to update rank: a) a user purchase package then update all uplines' rank b) admin generate bonus then update all users' rank all 1-star to 5-stars need inactive members from difference lines

---------------------------------
invoice_pv VS pv_sub_total VS temporary_pv

invoice_pv (tbl_product_order) = to show pv on invoice (bonus wont calculate pv of package that allow for reselling, so although we show how much pv user get from invoice, he cannot get bonus from this invoice_pv)

temporary_pv (tbl_product_order) = store pv of package that allow for reselling.

pv_sub_total (tbl_cart) = store pv of the product and package that NOT allow reselling.

Example, When a user purchase Product A = 300pv and Package A 1000pv that allow resell by pin. So,
invoice_pv = 1300
temporary_pv = 1000
pv_sub_total = 300


---------------------------------
If client request allow admin top up pv wallet, then you have 2 options :
option 1 (Easy) :
controllers/secure/manage_product_order page allow edit pv textbox.

Option 2 (Hard) :
u need to edit controllers/secure/manage_product_order, ctrl + f to find "PV credit wallet entry start", remove the comment out. Then do the following 3 things :
1) add pv wallet on admin manage member page.
2) add pv wallet on left menu on client site.
3) edit all bonuses base on pv wallet (tran_account = 9) instead of tbl_cart "pv_sub_total"

---------------------------------
Note :
1)If new register acc didnt put any sponsor, then it will auto asign company user_id 141 as sponsor.

2)When a user purchase a package, but his upline didn't purchase package yet. So Direct Sponsor bonus is not yet payout. Admin need to click "Generate Direct Sponsor Bonus" everyday to check and apy DSB incase his upline already purchase new package on any day within 7 days.

---------------------------------

update rank code structure for admin approve package :
step 1 : $this->common->update_memeber_ranks($order_data['user_id']) on Manage_product_order;
Step 2 : common.php > update_rank_LST
step 3 : common.php > directDownRank (I have edited logic here)

---------------------------------

Todolist in future :
1) LST withdraw only can be done on 16 / 1 of month

2) fix hidden bug:
user can use this trick to redeem all register wallet.

company allow 1 ic register many acc? if yes he will register new acc with register wallet credit, then delete package, then reorder new package with register wallet credit, then delete package, then reorder new package with register wallet credit until redeem all register wallet.

if company not allow 1 ic register many acc, he also 1 ic keep doing this over and over again.

3) bfm delete package no need debit out coin
but lst delete package need to debit out coin.

4) prevent admin click 2 times approve package debit out cash wallet 2 times.

5) prevent admin click 2 times delete package credit into cash wallet 2 times.

6) upline can use register wallet to register 3 downlines at the same time, system MUST check if upline's register wallet is enough credit for the 3 new packages.



Posted by Zac1987 on 13 June, 2020
| | edit post
Share On Facebook ! Share On Google Buzz ! Add To Del.icio.us ! Share On Digg ! Share On Reddit ! Share On LinkedIn ! Post To Blogger ! Share On StumbleUpon !
Share On Friend Feed ! Share On MySpace ! Share On Yahoo Buzz ! Share On Google Reader ! Google Bookmark ! Send An Email ! Blog Feed !

0 comments






Enter your email address:

Subscribe in a reader

Follow zac1987 on Twitter

Donation

If you feel my website is informative and it is useful for you, please donate some money to support me or buy me a drink. I will continues this good works. Thank you.