Supplier Payments: Fixed error during payment allocation in strict MySQL mode.
[fa-stable.git] / purchasing / supplier_payment.php
index b3fe7ceeaefc241a3a35141d238e500edd2c969a..b4e6c87864d7ee66a19765bd971386255c541e8d 100644 (file)
@@ -237,6 +237,7 @@ function handle_add_payment()
        new_doc_date($_POST['DatePaid']);
 
        $_SESSION['alloc']->trans_no = $payment_id;
+       $_SESSION['alloc']->date_ = $_POST['DatePaid'];
        $_SESSION['alloc']->write();
 
        unset($_POST['bank_account']);