A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: take the price and units and calculate automatically the total price

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    15

    take the price and units and calculate automatically the total price

    Hey everyone,
    I would like to know if it is possible in flex to do the following actions.
    I have made an HTTPService to a MySQL database, table: orders_open and it has columns

    Id | product | price | units | total_price | customer | waiter | printed | paid_cash | paid_card | date

    The datagrid is filtered by the customer column. Default value of | printed | paid_cash | paid_card is 0

    1)How can I make flex take the price and units and calculate automatically the total_price? In the datagrid and update the database lines when I save.

    2) Sum up all filtered total_price s and give the bill_total in a text field

    3) When paid, print the ticket | product | price | units | total_price | and the bill_total
    in a printer

    Can you help me on my way with a link or a code example?

    My code has been created by Flex (create application from database)

  2. #2
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    A POS system is something you are unlikely to find anywhere as an example or source code (even in a simplistic form) as it is what I like to refer to as "money code" (with good reason), is very advanced and would most likely be hoarded by anyone with common sense.

    I would suggest you explore the AdvancedDataGrid examples around the internet with a Google search as a start. You will find simple examples as food for thought you could possibly adapt. Best of luck on your project!

  3. #3
    Junior Member
    Join Date
    Jun 2007
    Posts
    15
    thanks for your reply

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center