fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [11185] booking: prepare for remodelling


From: Sigurd Nes
Subject: [Fmsystem-commits] [11185] booking: prepare for remodelling
Date: Mon, 17 Jun 2013 13:23:54 +0000

Revision: 11185
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11185
Author:   sigurdne
Date:     2013-06-17 13:23:53 +0000 (Mon, 17 Jun 2013)
Log Message:
-----------
booking: prepare for remodelling

Modified Paths:
--------------
    trunk/booking/inc/class.async_task_update_reservation_state.inc.php

Modified: trunk/booking/inc/class.async_task_update_reservation_state.inc.php
===================================================================
--- trunk/booking/inc/class.async_task_update_reservation_state.inc.php 
2013-06-17 12:24:28 UTC (rev 11184)
+++ trunk/booking/inc/class.async_task_update_reservation_state.inc.php 
2013-06-17 13:23:53 UTC (rev 11185)
@@ -7,7 +7,12 @@
                public function run($options = array()) {
                        $db = & $GLOBALS['phpgw']->db;
                        
-                       $reservation_types = array('booking', 'event', 
'allocation');
+                       $reservation_types = array
+                       (
+                               'booking',
+                               'event',
+                               'allocation'
+                       );
                        $completed_so = 
CreateObject('booking.socompleted_reservation');
                        
                        foreach ($reservation_types as $reservation_type) {
@@ -31,3 +36,40 @@
                        }
                }
        }
+
+/*     
+Begreper:
+application  - Søknad
+allocation   - tildeling
+booking      - Booking
+event        - Arrangementer
+reservation  - reservasjon / betalingsgrunnlag
+
+En Søknad (application) kan resultere i en tildeling(allocation) eller et 
Arrangement(event).
+En tildeling(allocation) kan deles opp i flere Booking(booking).
+
+Utgangspunktet for 'Klar for fakturering' ligger i tabellen 
'bb_completed_reservation'
+
+Denne (reservation) er satt sammen av tre ulike element-typer: 
tildeling(allocation), Booking(booking) og Arrangement(event)
+
+En Booking referer til en tildeling (allocation_id).
+
+For å produsere innholdet i bb_completed_reservation:
+
+cron-job som starter i 
booking/inc/class.async_task_update_reservation_state.inc.php
+
+async_task_update_reservation_state::run()
+
+Uttrekket defineres her (pr type):
+
+ booking_sobooking::find_expired();
+ booking_soallocation::find_expired();
+ booking_soevent::find_expired();
+
+Oppgaven her blir da:
+
+1) Alle kandidater for 'booking' skal faktureres (som før)
+2) Alle kandidater for 'event' skal faktureres (som før)
+3) kandidater for 'allocation' som ikke er referert til fra 'booking' skal 
faktureres (omarbeides)
+
+*/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]