FrontAccountingERP/FA

SO view document (or order) date is wrong: set to today

Opened this issue · 0 comments

Issue:
The document (or order) date in view_sales_order.php always shows the current date, whatever the real value is in the db

Cause:
The document_date variable is set to today when preparing the SO children data in view_sales_order.php line 145:
$this->document_date = new_doc_date();

Fix:
Comment out the line, so the document_date won't be changed:
// $this->document_date = new_doc_date();