Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
credit note
02-02-2015, 07:34 PM,
#1
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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)