Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Karthik_hebbar's avatar

How to Handle Payment Requests in a Construction App When Full Payment is Given Mid-Month?"

Hi all, i am working on a construction app, where there are 2 roles, subcontractor and supervisor, subcontractor creates the project, work, worker and supervisor, and assign the workers and supervisors to project. now supervisors job is to assign attendance, add work log and request payment on behalf of workers, now there is no restriction on when supervisor can request payments, they can do at the end of the month and at mid month (payment is based on the attendance marked by supervisor), now when i request the payment and it is approved(by subcontractor), i store it in the database with the month, so to avoid the supervisor to request again for the same month, now my problem is, let say supervisor request payment in the mid month and it gets approved, now again supervisor request payment at the end of the same month, but the request won't be process because payment is already made for the month So what is the best way to go about this? Thanks in advance.

0 likes
4 replies
jlrdw's avatar

Set up your chart of accounts and follow standard business practices. Many times some basic business courses and bookkeeping courses help. Only suggestions.

jlrdw's avatar

@Karthik_hebbar I would suggest at least get some accounting software that handles payroll, if you are new to dealing with business such as payroll, taxes, etc, it might help you avoid any legal problems.

I have written custom accounting software, but it's not a quick thing to learn on a forum. Either go through several tutorials, or consider a decent accounting package. Just suggestions.

You setup pay schedules and close each month out as needed.

Edit:

Even if you use an accounting package, I still suggest taking at least a basic bookkeeping course.

Please or to participate in this conversation.