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:
  editProductItemDetails: function(rowId, product_name) {

    // Display the product name on modal
    $("#productSaleDetails .modal-title").html(product_name);
    $("#productSaleDetails .rowId").val(rowId);

    // select product details row
    var product_row = $(`#${rowId}`);

    $("#productSaleDetails #productSaleItemPrice").val( product_row.find(".netSalesPrice").val() );
    $("#productSaleDetails #productSaleItemDiscount").val( product_row.find(".productDiscount").val() );
    $("#productSaleDetails #productSaleItemPacket").val( product_row.find(".productPacket").val() );
    $("#productSaleDetails #productSaleItemDetails").val( product_row.find(".productItemDetails").val() );

  },