Changeset 938

Show
Ignore:
Timestamp:
08/07/08 08:36:53 (4 months ago)
Author:
rach
Message:

View payment history in Web Customer UI

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/admin/Public/form_data/FG_var_payment.inc

    r931 r938  
     1 
     2 
     3 
    14<?php 
    25 
  • trunk/common/lib/Class.A2Billing.php

    r904 r938  
    419419                if(!isset($this->config['webcustomerui']['support']))   $this->config['webcustomerui']['support'] = '1'; 
    420420                if(!isset($this->config['webcustomerui']['notification']))      $this->config['webcustomerui']['notification'] = '1'; 
    421  
     421                if(!isset($this->config['webcustomerui']['payment']))   $this->config['webcustomerui']['payment'] = '1'; 
    422422                // conf for the web ui 
    423423                if(!isset($this->config['webui']['buddy_sip_file']))            $this->config['webui']['buddy_sip_file'] = '/etc/asterisk/additional_a2billing_sip.conf'; 
  • trunk/customer/help.php

    r693 r938  
    107107</td></tr></table> 
    108108</div></div></div> 
     109'; 
     110 
     111$CC_help_view_payment=' 
     112<div id="div1000" style="display:visible;"> 
     113<div id="kiblue_header"><div class="w4"> 
     114        <img src="'.KICON_PATH.'/gnome-finance.gif" width="48" height="48" class="kikipic"/> 
     115        <div class="w2"> 
     116<table width="90%"> 
     117<tr> 
     118<td width="100%">'.gettext("Payment history - The section below allows you to see payments that you did.").'<br> 
     119<br></td> 
     120</tr> 
     121</table> 
     122</div></div></div> 
     123&nbsp; 
    109124'; 
    110125 
  • trunk/customer/templates/default/main.tpl

    r726 r938  
    4646                <ul><li><a href="call-history.php?section=2"><strong>{php} echo gettext("CALL HISTORY");{/php}</strong></a></li></ul> 
    4747                {/if} 
     48                 
     49                {if $A2Bconfig.webcustomerui.payment==1 } 
     50                <li><a href="#" target="_self"></a></li> 
     51                <ul><li><a href="payment-history.php?section=3"><strong>{php} echo gettext("PAYMENT HISTORY");{/php}</strong></a></li></ul> 
     52                {/if} 
     53                 
    4854 
    4955                {if $A2Bconfig.webcustomerui.voucher==1 } 
    5056                <li><a href="#" target="_self"></a></li> 
    51                 <ul><li><a href="A2B_entity_voucher.php?form_action=list&section=3"><strong>{php} echo gettext("VOUCHER");{/php}</strong></a></li></ul> 
     57                <ul><li><a href="A2B_entity_voucher.php?form_action=list&section=4"><strong>{php} echo gettext("VOUCHER");{/php}</strong></a></li></ul> 
    5258                {/if} 
    5359 
     
    5965                <li> 
    6066                <a href="javascript:;" class="toggle_menu" target="_self"><img id="img1" 
    61                 {if ($section == "4")} 
     67                {if ($section == "5")} 
    6268                src="templates/{$SKIN_NAME}/images/minus.gif" 
    6369                {else} 
     
    6672                onmouseover="this.style.cursor='hand';" WIDTH="9" HEIGHT="9">&nbsp; <strong>{php} echo gettext("INVOICES");{/php}</strong></a></li> 
    6773                <div class="tohide" 
    68                 {if ($section =="4")} 
     74                {if ($section =="5")} 
    6975                style=""> 
    7076                {else} 
     
    7379                <ul> 
    7480                        <li><ul> 
    75                                         <li><a href="A2B_entity_call_details.php?section=4"><strong>{php} echo gettext("Invoice Details");{/php}</strong></a></li> 
    76                                         <li><a href="A2B_entity_view_invoice.php?section=4"><strong>{php} echo gettext("View Invoices");{/php}</strong></a></li> 
    77                                         <li><a href="invoices_customer.php?section=4"><strong>{php} echo gettext("Current Invoice");{/php}</strong></a></li> 
     81                                        <li><a href="A2B_entity_call_details.php?section=5"><strong>{php} echo gettext("Invoice Details");{/php}</strong></a></li> 
     82                                        <li><a href="A2B_entity_view_invoice.php?section=5"><strong>{php} echo gettext("View Invoices");{/php}</strong></a></li> 
     83                                        <li><a href="invoices_customer.php?section=5"><strong>{php} echo gettext("Current Invoice");{/php}</strong></a></li> 
    7884                        </ul></li> 
    7985                </ul> 
     
    8591                {if $A2Bconfig.webcustomerui.did==1 } 
    8692                <li><a href="#" target="_self"></a></li> 
    87                 <ul><li><a href="A2B_entity_did.php?form_action=list&section=5"><strong>{php} echo gettext("DID");{/php}</strong></a></li></ul> 
     93                <ul><li><a href="A2B_entity_did.php?form_action=list&section=6"><strong>{php} echo gettext("DID");{/php}</strong></a></li></ul> 
    8894                {/if} 
    8995 
    9096                {if $A2Bconfig.webcustomerui.speeddial==1 } 
    9197                <li><a href="#" target="_self"></a></li> 
    92                 <ul><li><a href="A2B_entity_speeddial.php?atmenu=speeddial&stitle=Speed+Dial&section=6"><strong>{php} echo gettext("SPEED DIAL");{/php}</strong></a></li></ul> 
     98                <ul><li><a href="A2B_entity_speeddial.php?atmenu=speeddial&stitle=Speed+Dial&section=7"><strong>{php} echo gettext("SPEED DIAL");{/php}</strong></a></li></ul> 
    9399                {/if} 
    94100 
    95101                {if $A2Bconfig.webcustomerui.ratecard==1 } 
    96102                <li><a href="#" target="_self"></a></li> 
    97                 <ul><li><a href="A2B_entity_ratecard.php?form_action=list&section=7"><strong>{php} echo gettext("RATECARD");{/php}</strong></a></li></ul> 
     103                <ul><li><a href="A2B_entity_ratecard.php?form_action=list&section=8"><strong>{php} echo gettext("RATECARD");{/php}</strong></a></li></ul> 
    98104                {/if} 
    99105 
    100106                {if $A2Bconfig.webcustomerui.simulator==1 } 
    101107                <li><a href="#" target="_self"></a></li> 
    102                 <ul><li><a href="simulator.php?section=8"><strong>{php} echo gettext("SIMULATOR");{/php}</strong></a></li></ul> 
     108                <ul><li><a href="simulator.php?section=9"><strong>{php} echo gettext("SIMULATOR");{/php}</strong></a></li></ul> 
    103109                {/if} 
    104110 
    105111                {if $A2Bconfig.webcustomerui.callback==1 } 
    106112                <li><a href="#" target="_self"></a></li> 
    107                 <ul><li><a href="callback.php?section=9"><strong>{php} echo gettext("CALLBACK");{/php}</strong></a></li></ul> 
     113                <ul><li><a href="callback.php?section=10"><strong>{php} echo gettext("CALLBACK");{/php}</strong></a></li></ul> 
    108114                {/if} 
    109115 
  • trunk/DataBase/mysql-5.x/UPDATE-a2billing-v1.3.0-to-v1.4.0-mysql.sql

    r931 r938  
    10451045 
    10461046ALTER TABLE cc_logpayment ADD added_refill SMALLINT NOT NULL DEFAULT '0'; 
     1047 
     1048-- Add payment history in customer WebUI 
     1049 
     1050INSERT INTO cc_config( config_title, config_key, config_value, config_description, config_valuetype, config_group_id, config_listvalues ) 
     1051VALUES ('Payment Historique Modules', 'payment', '1', 'Enable or Disable the module of payment historique for the customers', 1, 3, 'yes,no'); 


Google