Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function fnMostrarTipoCosteo(unidad){
- var tipoProd = $("#tipo_producto_id").val();
- if (tipoProd == "2" || tipoProd == "6" || tipoProd == "7") {
- $("#section_tipo_costeo").show();
- $("#section_costo_unitario").removeClass("hide");
- $(".especificacion").removeClass("hide");
- fnCargarUnidadesMedida(unidad);
- } else {
- $("#section_tipo_costeo").hide();
- $("#section_costo_unitario").addClass("hide");
- if (tipoProd == "1") {
- if (unidad == "ACT") {
- fnCargarUnidadesMedida(unidad);
- $("#cve_sat_um").select2().val("ACT").trigger("change");
- } else {
- fnCargarUnidadesMedida("E48");
- }
- $("#cve_sat_um").select2().val("E48").trigger("change");
- $(".especificacion").addClass("hide");
- } else if (tipoProd == "4") {
- fnCargarUnidadesMedida("H87");
- $("#cve_sat_um").select2().val("H87").trigger("change");
- $(".especificacion").addClass("hide");
- } else {
- $("#cve_sat_um").select2().val("").trigger("change");
- $(".especificacion").removeClass("hide");
- fnCargarUnidadesMedida(unidad);
- }
- }
- if (tipoProd == "1" || tipoProd == "4") {
- tabla_precios.clear();
- fnCargarPrecios(0);
- } else {
- tabla_precios.clear();
- fnCargarPrecios(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement