TWYN#55026 definitieve indexen BGT module

svn path=/Database/trunk/; revision=39582
This commit is contained in:
Erik Groener
2018-10-31 13:10:42 +00:00
parent 8e53d8be8f
commit eef3749089
4 changed files with 62 additions and 34 deletions

View File

@@ -4,6 +4,9 @@
* $Id$ * $Id$
*/ */
create index bgt_bgt_budget_key_naar on bgt_budgetmutatie(bgt_budget_key_naar);
create index bgt_bgt_budget_key_van on bgt_budgetmutatie(bgt_budget_key_van);
REGISTERONCE('$Id$') REGISTERONCE('$Id$')

View File

@@ -186,7 +186,7 @@ AS
, b.prs_kostensoortgrp_key , b.prs_kostensoortgrp_key
, b.prs_kostensoort_key , b.prs_kostensoort_key
, b.bgt_budget_isreserve , b.bgt_budget_isreserve
, m.bgt_budgetmutatie_datum , TRUNC(m.bgt_budgetmutatie_datum) bgt_budgetmutatie_datum
, CASE WHEN p_btw=0 THEN COALESCE(m.bgt_budget_bedrag_van, 0) , CASE WHEN p_btw=0 THEN COALESCE(m.bgt_budget_bedrag_van, 0)
WHEN p_btw=1 THEN COALESCE(m.bgt_budget_btwbedrag_van, 0) WHEN p_btw=1 THEN COALESCE(m.bgt_budget_btwbedrag_van, 0)
WHEN p_btw=2 THEN COALESCE(m.bgt_budget_bedrag_van, 0) + COALESCE(m.bgt_budget_btwbedrag_van, 0) WHEN p_btw=2 THEN COALESCE(m.bgt_budget_bedrag_van, 0) + COALESCE(m.bgt_budget_btwbedrag_van, 0)
@@ -200,7 +200,7 @@ AS
, b.prs_kostensoortgrp_key , b.prs_kostensoortgrp_key
, b.prs_kostensoort_key , b.prs_kostensoort_key
, b.bgt_budget_isreserve , b.bgt_budget_isreserve
, m.bgt_budgetmutatie_datum , TRUNC(m.bgt_budgetmutatie_datum) bgt_budgetmutatie_datum
, CASE WHEN p_btw=0 THEN COALESCE(m.bgt_budget_bedrag_naar, 0) , CASE WHEN p_btw=0 THEN COALESCE(m.bgt_budget_bedrag_naar, 0)
WHEN p_btw=1 THEN COALESCE(m.bgt_budget_btwbedrag_naar, 0) WHEN p_btw=1 THEN COALESCE(m.bgt_budget_btwbedrag_naar, 0)
WHEN p_btw=2 THEN COALESCE(m.bgt_budget_bedrag_naar, 0) + COALESCE(m.bgt_budget_btwbedrag_naar, 0) WHEN p_btw=2 THEN COALESCE(m.bgt_budget_bedrag_naar, 0) + COALESCE(m.bgt_budget_btwbedrag_naar, 0)

View File

