Skip to content

Commit

Permalink
PHP8.0 compatible and more...
Browse files Browse the repository at this point in the history
  • Loading branch information
EV-soft committed Jan 25, 2021
1 parent ed4a119 commit 2bfbbb7
Show file tree
Hide file tree
Showing 42 changed files with 11,337 additions and 916 deletions.
1 change: 1 addition & 0 deletions demoData/arrAccCard.dat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"accnmbr":"555","accname":"Konto ben\u00e6vnelse","acctype":"Balance","accfrom":"0000","acc_vat":"S25","acccont":"mmm","acccurr":"EUR","accshrt":"b","accstat":"Aktive"}
1 change: 1 addition & 0 deletions demoData/arrAccPlan.dat.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions demoData/arrAccount.dat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"acc_id":"a","acc_acc":"1","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""},{"acc_id":"b","acc_acc":"2","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""},{"acc_id":"c","acc_acc":"3","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""},{"acc_id":"d","acc_acc":"4","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""},{"acc_id":"e","acc_acc":"5","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""},{"acc_id":"f","acc_acc":"6","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""},{"acc_id":"g","acc_acc":"7","acc_desc":"","acc_type":"","acc_from":"","acc_curr":"","acc_prim":"0","acc_sum":""}]
2 changes: 1 addition & 1 deletion demoData/arrBilling.dat.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"billnavn":"Anders And","billaddr":"Vandl\u00f8bet 76","billsted":"Ved bredden","billponr":"1234","billbynv":"Andeby","billland":"Paradis\u00f8erne","billtelf":"000","bill_att":"","billrekv":"","billmail":"","billnote":"","use_mail":"checked","ordrdato":"2020-06-30","faktdato":"2020-07-01","gen_fakt":""}
{"billnavn":"Anders And","billaddr":"Vandl\u00f8bet 78","billsted":"Ved bredden","billponr":"1234","billbynv":"Andeby","billland":"Paradis\u00f8erne","billtelf":"000","bill_att":"","billrekv":"","billmail":"","billnote":"","use_mail":"checked","ordrdato":"2020-06-30","faktdato":"2020-07-01","gen_fakt":""}
2 changes: 1 addition & 1 deletion demoData/arrContent.dat.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"duedate":"","post":"1","product":"45-876","numb":"3","unit":"stk","description":"Redekasser","vat":"25","price":"235,50","discount":"8,0","total":"812,48","currency":"DKK"},{"duedate":"date","post":"2","product":"45-876","numb":"2","unit":"stk","description":"Redekasser","vat":"25","price":"235,50","discount":"8,0","total":"541,65","currency":"DKK"},{"duedate":"date","post":"3","product":"45-876","numb":"3","unit":"stk","description":"Redekasser","vat":"25","price":"235,50","discount":"12,0","total":"777,15","currency":"DKK"},{"duedate":"date","post":"4","product":"45-876","numb":"3","unit":"stk","description":"Redekasser","vat":"25","price":"235,50","discount":"8,0","total":"812,48","currency":"DKK"}]
[{"cnt_post":"1","cnt_product":"45-879","cnt_numb":"3,0","cnt_unit":"stk","cnt_description":"Redekasser","cnt_vat":"25,0","cnt_price":"235,00","cnt_discount":"8,0","cnt_total":"810,75","cnt_currency":"DKK"},{"cnt_post":"2","cnt_product":"45-876","cnt_numb":"2,0","cnt_unit":"stk","cnt_description":"Redekasser","cnt_vat":"25,0","cnt_price":"100,00","cnt_discount":"0,0","cnt_total":"250,00","cnt_currency":"DKK"},{"cnt_post":"3","cnt_product":"45-876","cnt_numb":"3,0","cnt_unit":"stk","cnt_description":"Redekasser","cnt_vat":"25,0","cnt_price":"235,00","cnt_discount":"12,0","cnt_total":"775,50","cnt_currency":"DKK"},{"cnt_post":"4","cnt_product":"45-876","cnt_numb":"3,0","cnt_unit":"stk","cnt_description":"Redekasser","cnt_vat":"25,0","cnt_price":"235,00","cnt_discount":"8,0","cnt_total":"810,75","cnt_currency":"DKK"},{"cnt_post":"5","cnt_product":"45-877","cnt_numb":"13,0","cnt_unit":"Bakker","cnt_description":"Ande\u00e6g","cnt_vat":"25,0","cnt_price":"400,00","cnt_discount":"20,0","cnt_total":"5200,00","cnt_currency":"EUR"},{"cnt_post":"6","cnt_product":"","cnt_numb":"2,0","cnt_unit":"","cnt_description":"","cnt_vat":"25,0","cnt_price":"55,00","cnt_discount":"15,0","cnt_total":"116,88","cnt_currency":"DKK"},{"cnt_post":"7","cnt_product":"","cnt_numb":"","cnt_unit":"","cnt_description":"","cnt_vat":"","cnt_price":"","cnt_discount":"","cnt_total":"0,00","cnt_currency":"DKK"},{"cnt_post":"8","cnt_product":"45-999","cnt_numb":"","cnt_unit":"","cnt_description":"","cnt_vat":"","cnt_price":"","cnt_discount":"","cnt_total":"0,00","cnt_currency":""},{"cnt_post":"","cnt_product":"","cnt_numb":"","cnt_unit":"","cnt_description":"","cnt_vat":"2+4","cnt_price":"","cnt_discount":"","cnt_total":"","cnt_currency":""}]
1 change: 1 addition & 0 deletions demoData/arrJournLists.dat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"jur_id":"1","jur_crea":"2020-08-01","jur_ownr":"Ejer","jur_remrk":"Bem\u00e6rkning 1","jur_date":"2020-08-05","jur_user":"ej","jur_stat":""},{"jur_id":"2","jur_crea":"2020-08-02","jur_ownr":"Ejer","jur_remrk":"Bem\u00e6rkning 2","jur_date":"2020-08-06","jur_user":"bh","jur_stat":""},{"jur_id":"3","jur_crea":"2020-08-03","jur_ownr":"Bogholder","jur_remrk":"Bem\u00e6rkning 3","jur_date":"2020-08-07","jur_user":"aa","jur_stat":""},{"jur_id":"","jur_crea":"2020-08-04","jur_ownr":"ev","jur_remrk":"Bem 4","jur_date":"2020-08-10","jur_user":"","jur_stat":""},{"jur_id":"","jur_crea":"","jur_ownr":"","jur_remrk":"","jur_date":"","jur_user":"","jur_stat":""}]
1 change: 1 addition & 0 deletions demoData/arrJournal.dat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"jou_id":"","jou_att":"c","jou_date":"2020-08-22","jou_text":"","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"2020-08-23","jou_vat":""},{"jou_id":"","jou_att":"b","jou_date":"2020-08-07","jou_text":"note","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"999.00","jou_curr":"DKK","jou_maturity":"2020-08-28","jou_vat":""},{"jou_id":"","jou_att":"a","jou_date":"2020-08-05","jou_text":"Bilags tekst","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"0.00","jou_curr":"","jou_maturity":"2020-08-20","jou_vat":""},{"jou_id":"","jou_att":"","jou_date":"","jou_text":"note d","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"","jou_vat":""},{"jou_id":"","jou_att":"","jou_date":"","jou_text":"note g","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"","jou_vat":""},{"jou_id":"","jou_att":"","jou_date":"","jou_text":"","jou_typd":"","jou_debet":"Tekst","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"","jou_vat":""},{"jou_id":"","jou_att":"","jou_date":"","jou_text":"","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"","jou_vat":""},{"jou_id":"","jou_att":"","jou_date":"","jou_text":"","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"","jou_vat":""},{"jou_id":"","jou_att":"","jou_date":"","jou_text":"","jou_typd":"","jou_debet":"","jou_typk":"","jou_kred":"","jou_invo":"","jou_amou":"","jou_curr":"","jou_maturity":"","jou_vat":""}]
2 changes: 1 addition & 1 deletion demoData/arrOrders.dat.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"ord_id":"0001","ord_ix":"45-876","ord_date":"2020-07-01","del_date":"2020-07-11","ord_acco":"Konto nr.","ord_name":"Firma navn 123","ord_sell":"S\u00e6lger","ord_total":"148,00","ord_stat":"Status"},{"ord_id":"0002","ord_ix":"45-877","ord_date":"2020-07-02","del_date":"2020-07-12","ord_acco":"Konto nr.","ord_name":"Firma navn 234","ord_sell":"S\u00e6lger","ord_total":"148,00","ord_stat":"Status"},{"ord_id":"0003","ord_ix":"45-878","ord_date":"2020-07-03","del_date":"2020-07-13","ord_acco":"Konto nr.","ord_name":"Firma navn 345","ord_sell":"S\u00e6lger","ord_total":"48441,00","ord_stat":"Status"},{"ord_id":"0004","ord_ix":"45-879","ord_date":"2020-07-04","del_date":"2020-07-14","ord_acco":"Konto nr.","ord_name":"Firma navn 456","ord_sell":"S\u00e6lger","ord_total":"148,00","ord_stat":"Status"}]
[{"ord_id":"0001","ord_ix":"45-876","ord_odate":"2020-07-01","ord_ddate":"2020-07-11","ord_acco":"Konto nr.","ord_name":"Firma navn 123","ord_sell":"S\u00e6lger","ord_total":"148,00","ord_currency":"","ord_duedate":"2020-09-02","ord_stat":"Paid"},{"ord_id":"0002","ord_ix":"45-877","ord_odate":"2020-07-02","ord_ddate":"2020-07-12","ord_acco":"Konto nr.","ord_name":"Firma navn 234","ord_sell":"S\u00e6lger","ord_total":"148,00","ord_currency":"DKK","ord_duedate":"2020-09-29","ord_stat":"Deliv"},{"ord_id":"0003","ord_ix":"45-878","ord_odate":"2020-07-03","ord_ddate":"2020-07-13","ord_acco":"Konto nr.","ord_name":"Firma navn 345","ord_sell":"S\u00e6lger","ord_total":"48441,00","ord_currency":"DKK","ord_duedate":"2020-10-03","ord_stat":"Paid"},{"ord_id":"0004","ord_ix":"45-879","ord_odate":"2020-07-04","ord_ddate":"2020-07-14","ord_acco":"Konto nr.","ord_name":"Firma navn 456","ord_sell":"S\u00e6lger","ord_total":"148,00","ord_currency":"","ord_duedate":"","ord_stat":"Order"},{"ord_id":"0005","ord_ix":"","ord_odate":"","ord_ddate":"","ord_acco":"","ord_name":"","ord_sell":"","ord_total":"2,00","ord_currency":"","ord_duedate":"","ord_stat":"Offer"}]
137 changes: 137 additions & 0 deletions demoData/datainit.inc.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
<?php // /demoData/datainit.inc.php

