FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
campos calculados para presentar precio de ventas
Hola nuevamente a todos:
He creado un procedimiento que calcula precio de ventas con su respectivo impuesto de un articulo a partir de un precio de compra los componente que utilizo es un TComboBox llamado: cbxCalculoBase con dos items Precio de compra (si esta elegida esta opción realiza calculos respecto al precio de compra)y en el items Manual (simplemente no realiza calculo y permite agregar los precios que el usuario desee al articulo). Creo que me di a explicar. Siguiendo: Cree un procedimiento de esta manera:
En si... hay algunos aspecto que me están provocando error y no he podido resolver aun; Este es cuando al llamar al formulario de FrmArticulo en modo de Edición me envía el siguiente error: Cita:
justamente después de las ultimas variables con datos
definitivamente hay algo mal pero no he logrado dar con el diagnostico algún terapeuta que me de ayuda? Saludos novato_erick Última edición por novato_erick fecha: 24-08-2011 a las 02:07:05. |
#2
|
||||
|
||||
Hola
Uffff, que montón de código. Sin verlo mucho (por que me canse) te diría que no es bueno colocar el impuesto en un campo fijo, los Países tienen la manía de cambiarlos según su interés. Saludos
__________________
Siempre Novato |
#3
|
|||
|
|||
jajajaja si Caral sabia que alguien me diría eso pero bueno soy novato aun no me atrevo a correr...
pero en fin es una aplicación a nivel local no se me había ocurrido eso Gracias por la sugerencia... problema que menciono será por eso?.. bueno aparentemente dice que mi variable pc lo toma del dbePCompra.Text y que el impuesto es simplemente la variable psinitbm vendra a ser la variable pc; eso es el error? noooo creo ... Saludos Cita:
|
#4
|
||||
|
||||
Hola
Veo poco, pero: 1: las variables las declaras publicas ???, donde estan, (solo veo i : Integer) 2: Las variables obtienen su valor de los edits (me parece) entonces por que las declararlas con 0.00 ????. No entiendo muy bien el concepto que tienes al hacer tantos calculos y con tantas opciones diferentes en un procedimiento, me imagino que estoy viejo y esto es lo moderno. Saludos
__________________
Siempre Novato |
#5
|
|||
|
|||
jajaja disculpa si mis variables son publicas y las declaro con 0.00 para inicializarlas... Me estoy equivocando en algo?
usted sabe no es moderno solo improviso... jajajaj Gracias Caral... |
#6
|
||||
|
||||
Hola
Si te empeñas en usar variables deberias declararlas en el procedimiento ya que se deberian iniciar y eliminar, asi no tendrias que colocarles un valor de inicio, este deberia de estar en los edit. No entiendo muy bien lo que quieres hacer por eso solo opino. Saludos
__________________
Siempre Novato |
#7
|
|||
|
|||
Caral entiendo lo que me sugieres..
y trataré de ser mas claro como el agua del mar: deseo que se realize calculo a partir de un campo (precio de compra) Este tendra otros edit que calculara un porcentaje y lo manda a un campo subtotal sin impuesto y otro campo realiza los calculos del impuesto mandando un total para ser vendido y guardandolo a la base de datos.. en el evento OnChange del dbEdit dbePcompra tengo esto:
Creo que me explique cierto? Saludos; Última edición por novato_erick fecha: 24-08-2011 a las 02:43:40. |
#8
|
||||
|
||||
Hola
Creo que lo que quieres hacer es una factura. Si es asi AQUI hice un Tutorial para hacer eso. Puedes Saltarte las partes que no necesites he irte a la parte de facturacion, tal vez te de algunas ideas, espero te sirva, si no, solo dilo. Saludos PD: Con Vuestro permiso.
__________________
Siempre Novato |
#9
|
|||
|
|||
Hola Caral
He estado trabajando con tu tutorial y en parte no era facturación lo que necesitaba; Realizo un modulo de mantenimiento de articulos agregando los precios tomando como referencia un precio de compra o sea Costo y calculo precio de venta. Sin embargo me a ayudado mucho Tu tutorial por ejemplo mira ahora un poco mi codigo resumido a comparación del enorme que al principio cree y que te aburriste de leerlo :
mucho menos verdad? pero aqui solo manejo un precio de venta me falta dos precios de ventas mas jajajaja... bueno ahora estoy pegado en algo a ver si me ayudan: tengo un TDBCheckBox que en el evento OnClick hace esto:
Lo que sucede es que cuando este visible tenga el valor guardado por defecto pero al estar invisible tome el valor como si no estuviera calculando el impuesto. Me di a explicar? Saludos |
#10
|
||||
|
||||
Hola
Y no es al reves???. No se, seguro no entiendo. Saludos
__________________
Siempre Novato |
#11
|
|||
|
|||
Tratando de empezar
Hola a todos:
He buscado manera de tratar de realizar calculos para un formulario de ingreso de articulos este debe de realizar cálculos a partir de un precio de compra.
utilize variables para realizar los respectivos calculos. y funciona (hace los calculos enviandomelo a dos TdbEdit llamados dbePSinIV y DbePConIV. ahora le digo al hacer click en el boton de insertar
al llamar al frmArticulos para editar (Modificar) no me aparecen en los edit los coeficientes anteriormente ingresado. Alguien puede orientarme? Saludos |
#12
|
||||
|
||||
Hola
Que dificil entender. Saludos
__________________
Siempre Novato |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Campos Calculados | Kaller | Tablas planas | 1 | 12-12-2006 00:11:13 |
campos calculados | Nelly | SQL | 2 | 07-10-2005 18:13:51 |
Campos calculados | SaurioNet | MS SQL Server | 4 | 21-01-2005 23:47:38 |
Campos CAlculados | karlita_cb | Tablas planas | 4 | 24-03-2004 04:40:03 |
Lio Con Los Campos Calculados. | JROMAN | OOP | 2 | 18-09-2003 02:02:36 |
|