@@ -36,39 +36,39 @@ FAC_LCL('##LCLREVISION', '$Id$', '$Id$')
// ============================================================================ // ============================================================================
#define LCLMODULE 'FAC' #define LCLMODULE 'FAC'
FAC_LCL('facilitorformulier', 'FACILITOR rapport', 'FACILITOR report') FAC_LCL('facilitorformulier', 'FACILITOR rapport', 'FACILITOR report')
FAC_LCL('printdatum', 'Printdatum', 'Print date') FAC_LCL('printdatum', 'Printdatum', 'Print date')
FAC_LCL('aanvrager', 'Aanvrager', 'Requestor') FAC_LCL('aanvrager', 'Aanvrager', 'Requestor')
FAC_LCL('behandelaar', 'Behandelaar', 'Assigned to') FAC_LCL('behandelaar', 'Behandelaar', 'Assigned to')
FAC_LCL('contactgegevens', 'Contactgegevens', 'Contact details') FAC_LCL('contactgegevens','Contactgegevens', 'Contact details')
FAC_LCL('afdeling', 'Afdeling', 'Department') FAC_LCL('afdeling', 'Afdeling', 'Department')
FAC_LCL('e-mail', 'E-mail', 'E-mail') FAC_LCL('e-mail', 'E-mail', 'E-mail')
FAC_LCL('bericht', 'Bericht', 'Message') FAC_LCL('bericht', 'Bericht', 'Message')
FAC_LCL('telefoon', 'Telefoon', 'Telephone') FAC_LCL('telefoon', 'Telefoon', 'Telephone')
FAC_LCL('kostenplaats', 'Kostenplaats', 'Cost centre') FAC_LCL('kostenplaats', 'Kostenplaats', 'Cost centre')
FAC_LCL('dagen', 'dagen', 'days') FAC_LCL('dagen', 'dagen', 'days')
FAC_LCL('omschrijving', 'Omschrijving', 'Description') FAC_LCL('omschrijving', 'Omschrijving', 'Description')
FAC_LCL('opmerking', 'Opmerking', 'Remark') FAC_LCL('opmerking', 'Opmerking', 'Remark')
FAC_LCL('opmerkingen', 'Opmerkingen', 'Remarks') FAC_LCL('opmerkingen', 'Opmerkingen', 'Remarks')
FAC_LCL('bouwlaag', 'Bouwlaag', 'Building layer') FAC_LCL('bouwlaag', 'Bouwlaag', 'Building layer')
FAC_LCL('gebouw', 'Gebouw', 'Building') FAC_LCL('gebouw', 'Gebouw', 'Building')
FAC_LCL('locatie', 'Locatie', 'Location') FAC_LCL('locatie', 'Locatie', 'Location')
FAC_LCL('ruimte', 'Ruimte', 'Room') FAC_LCL('ruimte', 'Ruimte', 'Room')
FAC_LCL('aantal', 'Aantal', 'Number') FAC_LCL('aantal', 'Aantal', 'Number')
FAC_LCL('prijs', 'Prijs', 'Price') FAC_LCL('prijs', 'Prijs', 'Price')
FAC_LCL('totaal', 'Totaal', 'Total') FAC_LCL('totaal', 'Totaal', 'Total')
FAC_LCL('werkplek', 'Werkplek', 'Workplace') FAC_LCL('werkplek', 'Werkplek', 'Workplace')
FAC_LCL('terrein', 'Terrein', 'Terrain') FAC_LCL('terrein', 'Terrein', 'Terrain')
FAC_LCL('eenheid', 'Eenheid', 'Unit') FAC_LCL('eenheid', 'Eenheid', 'Unit')
FAC_LCL('bedrijf', 'Bedrijf', 'Company') FAC_LCL('bedrijf', 'Bedrijf', 'Company')
FAC_LCL('contactpersoon', 'Contactpersoon', 'Contact') FAC_LCL('contactpersoon', 'Contactpersoon', 'Contact')
FAC_LCL('adres', 'Adres', 'Address') FAC_LCL('adres', 'Adres', 'Address')
FAC_LCL('plaats', 'Plaats', 'City' ) FAC_LCL('plaats', 'Plaats', 'City' )
FAC_LCL('personen', 'personen', 'persons') FAC_LCL('personen', 'personen', 'persons')
FAC_LCL('naam', 'Naam', 'Name') FAC_LCL('naam', 'Naam', 'Name')
FAC_LCL('organisatie', 'Organisatie', 'Organisation') FAC_LCL('organisatie', 'Organisatie', 'Organisation')
FAC_LCL('functie', 'Functie', 'Function') FAC_LCL('functie', 'Functie', 'Function')
FAC_LCL('nog_niet_aanwezig', 'nog niet aanwezig', 'not yet available') FAC_LCL('nog_niet_aanwezig', 'nog niet aanwezig', 'not yet available')
FAC_LCL('details', 'Details', 'Details') FAC_LCL('details', 'Details', 'Details')
#define LCLMODULE 'MLD' /* melding, opdracht */ #define LCLMODULE 'MLD' /* melding, opdracht */
FAC_LCL('meldingvoor', 'Melding namens', 'Call on behalf of') FAC_LCL('meldingvoor', 'Melding namens', 'Call on behalf of')
@@ -81,6 +81,8 @@ FAC_LCL('spoed', 'Spoed!', 'Urgent!')
FAC_LCL('status', 'Status', 'Status') FAC_LCL('status', 'Status', 'Status')
FAC_LCL('stdmelding', 'Melding', 'Call') FAC_LCL('stdmelding', 'Melding', 'Call')
FAC_LCL('behandeling', 'Behandeling', 'Handling') FAC_LCL('behandeling', 'Behandeling', 'Handling')
FAC_LCL('processing_group', 'Behandelgroep', 'Processing group')
FAC_LCL('processor', 'Actieve behandelaar', 'Processor')
FAC_LCL('uitvoertijd', 'SLA tijd', 'SLA time') FAC_LCL('uitvoertijd', 'SLA tijd', 'SLA time')
FAC_LCL('vakgroep', 'Vakgroep', 'Discipline') FAC_LCL('vakgroep', 'Vakgroep', 'Discipline')
FAC_LCL('datum_gereed', 'Datum gereed', 'Completed') FAC_LCL('datum_gereed', 'Datum gereed', 'Completed')
@@ -1198,6 +1200,7 @@ FAC_LCL('lcl_doorvoeren', 'Doorvoeren', 'Process')
FAC_LCL('lcl_goedkeur', 'Goedkeuren', 'Validate') FAC_LCL('lcl_goedkeur', 'Goedkeuren', 'Validate')
FAC_LCL('lcl_halt', 'Onderbreken', 'Interrupt') FAC_LCL('lcl_halt', 'Onderbreken', 'Interrupt')
FAC_LCL('lcl_resume', 'Hervatten', 'Continue') FAC_LCL('lcl_resume', 'Hervatten', 'Continue')
FAC_LCL('lcl_resume_start', 'Starten', 'Start')
FAC_LCL('lcl_link', 'Koppel', 'Connect') FAC_LCL('lcl_link', 'Koppel', 'Connect')
FAC_LCL('lcl_unlink', 'Ontkoppel', 'Disconnect') FAC_LCL('lcl_unlink', 'Ontkoppel', 'Disconnect')
FAC_LCL('lcl_laatgaan_hint', 'Geen directe actie, laat de behandeling aan de backoffice', 'No direct action, leave processing to the back office') FAC_LCL('lcl_laatgaan_hint', 'Geen directe actie, laat de behandeling aan de backoffice', 'No direct action, leave processing to the back office')
@@ -1914,6 +1917,10 @@ FAC_LCL('lcl_fin_btwsum', 'BTW bedrag', 'VAT amount')
FAC_LCL('lcl_fin_btwtarief', 'BTW Tarief', 'VAT Tariff') FAC_LCL('lcl_fin_btwtarief', 'BTW Tarief', 'VAT Tariff')
FAC_LCL('lcl_fin_CO_sum', 'Bedrag', 'Amount') FAC_LCL('lcl_fin_CO_sum', 'Bedrag', 'Amount')
FAC_LCL('lcl_fin_status', 'Status', 'Status') FAC_LCL('lcl_fin_status', 'Status', 'Status')
FAC_LCL('lcl_fin_article_code', 'Artikelcode', 'Article code')
FAC_LCL('lcl_fin_amount', 'Aantal', 'Amount')
FAC_LCL('lcl_fin_unit', 'Eenheid', 'Unit')
FAC_LCL('lcl_fin_orderline_id', 'Opdrachtregelid', 'Order line id')
FAC_LCL('lcl_fin_number', 'Factuurnummer', 'Invoice number') FAC_LCL('lcl_fin_number', 'Factuurnummer', 'Invoice number')
FAC_LCL('lcl_fin_factuur_type', 'Factuur voor', 'Invoice regarding') FAC_LCL('lcl_fin_factuur_type', 'Factuur voor', 'Invoice regarding')
FAC_LCL('lcl_fin_not_exist', 'Referentie niet gevonden', 'Reference not found') FAC_LCL('lcl_fin_not_exist', 'Referentie niet gevonden', 'Reference not found')
@@ -3135,6 +3142,7 @@ FAC_LCL('lcl_fac_like_block', 'Wat is uw oordeel?', 'What do you think?')
FAC_LCL('lcl_fac_liked_deep', 'Bedankt voor uw mening!', 'Thank you for your opinion!') FAC_LCL('lcl_fac_liked_deep', 'Bedankt voor uw mening!', 'Thank you for your opinion!')
FAC_LCL('lcl_bkm_prskey_auth', 'Fallback user', 'Fallback user') FAC_LCL('lcl_bkm_prskey_auth', 'Fallback user', 'Fallback user')
FAC_LCL('lcl_bkm_unauth', 'Fallback url', 'Fallback url') FAC_LCL('lcl_bkm_unauth', 'Fallback url', 'Fallback url')
FAC_LCL('lcl_bkm_prskey_auth_warn', 'Let op: gebruiker is niet ''grouped''', 'Warning: User is not ''grouped''')
FAC_LCL('lcl_bkm_refresh' , 'Verversingtijd', 'Refresh time') FAC_LCL('lcl_bkm_refresh' , 'Verversingtijd', 'Refresh time')
FAC_LCL('lcl_fac_print_qrcode', 'Druk QR code af', 'Print QR code') FAC_LCL('lcl_fac_print_qrcode', 'Druk QR code af', 'Print QR code')
FAC_LCL('lcl_fac_eigenaar', 'Eigenaar', 'Owner') FAC_LCL('lcl_fac_eigenaar', 'Eigenaar', 'Owner')
@@ -5710,6 +5718,7 @@ FAC_LCL('ins_srtcontrole_percentage', 'Betreft(%)', 'Percentage')
FAC_LCL('ins_srtcontrole_opmerking', 'Opmerking', 'Remark') FAC_LCL('ins_srtcontrole_opmerking', 'Opmerking', 'Remark')
FAC_LCL('ins_srtcontrole_delete', 'Wilt u dit record verwijderen?', 'Are you sure you want to delete this record?') FAC_LCL('ins_srtcontrole_delete', 'Wilt u dit record verwijderen?', 'Are you sure you want to delete this record?')
FAC_LCL('ins_srtcontrole_select', 'Druk op de knop ''Selecteer'' om de gewenste momenten te kiezen.', 'Press the ''Select'' button to select the preferred moments.') FAC_LCL('ins_srtcontrole_select', 'Druk op de knop ''Selecteer'' om de gewenste momenten te kiezen.', 'Press the ''Select'' button to select the preferred moments.')
FAC_LCL('ins_srtcontrole_period_int', 'Periode moet een geheel getal zijn voor dagelijkse, wekelijkse, maandelijkse en jaarlijkse taken.', 'Period must be an integer for daily, weekly, monthly and annual tasks.')
FAC_LCL('ins_srtcontrole_afbouwtijd', 'Uitfaseringstijd (jaren)', 'Phasing out time (years)') FAC_LCL('ins_srtcontrole_afbouwtijd', 'Uitfaseringstijd (jaren)', 'Phasing out time (years)')
FAC_LCL('ins_srtcontrole_btw', 'BTW', 'VAT') FAC_LCL('ins_srtcontrole_btw', 'BTW', 'VAT')
FAC_LCL('ins_srtcontrole_add_mld', 'Melding aanmaken bij bevriezen', 'Add call when freezing') FAC_LCL('ins_srtcontrole_add_mld', 'Melding aanmaken bij bevriezen', 'Add call when freezing')
@@ -6018,7 +6027,16 @@ FAC_LCL('bgt_budgetmutatie_code', 'Mutatiecode', 'Mutation code')
FAC_LCL('bgt_budgetmutatie_volgnr', 'Volgnummer', 'Sequence') FAC_LCL('bgt_budgetmutatie_volgnr', 'Volgnummer', 'Sequence')
FAC_LCL('bgt_budgetmutatie_err1', '{0} en {1} zijn hetzelfde', '{0} and {1} are the same') FAC_LCL('bgt_budgetmutatie_err1', '{0} en {1} zijn hetzelfde', '{0} and {1} are the same')
FAC_LCL('bgt_budgetmutatie_err2', '{0} en/of {1} moet ingevuld worden', 'A value for {0} or {1} must be entered.') FAC_LCL('bgt_budgetmutatie_err2', '{0} en/of {1} moet ingevuld worden', 'A value for {0} or {1} must be entered.')
FAC_LCL('bgt_budgetmutatie_err3', 'Het mutatiebedrag is altijd positief', 'The mutation amount is always positive')
FAC_LCL('bgt_confirm_recalc_vat', 'Het BTW-percentage is gewijzigd. BTW herberekenen?', 'The VAT-value is changed. Recalculate VAT?') FAC_LCL('bgt_confirm_recalc_vat', 'Het BTW-percentage is gewijzigd. BTW herberekenen?', 'The VAT-value is changed. Recalculate VAT?')
FAC_LCL('bgt_budgetmutatie_extbudget', 'EXTERN BUDGET', 'EXTERNAL BUDGET')
FAC_LCL('bgt_budgetmutatie_code_a', 'automatische overboeking', 'automatic transfer')
FAC_LCL('bgt_budgetmutatie_code_w', 'meerminder-werk', 'additional work')
FAC_LCL('bgt_budgetmutatie_code_e', 'extra', 'extra')
FAC_LCL('bgt_budgetmutatie_code_m', 'mutatie', 'mutation')
FAC_LCL('bgt_budgetmutatie_code_r', 'reserve', 'reserve')
FAC_LCL('lcl_bgt', 'Budgetbeheer', 'Budget control') FAC_LCL('lcl_bgt', 'Budgetbeheer', 'Budget control')
FAC_LCL('lcl_menu_bgt_disciplines_1', '>', '>') FAC_LCL('lcl_menu_bgt_disciplines_1', '>', '>')

View File

@@ -256,8 +256,15 @@ ALTER TABLE fac_imp_factuur
opdrachtregelid opdrachtregelid
NUMBER(10)); NUMBER(10));
/////////////////////////////////////////////////////////////////////////////////////////// TWYN#55026
DROP INDEX jgl9;
DROP INDEX jgl10;
CREATE INDEX bgt_bgt_budget_key_naar ON bgt_budgetmutatie(bgt_budget_key_naar);
CREATE INDEX bgt_bgt_budget_key_van ON bgt_budgetmutatie(bgt_budget_key_van);
/////////////////////////////////////////////////////////////////////////////////////////// XXXX#12345 /////////////////////////////////////////////////////////////////////////////////////////// XXXX#12345
/////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////// GENERAL /////////////////////////////////////////////////////////////////////////////////////////// GENERAL
// Iets prettiger // Iets prettiger