Add record

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
User avatar
Marcelo Vitoria
Veteran Member
Posts: 60
Joined: 2016-10-11 12:08

Add record

Post by Marcelo Vitoria » 2016-10-11 12:20

Hello friends

I have a table of requests, other items, and a third of sales commissions.
I need to add a record in the commission table to save data in the Orders table, someone can give me a hint? I'm new to PHP.

Example:

orders table
Order
date
name
value

table Commissions
date
order
commission (commission value (which will be 2% of the order value))

Thank you for any help.

(Sorry - bad English) :?

Marcelo

Appgini 5:51
Marcelo Vitoria
Coding since 1984 Basic Sinclair!
Clipper Summer´87 - Visual Foxpro - VB6 - PHP
AppGini 24.11 - AdminLTE
https://www.workspaceservices.com.br

DevGiu
AppGini Super Hero
AppGini Super Hero
Posts: 151
Joined: 2016-05-27 09:08

Re: Add record

Post by DevGiu » 2016-10-11 15:29

What do you want. Create a comission record after a new order is added?
/Giuseppe
Professional Outsourcing Services

User avatar
Marcelo Vitoria
Veteran Member
Posts: 60
Joined: 2016-10-11 12:08

Re: Add record

Post by Marcelo Vitoria » 2016-10-17 16:55

Yes,
The correct would be to create a new sales commission record via a button, but to generate the save I already could develop the rest, because I'm kind of stuck with it!

Thank you
Marcelo Vitoria
Coding since 1984 Basic Sinclair!
Clipper Summer´87 - Visual Foxpro - VB6 - PHP
AppGini 24.11 - AdminLTE
https://www.workspaceservices.com.br

Post Reply