Vehicle Log and Inventory, Fleet

HI,

Can someone help me write a script for every refuel entry in vehicle log, the quantity of fuel should be deducted in my inventory under warehouse1 or warehouse2.

I’m hoping to do the same for the Servicing Entry as well, parts and cost.

Or at least direct me to what topics I should read on. Server scripting? client scripting?

Thank you!