This topic is locked

Increment Details Records on Master Record Add Page

1/15/2024 4:52:08 PM
PHPRunner General questions
B
bkrulan author

I have a Master-Details Relation setup between two tables and I am displaying the Details List on the Master Add Page so the User can add the Details while adding the Master Record. I am trying to figure out how to increment the Details Records added on this page so that when the User adds a new Details Record it displays as "Child Record #X" (X being the increment of how many Detail Records have been added). Does anyone have any suggestions?

Thanks,
Ben

admin 1/16/2024

I recommend checking Invoice template that has this functionality implemented:
https://xlinesoft.com/invoice

You can see how it works in the Invoice template live demo.

fhumanes 1/17/2024

Hi,

As a suggestion and because you can access the entire code.

https://fhumanes.com/blog/guias-desarrollo/guia-24-comercio-electronico/

https://fhumanes.com/ecommerce_priv/orders_list.php?a=return
user: gestor/gestor

In my example of "ecommerce", in the private part (the administrative) you can see how the order orders (sales section) are made and there, I think it may be what you are looking for.

Greetings,
fernando