Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Paycheck Generator - Automatizing Problems

Featured Replies

  • Newbies

Hello, this is my first post so don't be surprised if i don't know the format and the usual procedure followed on this forum, but i hope you can help me anyway, thanx in advance :

I'm currently working on a database solution for a small business, creating a complete registry of all their employees, with contract details, and an added function: the app calculates the monthly paycheck for each employee based on the contract type and days worked. The problem I've encountered is relatively simple, but this is my first contact with filemaker so I've had some problems with the scripting involved, I'll explain:

To calculate paychecks the app uses assigned variables for each contract type, and multiplies by the number of days worked during the month, my problem is that whenever the salary to calculate is of the month of december the app returns an erroneous value, as I have to calculate the number of days between Date(CurrentDate(12/1/XXXX) and (CurrentMonth+1/1/XXXX), for some reason the program reads this as month 13(wich obviously doesn't exist) instead of just adding 1 to the currentyear value.

I'm a novice and have been using Filemaker during 1 month aprox, so if any of this didn't make enough sense tell me and I'll try to clarify, thx,

Sam :

PS: an [if] would solve this but I don't know exactly how.

PS2: Dunno if this is even the right forum to post my problem, if it isn't someone point it out plz.

Edited by Guest

You need a calculation something like this:

If ( Month ( date ) = 12 ;

Date ( 1 ; Day ( date ) ; Year ( date ) + 1 ) ;

Date ( Month ( date ) + 1 ; Day ( date ) ; Year ( date ) )

)

I attached a simple file that has a date field, a calc field that use the above calc, and a field that tells the days detween the two dates. Hopefuly that will help.

dates.fp7.zip

Edited by Guest

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.