Jump to content

This topic is 8415 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to create a database with three levels of relationship one Sale has many reciepts which in turn can have many payments. This is for a simple sales system. I am having a problem though. I can not see how to get the numbers of records to appear as I would like.

Ideally I would like the sale to have a number Date-number for that day so that each day the sale number would start at e.g.(01/01/02-(sale)1 Literallly 01/01/02-1 and rise by one for each new sale.

I would like this format to then follow through for my reciept(most peapole think of this as an invoice) (date)01/01/02-(sale)1-(Reciept)1 Literally 01/01/02-1-1 rising by one for each aditional reciept.

Finally I then want to get the paymnets to follow the same formathave my payments 01/01/02-(sale)1-Reciept1...-payment1...Liteally (01/01/02-1-1-1...

Oh, and I forgot I want to be able to enter everything from my sale database. Did I say that this is a simple sales system?

  • 2 weeks later...
Posted

This only addresses a portion of the original question. However, it seems the fundamental challenge is to create serial numbers that start over at 1 on each day (sub-serial numbers). I created a sample file showing one technique for doing this and posted it on my site:

http://www.tgparker.com/filemaker

The file is called SubSerial.zip

The idea is to create a self-relationship based on date.

Serial number is then an auto-entered calculation that first uses IsValid function to test if any previous records exist for that date. If not, field takes value 1, otherwise, field takes value Max(DateRelation::Serial)+1.

You can download the file and play with it. Hopefully, it will lead to a solution for the other parts of your question.

This topic is 8415 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.