Newbies db Posted November 7, 2005 Newbies Posted November 7, 2005 Can anybody help me by explaining how I can generate a series of invoices in one process? As you might guess, - I'm not very good at writing scripts... I have a database with several tables. I want to generate new invoices in the invoice-table from a selection in the member-table.
CyborgSam Posted November 8, 2005 Posted November 8, 2005 db-> Welcome to the Forums! I'm being very general and making guesses about what you're doing. First, you'll need a relationship between members and invoices, ideally using serial numbered keys. Then you'll need a layout for the invoice form. If you use a list layout, you can use the relationship directly (without any Finding to limit the found set). If each invoice requires a separate page, make sure that the layout takes up a full page.
Newbies db Posted November 8, 2005 Author Newbies Posted November 8, 2005 Thanks.... but I have gotten a bit further than that. The relations are established, the layouts are created and I'm using a script with find and constrain find to limit the selection to only those members who will recieve the invoice. I'm also using a "line-item" table to store the invoice-items. The invoice-layout is connected to the invoice-table and there are a total of about 7500 older invoices in the tables. My problem is how to create new invoices on the selected members automatically (there are about 200 members in this selection). I tried to use a loop in the script, but I could not get it to work. Probably because I don't know enough about scripting....
CyborgSam Posted November 9, 2005 Posted November 9, 2005 We'll need more info to pinpoint the issue. Can you post either the database file (if you do, remove all records to protect confidentiality) or the script? What did the loop do/not do?
Newbies db Posted November 10, 2005 Author Newbies Posted November 10, 2005 I'm afraid posting the database-file will do no good, - it's all in norwegian, and that is why the language in my posts might be a bit odd sometimes.... Let me try to explain my "needs" by asking two questions: 1. Is it possible to do this automatic creation of invoices? There are three tables involved; member, invoices and line-item, with all the "normal" fields, and some more. I want FileMaker to create one new invoice for each of a selection of members, and to use the same "invoice-text" and amount selected from the line-item table. 2. If it is possible, what would be the theoretical way to do it/ the process? Where to start, what to select, which relations would be necessary, how to create new invoices, etc....
Recommended Posts
This topic is 7215 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now