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
|