Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Invoice application question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Invoice application question

    I'm creating an invoice for an Auto Dealer. I want to automatically enter in the sale items section the description of the car to be sold. I know I can create a calculated field with this item description. My question is how to make the first item sale description to be filled with this calculated field.

    #2
    Re: Invoice application question

    There are many options available, describe where the correct vehicle is selected from. I dont use field rule for a one item per invoice, that remains linked (but you can) .
    I could imagine a dropdown variable field (object) named "vehiclecode" on the form using a record list-edit combo-box to select from table "vehicles" (return the vehicle code)
    and then on the "on change" of that object something like this
    Code:
    tbl =table.open("vehicles",FILE_RO_SHARED)
    tbl.index_primary_put("code")
    fnd=tbl.fetch_find(vehiclecode.value)
    varVehDesc=tbl.description
    tbl.cose()
    Collect whatever info you need from that vehicles table into variable like the example varVehDesc to save it to the form field required.
    In this case you have to have created an index named code on the vehicle code field, which for a car dealership would probably be a given.
    Last edited by Ray in Capetown; 02-05-2013, 03:03 AM.

    Comment


      #3
      Re: Invoice application question

      Is each invoice limited to a single car? If so, the description belongs in the invoice header. If the invoice can include multiple cars, why wouldn't the descrip be a necessary part of each item record? Color me confused.

      Comment


        #4
        Re: Invoice application question

        Tom, good question
        A clue here "the description of the car to be sold." So I guess a motor dealer usually sells one car at a time. In my experience they will either describe the vehicle fully in a header with terms etc and/or in summary on one of the lines in item details. Then other lines will contain additional charge items, extras, plates, guarantee etc. In the latter case standard stock table lookups apply.

        Comment


          #5
          Re: Invoice application question

          Each invoice is limited to one car and the AutoID is part of the invoice header. The rest of the items are accessories that come from another table. This particular invoice required always a car to be sold so I want a particular display format in the first item part, something like this ACURA TSX 2006 VIN: JA123456789012345.

          Comment


            #6
            Re: Invoice application question

            hello

            you could have one table with the following
            autoid numeric, auto increment
            make character
            model character
            year character
            vin character
            and fill that that table with, for example
            autoid 9 (automatically inserted by alpha)
            make acura
            model tsx
            year 2006
            vin JA123456789012345.
            and then in the invoice header on the autoid field you could define a lookup that will pull the record from this table and fill in the other fields.
            all you have to do is go to the lookup tab and fill in the info, that should do it.(assuming invoice header contains autoid, make,model,year and vin fields)

            to make it even easier you can define the make, model as simple lists.
            thanks for reading

            gandhi

            version 11 3381 - 4096
            mysql backend
            http://www.alphawebprogramming.blogspot.com
            [email protected]
            Skype:[email protected]
            1 914 924 5171

            Comment


              #7
              Re: Invoice application question

              I do have a table of the Car information and that info is displayed correctly in one section of the invoice, what I want is to add in the description part of the items a brief description of this car (is kind of redundant info) but displayed in another section of the invoice. Check the screenshot in the items charged the info I want. This was done (marked with an arrow) manually, I want it to appear automatically as soon the information of the car to be sold is filled.
              Screenshot.jpg

              Comment


                #8
                Re: Invoice application question

                hello

                you should be able to do this with setting the browse.object.text value of the browse on change event of the autoid as suggested earlier by ray.
                collect all the info needed and create the description combining all the info using alltrim as needed
                thanks for reading

                gandhi

                version 11 3381 - 4096
                mysql backend
                http://www.alphawebprogramming.blogspot.com
                [email protected]
                Skype:[email protected]
                1 914 924 5171

                Comment


                  #9
                  Re: Invoice application question

                  I think the easiest solution here might be to change the data entry sequence a bit. When the order begins create a new line (Item) record automatically. Every order has a header, with a description, and at least one item with the same description.

                  Comment


                    #10
                    Re: Invoice application question

                    Done it... I accomplished it using the browse.object.text event on AutoID primary key change. Thank you all for the suggestions!

                    Comment

                    Working...
                    X