Topic: Credit This
If i raise an invoice 1000$ to customer and the customer made payment for this invoice , then i click the customer transaction link and select job invoice, an icon with credit is shown. Actually this invoice payment have already done. What is the use of that credit icon..?
This function correctly works in previous version. but only problem in frontaccounting 2.3RC1
I checked the code with previous version of front accounting
function credit_link($row)
{
return $row['type'] == ST_SALESINVOICE && $row["TotalAmount"] - $row["Allocated"] > 0 ?
pager_link(_("Credit This"),
"/sales/customer_credit_invoice.php?InvoiceNumber=".
$row['trans_no'], ICON_CREDIT)
: '';
}
The function credit_link in previous version changed to
function credit_link($row)
{
return $row['type'] == ST_SALESINVOICE && $row["Outstanding"] > 0 ?
pager_link(_("Credit This") ,
"/sales/customer_credit_invoice.php?InvoiceNumber=". $row['trans_no'], ICON_CREDIT):'';
}
Is there any significance for changing this function