projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Print link class fixed
[fa-stable.git]
/
sales
/
customer_credit_invoice.php
diff --git
a/sales/customer_credit_invoice.php
b/sales/customer_credit_invoice.php
index 2d13e54729cb5eb2b2969803c9eae4867cc5518f..70f244fa7449146faa293aa2f0de1ec46b55d1c5 100644
(file)
--- a/
sales/customer_credit_invoice.php
+++ b/
sales/customer_credit_invoice.php
@@
-126,7
+126,7
@@
if (isset($_GET['InvoiceNumber']) && $_GET['InvoiceNumber'] > 0) {
$ci->src_docs = $ci->trans_no;
$ci->src_date = $ci->document_date;
$ci->trans_no = 0;
$ci->src_docs = $ci->trans_no;
$ci->src_date = $ci->document_date;
$ci->trans_no = 0;
- $ci->document_date =
Today
();
+ $ci->document_date =
new_doc_date
();
$ci->reference = references::get_next(11);
for ($line_no=0; $line_no<count($ci->line_items); $line_no++) {
$ci->reference = references::get_next(11);
for ($line_no=0; $line_no<count($ci->line_items); $line_no++) {
@@
-207,6
+207,7
@@
if (isset($_POST['ProcessCredit']) && can_process()) {
$_POST['WriteOffGLCode'] = 0;
copy_to_cart();
$_POST['WriteOffGLCode'] = 0;
copy_to_cart();
+ if ($new_credit) new_doc_date($_SESSION['Items']->document_date);
$credit_no = $_SESSION['Items']->write($_POST['WriteOffGLCode']);
processing_end();
$credit_no = $_SESSION['Items']->write($_POST['WriteOffGLCode']);
processing_end();
@@
-273,7
+274,7
@@
function display_credit_items()
label_row(_("Invoice Date"), $_SESSION['Items']->src_date, "class='tableheader2'");
label_row(_("Invoice Date"), $_SESSION['Items']->src_date, "class='tableheader2'");
- date_row(_("Credit Note Date"), 'CreditDate', '',
null
, 0, 0, 0, "class='tableheader2'");
+ date_row(_("Credit Note Date"), 'CreditDate', '',
$_SESSION['Items']->trans_no==0
, 0, 0, 0, "class='tableheader2'");
end_table();
end_table();