Question: Unable To Edit Purchases

Unable To Edit Purchases

Hello, I was trying to edit the quantity of the products I received in one of the shipments. But when trying to edit, it's not showing any details on the edit page. But I can see details whe

L

Lithin

Asked
Hello,
I was trying to edit the quantity of the products I received in one of the shipments. But when trying to edit, it's not showing any details on the edit page. But I can see details when I click the details of that purchase. Please see the attachment.
  • MS

    Mian Saleem

    Answered
    Hello,

    Is there any error message in the console log? Does any item name have ' or "?

    If you can share the site details in private reply so that I can have look.

    Thank you
  • L

    Lithin

    Answered
    **[Mian Saleem](/u/saleem)** Uncaught SyntaxError: missing ) after argument list
    purchases.js:620 Uncaught ReferenceError: po_edit is not defined
    at HTMLDocument.<anonymous> (purchases.js:620)
    at l (jquery-2.0.3.min.js:4)
    at Object.fireWith [as resolveWith] (jquery-2.0.3.min.js:4)
    at Function.ready (jquery-2.0.3.min.js:4)
    at HTMLDocument.S (jquery-2.0.3.min.js:4)
    (anonymous) @ purchases.js:620
    l @ jquery-2.0.3.min.js:4
    fireWith @ jquery-2.0.3.min.js:4
    ready @ jquery-2.0.3.min.js:4
    S @ jquery-2.0.3.min.js:4
  • L

    Lithin

    Answered
    I was able to fix it. One of the ' in my notes made this issue. Don't add ' symbol in notes
  • MS

    Mian Saleem

    Answered
    Hello,

    Yes, quote `'` and double quote '"' can break the js code. I will check in future update, if I could avoid this.

    Thank you
  • Login to Reply