function DEB_Grup () { return( [
['1', '@1. Danske debitorer', '@1. Danske debitorer'],
['2', '@2. Europæiske debitorer', '@2. Europæiske debitorer']
] );
}
function DEB_Betl () { return( [
['1', '@Kontant', '@Kontant'],
['2', '@Efterkrav', '@Efterkrav'],
['3', '@Forud', '@Forud'],
['4', '@Kreditkort', '@Kreditkort'],
['5', '@Lb. måned', '@Lb. Md.'],
['6', '@Konto', '@Konto']
] );
}
function DEB_Frist () { return( [
['0', '@Straks', '@Betaling øjeblikkelig' ],
['8', '@8 dage', '@Betaling inden 8 dage' ],
['14', '@14 dage', '@Betaling inden 14 dage'],
['30', '@30 dage', '@Betaling inden 30 dage']
] );
}
function DEB_Dok () { return( [
['pdf', '@PDF-fil','@Fil i pdf-format' ],
['email', '@email', '@Elektronisk forsendelse'],
['ioubl', '@OIOUBL', '@Elektronisk fakturering'],
['pbs', '@PBS', '@PBS faktura' ]
] );
}
function CVR_Land () {return( [
['dk', '@Denmark', '@Search the Danish register', 'checked'],
['no', '@Norwegian', '@Search the Norwegian register', '']
] );
}
function CVR_Liste () {return( [ // vat, name, produ, phone, search
['search', '@General', '@General search: (not tel.)', ''],
['vat', '@CVR', '@Centralt Virksomheds Register nr', ''],
['produ', '@P-unit', '@Production unit-no', ''],
['phone', '@Phone', '@Phone number', ''],
['name', '@Company name', '@Company name', 'checked']
] );
}
function OrdrStatu () {return( [
['Status', '@Status', '@Ordre Status', 'checked'],
['Offer', '@Tilbud', '@Tilbud', ''],
['Order', '@Ordre', '@Ordre', ''],
['Deliv', '@Afsendt', '@Afsendt', ''],
['Paid', '@Betalt', '@Betalt', '']
] );
}
function JourStatu () {return( [
['posted', '@Bogført', '@Journalens Status', 'checked'],
['simulated', '@Simuleret', '@Simuleret', '']
] );
}
function UserList () {return( [
['ej', '@Ejner', '@Ejner Jensen', 'checked'],
['bh', '@Birgit', '@Birgit Hansen', ''],
['aa', '@Anders', '@Anders And', '']
] );
}


