Language: JavaScript
Label: safe
CWE: CWE-829 \u2014 Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

Code:
            success: function(productUnit, status) {
                if (status == "success") {

                    /* Change the product Price */
                    $(selector).closest("tr").find(".productPurchasePrice").val(productUnit.pp);
                    $(selector).closest("tr").find(".productMainPurchasePrice").val(productUnit.pp);

                    /* Calculate all data */
                    self.calculateEachProduct(selector);
                    self.grandTotal();

                }
            }