/// <summary>
        /// Converts this instance of <see cref="obtenernetoporcobrarResult"/> to an instance of <see cref="obtenernetoporcobrarResultDto"/>.
        /// </summary>
        /// <param name="entity"><see cref="obtenernetoporcobrarResult"/> to convert.</param>
        public static obtenernetoporcobrarResultDto ToDTO(this obtenernetoporcobrarResult entity)
        {
            if (entity == null)
            {
                return(null);
            }

            var dto = new obtenernetoporcobrarResultDto();

            dto.d_NetoXCobrar = entity.d_NetoXCobrar;

            entity.OnDTO(dto);

            return(dto);
        }
        /// <summary>
        /// Converts this instance of <see cref="obtenernetoporcobrarResultDto"/> to an instance of <see cref="obtenernetoporcobrarResult"/>.
        /// </summary>
        /// <param name="dto"><see cref="obtenernetoporcobrarResultDto"/> to convert.</param>
        public static obtenernetoporcobrarResult ToEntity(this obtenernetoporcobrarResultDto dto)
        {
            if (dto == null)
            {
                return(null);
            }

            var entity = new obtenernetoporcobrarResult();

            entity.d_NetoXCobrar = dto.d_NetoXCobrar;

            dto.OnEntity(entity);

            return(entity);
        }
 /// <summary>
 /// Invoked when <see cref="ToEntity"/> operation is about to return.
 /// </summary>
 /// <param name="entity"><see cref="obtenernetoporcobrarResult"/> converted from <see cref="obtenernetoporcobrarResultDto"/>.</param>
 static partial void OnEntity(this obtenernetoporcobrarResultDto dto, obtenernetoporcobrarResult entity);
 /// <summary>
 /// Invoked when <see cref="ToDTO"/> operation is about to return.
 /// </summary>
 /// <param name="dto"><see cref="obtenernetoporcobrarResultDto"/> converted from <see cref="obtenernetoporcobrarResult"/>.</param>
 static partial void OnDTO(this obtenernetoporcobrarResult entity, obtenernetoporcobrarResultDto dto);