Guide 85 – Relate 2 tables in a very visual and quick way |
6/25/2024 3:02:24 PM |
PHPRunner Tips and Tricks | |
![]()
He imagined a system that, by dragging records from one panel (forecast) to another (real payments), the forecast records would be cancelled. If this explanation is not clear, I will summarize, it is to relate some records in a table with other records in another table, but if possible in a very visual way. Objetive In a very visual, simple and fast way , relate records from the forecast table to the records from the actual payments table. In this case, it is for Treasury management, but it can be used for a multitude of situations, such as:
DEMO: https://fhumanes.com/reconcile
If you are interested in this article continue reading it by clicking here. |
|
![]() |
fhumanes author 6/25/2024 |
Technical Solution In the end, a solution was found with a DashBoard page with 3 panels:
The way it works is to select 1 or more Forecast records (1) and an Real Payment record (2) and press the “Data Concile” button. This is the general reconciliation. There is also the possibility that the payment was not planned and in this case 1 or more table records (2) are selected and the “No Concile” button is pressed. In both cases, the selected records go to the panel (3) and if we want to undo any of the previous operations, what we have to do is select 1 or several records from the panel (3) and click the “Rollback” button. JavaScript functionality has been added to the panels:
In the “Data Concile” action, selected records are checked in panels (1) and (2). The selected records are captured with the PHPRunner API and this button “triggers” the execution in the panel (2), which has a hidden button “Select Real” and the execution in the panel (1). If you are interested in this article continue reading it by clicking here. |
C
|
Chris Whitehead 6/26/2024 |
Thanks, that does look interesting. |
![]() |
fhumanes author 7/1/2024 |
Correction has been made in:
New code: // Put your code here. |
![]() |
fhumanes author 7/3/2024 |
Extension 07/03/2024
I have called this new version “reconcile2”. |