Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sat Apr 20, 2024 12:04 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Correct some Invoice address data for clients and suppliers
PostPosted: Thu Dec 03, 2009 9:30 pm 
Offline

Joined: Tue May 23, 2006 8:30 pm
Posts: 67
Hi
Invoices has some errors when shows Company and Customers address data at the top of the invoice, for example:

Company (supplier) address do not shows "country" and there is no field to put it in 'Invoice-->Configuration' menu.
I tried to manually insert country value in cc_invoice_conf table and at this time invoice shows this value properly but when editing some other information from 'Invoice-->Configuration' menu the data in country field in cc_invoice_conf dissapears again.

Other data that I think its very important to show is the field 'state' especially if you live in the U.S., the address must be shown by putting 'city' and 'state' before the 'zipcode' for example:

2899 Florida Ave # 433 (this is the address field)
Coconut Grove, FL 33122 (in order city, state, zipcode fileds)
United States

to do this I had to modify A2B_invoice_view :

Add this lines in conf_clause' section (near the top)

$conf_clause = "key_val = 'state'";
$result = $invoice_conf_table -> Get_list($DBHandle, $conf_clause, 0);
$state = $result[0][0];

and then modify client and supplier wrapper data from this:

<div class="zipcode-city"><span class="zipcode"><?php echo $card['zipcode'] ?></span> <span class="city"><?php echo $card['city'] ?></span></div>

To this:

<div class="zipcode-city"> <span class="city"><?php echo $card['city'] ?><?php echo "," ?></span> <span class="state"><?php echo $card['state'] ?></span> <span class="zipcode"><?php echo $card['zipcode'] ?></span></div>

Note the correct order of city, state and zipcode.

hope it helps

rafael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group