{
$credit_no = $_GET['AddedID'];
$trans_type = 11;
display_notification_centered(_("Credit Note has been processed"));
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("View this credit note")), 0, 1);
{
$credit_no = $_GET['AddedID'];
$trans_type = 11;
display_notification_centered(_("Credit Note has been processed"));
display_note(get_customer_trans_view_str($trans_type, $credit_no, _("View this credit note")), 0, 1);
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL Journal Entries for this Credit Note")));
hyperlink_params($_SERVER['PHP_SELF'], _("Enter Another Credit Note"), "NewCredit=yes");
display_note(get_gl_view_str($trans_type, $credit_no, _("View the GL Journal Entries for this Credit Note")));
hyperlink_params($_SERVER['PHP_SELF'], _("Enter Another Credit Note"), "NewCredit=yes");
$_POST['OrderDate'] = Today();
if (!is_date_in_fiscalyear($_POST['OrderDate']))
$_POST['OrderDate'] = end_fiscalyear();
$_POST['OrderDate'] = Today();
if (!is_date_in_fiscalyear($_POST['OrderDate']))
$_POST['OrderDate'] = end_fiscalyear();
if (isset($_POST['ProcessCredit']))
{
//alert("WriteOffGLCode = ".$_POST['WriteOffGLCode'].", CreditType = ".$_POST['CreditType']);
if (isset($_POST['ProcessCredit']))
{
//alert("WriteOffGLCode = ".$_POST['WriteOffGLCode'].", CreditType = ".$_POST['CreditType']);
$_POST['WriteOffGLCode'] == ''))
{
display_note(_("For credit notes created to write off the stock, a general ledger account is required to be selected."), 1, 0);
$_POST['WriteOffGLCode'] == ''))
{
display_note(_("For credit notes created to write off the stock, a general ledger account is required to be selected."), 1, 0);
- add_to_order($_SESSION['credit_items'], $_POST['stock_id'], $_POST['qty'],
+ add_to_order($_SESSION['credit_items'], $_POST['line_no'], $_POST['stock_id'], $_POST['qty'],