credit note
the amount of credit note is not shown in remittance advice
bug in credit_invoice.php
ligne 563
if....elesif are the same why ?
if ($myrow[0] > ($_SESSION['CreditItems' . $identifier]->total + $_SESSION['CreditItems' . $identifier]->FreightCost + $TaxTotal)){
$Allocate_amount = $_SESSION['CreditItems' . $identifier]->total + $_SESSION['CreditItems' . $identifier]->FreightCost + $TaxTotal;
$Settled = 1;
} else if ($myrow[0] > ($_SESSION['CreditItems' . $identifier]->total + $_SESSION['CreditItems' . $identifier]->FreightCost + $TaxTotal)) {
/*the balance left to allocate is less than the credit note value */
$Allocate_amount = $myrow[0];
$SettledInvoice = 1;
$Settled =0;
} else {
$Allocate_amount = $myrow[0];
$SettledInvoice = 1;
$Settled =1;
}
|