function JustListe () {return( [['@V: Venstre justeret','V','@V'],['@C: Center justeret','C','@C'],['@H: Højre justeret','H','@H']] ); }
function FartListe () {return( [['@0: Generelt - f.eks. papirformat','0','@0: Generelt'],['@1: Grafik= Linier og billeder','1','@1: Grafik'], // FormularArtListe
['@2: Tekster og variabelnavne ($)','2','@2: Tekster'],['@3: Ordrelinier - Gentagende linier på sidens midte (£)','3','@3: Ordrelinier'],
['@5: Mail tekst - Emne og Beskedtekst i mail forsendelse','5','@5: Mail tekst']] ); }
function SideListe () {return( [['@Alle sider','A','@A: Alle sider',''],['@Kun første side','1','@1: Kun første side',''],['@IKKE første side','!1','@!1: IKKE første side',''],
['@Kun sidste side','S','@S: Kun sidste side',''],['@IKKE sidste side','!S','@!S: IKKE sidste side','']] ); }
function Side_List () {return( [['@Alle sider','A','A'],['@Kun første side','1','1'],['@IKKE første side','!1','!1'],
['@Kun sidste side','S','S'],['@IKKE sidste side','!S','!S']] ); }
function FontListe () {return( [['@Sans-serif','Helvetica','Helvetica'],['@Serif','Times','Times'],['@Optisk Læsbar','OCRbb12','OCRbb12']] ); }

