Hi. I’m trying to add a server script to validate certain fields when running payroll such as missing bank details, missing addresses, missing cost centers, difference between CTC and salary components before generating the payslips. Co-Pilot and other AI generated python codes don’t seem to work even though an error pops up but when refreshing, the payslip is generated. Is there a database of scripts that is readily available to copy and paste?
Hi there,
Server scripts by design tend to be very specialized to individual needs, so folks don’t tend to share them much. The LLMs seem to handle APIs well enough, but in my experience they’re usually pretty mediocre with event cycles.
That’s likely what you’re seeing here. It’s hard to speculate about what’s happening without more detail, but my hunch would be that your script is halting execution after the payslip has already been created.
1 Like