X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=sales%2Fcredit_note_entry.php;h=f27bf8f0ad8617c4c9f9f81bbb6b58179253c707;hb=0917891be384286611592f13872cc9437826ce09;hp=cab8c3dc810a6a7edbf64284187fdf9878c76bcd;hpb=b119b85ae454cf0cab51dce950d24b85ae37f54a;p=fa-stable.git
diff --git a/sales/credit_note_entry.php b/sales/credit_note_entry.php
index cab8c3dc..f27bf8f0 100644
--- a/sales/credit_note_entry.php
+++ b/sales/credit_note_entry.php
@@ -1,4 +1,14 @@
.
+***********************************************************************/
//---------------------------------------------------------------------------
//
// Entry/Modify free hand Credit Note
@@ -168,7 +178,9 @@ if (isset($_POST['ProcessCredit']) && can_process()) {
if (!isset($_POST['WriteOffGLCode'])) {
$_POST['WriteOffGLCode'] = 0;
}
+ copy_to_cn();
$credit_no = $_SESSION['Items']->write($_POST['WriteOffGLCode']);
+ new_doc_date($_SESSION['Items']->document_date);
processing_end();
meta_forward($_SERVER['PHP_SELF'], "AddedID=$credit_no");
@@ -249,7 +261,7 @@ if (!processing_active()) {
//-----------------------------------------------------------------------------
-start_form(false, true);
+start_form();
hidden('cart_id');
$customer_error = display_credit_header($_SESSION['Items']);
@@ -267,7 +279,7 @@ if ($customer_error == "") {
echo "