// function KontListe () {return( [['@Drifts konto','D','D','Drift'],['@Status konto','S','S','Status'],['@Sum konto','Z','Z','Sum fra'],['@Overskrift (system!)','H','H',' '],
// ['@Resultat konto','R','R','Resultat'],['@Sideskift (system!)','X','X',' '],['@Lukket konto','L','L','Lukket']] ); }
function accoTypeList () {return ([ // 0:value, 1:Label, 2:@ToolTip
['Operation', '@Operation', '@Operation account'], // @Drift
['Balance' , '@Balance' , '@Balance account' ], // @Status
['Header' , '@Header' , '@Header line' ], // @Overskrift
['SumFrom' , '@Sum From' , '@Calc sum from account'], // @Sum fra
['NewPage' , '@New Page' , '@Separates pages' ], // @Sideskift
['Result' , '@Result' , '@Result account' ], // @Resultat
['Closed' , '@Closed' , '@Closed account' ] // @Lukket
]); }

// function MomsListe () {return( [['@Købs-moms','K1','K1','Køb 1'],['@Salgs-moms','S1','S1','Salg 1'],['@Ydelses-moms','Y1','Y1','Ydelse 1'],['@EU-moms','E1','E1','Varer 1']] ); } // '@Momskode: K_:Købs... S_:Salgs... Y_:Ydelses..., E_:Europæisk..., '
function VatList () {return ([
['P25', '@P25 Purchase','@Purchase-VAT'], //['@Købs-moms','K1','K1','Køb 1'],
['S25', '@S25 Sale' , '@Sale-VAT'], //['@Salgs-moms','S1','S1','Salg 1'],
['V25', '@V25 Service', '@Service-VAT'], //['@Ydelses-moms','Y1','Y1','Ydelse 1'],
['D25', '@D25 Product', '@Product-VAT'], //['@Vare-moms
['E25', '@E25 EU-VAT', '@Euro-VAT'] //['@EU-moms','E1','E1','Varer 1']
]); }

//function StatListe () {return( [['@Aktiv','','@Aktiv'],['@Lukket','on','@Lukket']] ); } // værdi: "on" svarer til Lukket! Alt andet: Aktiv
function StatusList () {return ([
['Active', '@Active','@The account is aktive'],
['Closed', '@Closed','@The account is closed']
]); }

