qbecerra
Computer
- Jun 15, 2005
- 3
Hi guys
1º lemme explain situation:
there're clients who buy at a shop. there're promotions in shop (can be normal or special). one promotion says: "for each u$s 100 you buy, you get 1 point". client can exchange points by gifts.
2º Take a look at this image
some terms translated:
CLIENTE.NOMBRE = CLIENT.NAME
FACTURACION.PUNTOS = PURCHASE.POINTSOBTAINED
FACTURACION.MONTO = PURCHASE.AMMOUNTOFMONEY
CANJE.TOTALPUNTOS = EXCHANGE.TOTALPOINTS
espromoesp = ISPROMOTIONESPECIAL
PUNTOS_RESTANTES = TOTALPOINTS_LEFT
PUNTOS_CANJEADOS = POINTS_EXCHANGED
CLIENTE.IDPROMO = CLIENTE.IDPROMOTION
**************************************************
**************************************************
does any1 know why i get 0 in PUNTOS_RESTANTES ?
I should get this difference:
PURCHASE.POINTSOBTAINED - EXCHANGE.TOTALPOINTS
I mean, the points client got in all purchases made
minus all the points he exchanged
**************************************************
**************************************************
If there's yet something you don't understand (it is in spanish) please tell me...
THANKS A LOT FOR YOUR HELP
1º lemme explain situation:
there're clients who buy at a shop. there're promotions in shop (can be normal or special). one promotion says: "for each u$s 100 you buy, you get 1 point". client can exchange points by gifts.
2º Take a look at this image
some terms translated:
CLIENTE.NOMBRE = CLIENT.NAME
FACTURACION.PUNTOS = PURCHASE.POINTSOBTAINED
FACTURACION.MONTO = PURCHASE.AMMOUNTOFMONEY
CANJE.TOTALPUNTOS = EXCHANGE.TOTALPOINTS
espromoesp = ISPROMOTIONESPECIAL
PUNTOS_RESTANTES = TOTALPOINTS_LEFT
PUNTOS_CANJEADOS = POINTS_EXCHANGED
CLIENTE.IDPROMO = CLIENTE.IDPROMOTION
**************************************************
**************************************************
does any1 know why i get 0 in PUNTOS_RESTANTES ?
I should get this difference:
PURCHASE.POINTSOBTAINED - EXCHANGE.TOTALPOINTS
I mean, the points client got in all purchases made
minus all the points he exchanged
**************************************************
**************************************************
If there's yet something you don't understand (it is in spanish) please tell me...
THANKS A LOT FOR YOUR HELP