I did a POSTCHARGE, assuming it is to deduct from user account balance (because i am guessing POSTCHARGE means to deduct since the other option is Recharge, the name is quite ambiguous), and it was deducted successfully, but the email was sent as Recharge and notified user the total amount after adding the postcharged amount, instead of the balance after deduction.
Also google for meaning of POSTCHRAGE but can't find this term, If it is deduct, why not just name it as deduct or debit? or actually there is other meaning to it?
Thanks
ACP
$customer_info['refill_amount'] = $post_array['credit'];// @@ fix sent email wrong for POSTCHARGEif ($post_array['payment_type'] == 0){ $customer_info['balance'] = $customer_info['balance'] + $customer_info['refill_amount']; $this->common->mail_to_users('account_refilled', $customer_info);}else{ // Note: I assume POSTCHAGE field still uses refill_amount, same as REFILL. $customer_info['balance'] = $customer_info['balance'] - $customer_info['refill_amount']; $this->common->mail_to_users('account_postcharged', $customer_info);} // @@ fix sent email wrong for POSTCHARGEEnter code here...
// @@ this is missingcase 'account_postcharged': $subject = str_replace('#REFILLBALANCE#', $accountinfo['refill_amount'], $subject); $message = str_replace('#NAME#', $accountinfo['first_name'] . " " . $accountinfo['last_name'], $message); $message = str_replace('#REFILLBALANCE#', $accountinfo['refill_amount'], $message); $message = str_replace('#BALANCE#', $accountinfo['balance'], $message); $message = str_replace('#COMPANY_WEBSITE#', $company_website, $message); $message = str_replace('#COMPANY_EMAIL#', $settings_reply_email, $message); break;// @@ this is missing
39
---------------------
account_postcharged
---------------------
Your account has been debited WITH #REFILLBALANCE#
---------------------
Account postcharge notification template
---------------------
Dear #FIRST_NAME#, Your account has been debited with #REFILLBALANCE#. Your new balance is #BALANCE#. Thanks, #COMPANY_NAME#
---------------------
<p>Your account has been debited WITH #REFILLBALANCE#. Your new balance is
#BALANCE#.</p>
---------------------
<p>Dear #NAME#,</p>
<p>Your account has been debited with #REFILLBALANCE#.</p>
<p>Your account new balance is #BALANCE#.</p>
<p>For more info, please visit our website #COMPANY_WEBSITE# or contact our support department at #COMPANY_EMAIL#.</p>
<p>Thanks,<br />
#COMPANY_NAME#</p>
-------------------