function Aar_Liste () {return( [['2016','2016','2016'],['2017','2017','2017'],['2018','2018','2018'],['2019','2019','2019']] ); }
function Grp0Liste () {return( [['@Alle ','0','@0. Alle','']] ); }
function Grp1Liste () {return( [['@Ydelser ','1','@1. Ydelser',''],['@Handelsvarer','2','@2. Handelsvarer',''],
['@Forbrugsvarer', '3','@3. Forbrugsvarer',''],['@Fragt/Porto','4','@4. Fragt/Porto','']] ); }
function Grp_Liste () {return( [['@Alle ','0','@0. Alle',''],['@Ydelser ','1','@1. Ydelser',''],['@Handelsvarer','2','@2. Handelsvarer',''],
['@Forbrugsvarer', '3','@3. Forbrugsvarer',''],['@Fragt/Porto','4','@4. Fragt/Porto','']] ); }
function Afd_Liste () {return( [['@Alle ', '0','@0. Alle',''], ['@Forretning ', '1','@1. Forretning',''],
['@Lager 1 ', '2','@2. Lager 1',''], ['@Lager 2 ', '3','@3. Lager 2','']] ); }
function Slg_Liste () {return( [['@Alle ', '0','@0. Alle',''], ['@Revisor ', '1','@1. Revisor',''],
['@Bogholder ', '2','@2. Bogholder',''], ['@Admin ', '3','@3. Admin','']] ); }
function PageListe () {return( [['@A5-Højformat ','A5-portrait','A5-p'],['@A5-bredformat ','A5-landscape','A5-l'],['@A4-Højformat ','A4-portrait','A4-p'],
['@A4-bredformat ','A4-landscape','A4-l'],['@A3-Højformat ','A3-portrait','A3-p'],['@A3-bredformat ','A3-landscape','A3-l']] ); }
function PaprListe () {return( [['@A5 Højformat: H:210mm B:148mm', 'A5p', '@A5 portrait',''], ['@A5 Bredformat: H:148mm B:210mm','A5l', '@A5 landscape',''],
['@A4 Højformat: H:297mm B:210mm', 'A4p', '@A4 portrait',''], ['@A4 Bredformat: H:210mm B:297mm','A4l', '@A4 landscape',''],
['@A3 Højformat: H:420mm B:297mm', 'A3p', '@A3 portrait',''], ['@A3 Bredformat: H:297mm B:420mm','A3l', '@A3 landscape','']] ); }
function FormObjkt () {return( [['@Side layout og placering af ordrelinier', '0:Layout', '@Layout'],
['@Tekster og variabler med data', '1:Tekster', '@Tekster'],
['@Grafiske streger og logo-billede', '2:Linjer', '@Grafik'],
['@Gentagne ordre- eller specikations-linier på siders midte', '3:Ordrelinjer', '@Ordrelinjer'],
['@Emne og besked benyttet til mailforsendelse', '5:Mail tekst', '@Mail tekst']] ); }
function ValuListe () {return( [['@Danske kroner','DKK','DKK'],['@Euro','EUR','EUR'],['@US dollar','$','$'],['@Engelsk pund','£','£']] ); }
//function ValutaArr () {return( [['@Danske kroner','DKK','@DKK - Danmark - Kroner'],['@Svenske kroner','SEK','@SEK - Sverige - kroner'],
// ['@Norske kroner','NOK','@NOK - Norge - Kroner'],['@Europæisk Euro','EUR','@EUR - EU fællesskabet - Euro'],
// ['@US dollar','USD','@USD - Amerikansk - Dollar'],['@Pund Sterling','GBP','@GBP - Det Forenede Kongerige - Pund']] ); }

function CurrencyArr () {return( [
['DKK','@DKK Danish kroner', '@DKK - Denmark - kroner'],
['SEK','@SEK Swedish kroner', '@SEK - Sweden - kroner'],
['NOK','@NOK Norway kroner', '@NOK - Norway - Kroner'],
['EUR','@EUR European Euro', '@EUR - The EU community - Euro'],
['USD','@USD US dollar', '@USD - Amerikansk - Dollar'],
['GBP','@GBP Pound Sterling', '@GBP - Det Forenede Kongerige - Pund']
]); }


?>
Loading

0 comments on commit 2bfbbb7

Please sign in to comment.