Merge branch 'master' of https://github.com/devcode-it/openstamanager
This commit is contained in:
commit
3dd05d4858
|
@ -754,7 +754,7 @@ class Validator
|
||||||
'²' => '2',
|
'²' => '2',
|
||||||
'³' => '3',
|
'³' => '3',
|
||||||
'´' => ' ́',
|
'´' => ' ́',
|
||||||
'µ' => 'μ',
|
'µ' => 'u',
|
||||||
'¸' => ' ̧',
|
'¸' => ' ̧',
|
||||||
'¹' => '1',
|
'¹' => '1',
|
||||||
'º' => 'o',
|
'º' => 'o',
|
||||||
|
@ -1974,7 +1974,7 @@ class Validator
|
||||||
'㍿' => '株式会社',
|
'㍿' => '株式会社',
|
||||||
'㎀' => 'pA',
|
'㎀' => 'pA',
|
||||||
'㎁' => 'nA',
|
'㎁' => 'nA',
|
||||||
'㎂' => 'μA',
|
'㎂' => 'uA',
|
||||||
'㎃' => 'mA',
|
'㎃' => 'mA',
|
||||||
'㎄' => 'kA',
|
'㎄' => 'kA',
|
||||||
'㎅' => 'KB',
|
'㎅' => 'KB',
|
||||||
|
@ -1984,8 +1984,8 @@ class Validator
|
||||||
'㎉' => 'kcal',
|
'㎉' => 'kcal',
|
||||||
'㎊' => 'pF',
|
'㎊' => 'pF',
|
||||||
'㎋' => 'nF',
|
'㎋' => 'nF',
|
||||||
'㎌' => 'μF',
|
'㎌' => 'uF',
|
||||||
'㎍' => 'μg',
|
'㎍' => 'ug',
|
||||||
'㎎' => 'mg',
|
'㎎' => 'mg',
|
||||||
'㎏' => 'kg',
|
'㎏' => 'kg',
|
||||||
'㎐' => 'Hz',
|
'㎐' => 'Hz',
|
||||||
|
@ -1993,13 +1993,13 @@ class Validator
|
||||||
'㎒' => 'MHz',
|
'㎒' => 'MHz',
|
||||||
'㎓' => 'GHz',
|
'㎓' => 'GHz',
|
||||||
'㎔' => 'THz',
|
'㎔' => 'THz',
|
||||||
'㎕' => 'μl',
|
'㎕' => 'ul',
|
||||||
'㎖' => 'ml',
|
'㎖' => 'ml',
|
||||||
'㎗' => 'dl',
|
'㎗' => 'dl',
|
||||||
'㎘' => 'kl',
|
'㎘' => 'kl',
|
||||||
'㎙' => 'fm',
|
'㎙' => 'fm',
|
||||||
'㎚' => 'nm',
|
'㎚' => 'nm',
|
||||||
'㎛' => 'μm',
|
'㎛' => 'um',
|
||||||
'㎜' => 'mm',
|
'㎜' => 'mm',
|
||||||
'㎝' => 'cm',
|
'㎝' => 'cm',
|
||||||
'㎞' => 'km',
|
'㎞' => 'km',
|
||||||
|
@ -2022,17 +2022,17 @@ class Validator
|
||||||
'㎯' => 'rad∕s2',
|
'㎯' => 'rad∕s2',
|
||||||
'㎰' => 'ps',
|
'㎰' => 'ps',
|
||||||
'㎱' => 'ns',
|
'㎱' => 'ns',
|
||||||
'㎲' => 'μs',
|
'㎲' => 'us',
|
||||||
'㎳' => 'ms',
|
'㎳' => 'ms',
|
||||||
'㎴' => 'pV',
|
'㎴' => 'pV',
|
||||||
'㎵' => 'nV',
|
'㎵' => 'nV',
|
||||||
'㎶' => 'μV',
|
'㎶' => 'uV',
|
||||||
'㎷' => 'mV',
|
'㎷' => 'mV',
|
||||||
'㎸' => 'kV',
|
'㎸' => 'kV',
|
||||||
'㎹' => 'MV',
|
'㎹' => 'MV',
|
||||||
'㎺' => 'pW',
|
'㎺' => 'pW',
|
||||||
'㎻' => 'nW',
|
'㎻' => 'nW',
|
||||||
'㎼' => 'μW',
|
'㎼' => 'uW',
|
||||||
'㎽' => 'mW',
|
'㎽' => 'mW',
|
||||||
'㎾' => 'kW',
|
'㎾' => 'kW',
|
||||||
'㎿' => 'MW',
|
'㎿' => 'MW',
|
||||||
|
@ -3846,7 +3846,7 @@ class Validator
|
||||||
'𝛊' => 'ι',
|
'𝛊' => 'ι',
|
||||||
'𝛋' => 'κ',
|
'𝛋' => 'κ',
|
||||||
'𝛌' => 'λ',
|
'𝛌' => 'λ',
|
||||||
'𝛍' => 'μ',
|
'𝛍' => 'u',
|
||||||
'𝛎' => 'ν',
|
'𝛎' => 'ν',
|
||||||
'𝛏' => 'ξ',
|
'𝛏' => 'ξ',
|
||||||
'𝛐' => 'ο',
|
'𝛐' => 'ο',
|
||||||
|
@ -3904,7 +3904,7 @@ class Validator
|
||||||
'𝜄' => 'ι',
|
'𝜄' => 'ι',
|
||||||
'𝜅' => 'κ',
|
'𝜅' => 'κ',
|
||||||
'𝜆' => 'λ',
|
'𝜆' => 'λ',
|
||||||
'𝜇' => 'μ',
|
'𝜇' => 'u',
|
||||||
'𝜈' => 'ν',
|
'𝜈' => 'ν',
|
||||||
'𝜉' => 'ξ',
|
'𝜉' => 'ξ',
|
||||||
'𝜊' => 'ο',
|
'𝜊' => 'ο',
|
||||||
|
@ -3962,7 +3962,7 @@ class Validator
|
||||||
'𝜾' => 'ι',
|
'𝜾' => 'ι',
|
||||||
'𝜿' => 'κ',
|
'𝜿' => 'κ',
|
||||||
'𝝀' => 'λ',
|
'𝝀' => 'λ',
|
||||||
'𝝁' => 'μ',
|
'𝝁' => 'u',
|
||||||
'𝝂' => 'ν',
|
'𝝂' => 'ν',
|
||||||
'𝝃' => 'ξ',
|
'𝝃' => 'ξ',
|
||||||
'𝝄' => 'ο',
|
'𝝄' => 'ο',
|
||||||
|
@ -4020,7 +4020,7 @@ class Validator
|
||||||
'𝝸' => 'ι',
|
'𝝸' => 'ι',
|
||||||
'𝝹' => 'κ',
|
'𝝹' => 'κ',
|
||||||
'𝝺' => 'λ',
|
'𝝺' => 'λ',
|
||||||
'𝝻' => 'μ',
|
'𝝻' => 'u',
|
||||||
'𝝼' => 'ν',
|
'𝝼' => 'ν',
|
||||||
'𝝽' => 'ξ',
|
'𝝽' => 'ξ',
|
||||||
'𝝾' => 'ο',
|
'𝝾' => 'ο',
|
||||||
|
@ -4078,7 +4078,7 @@ class Validator
|
||||||
'𝞲' => 'ι',
|
'𝞲' => 'ι',
|
||||||
'𝞳' => 'κ',
|
'𝞳' => 'κ',
|
||||||
'𝞴' => 'λ',
|
'𝞴' => 'λ',
|
||||||
'𝞵' => 'μ',
|
'𝞵' => 'u',
|
||||||
'𝞶' => 'ν',
|
'𝞶' => 'ν',
|
||||||
'𝞷' => 'ξ',
|
'𝞷' => 'ξ',
|
||||||
'𝞸' => 'ο',
|
'𝞸' => 'ο',
|
||||||
|
|
|
@ -64,7 +64,7 @@ FROM
|
||||||
LEFT JOIN `co_statipreventivi` ON `co_preventivi`.`idstato` = `co_statipreventivi`.`id`
|
LEFT JOIN `co_statipreventivi` ON `co_preventivi`.`idstato` = `co_statipreventivi`.`id`
|
||||||
LEFT JOIN (SELECT `idpreventivo`, SUM(`subtotale` - `sconto`) AS `totale_imponibile`, SUM(`subtotale` - `sconto` + `iva`) AS `totale` FROM `co_righe_preventivi` GROUP BY `idpreventivo`) AS righe ON `co_preventivi`.`id` = `righe`.`idpreventivo`
|
LEFT JOIN (SELECT `idpreventivo`, SUM(`subtotale` - `sconto`) AS `totale_imponibile`, SUM(`subtotale` - `sconto` + `iva`) AS `totale` FROM `co_righe_preventivi` GROUP BY `idpreventivo`) AS righe ON `co_preventivi`.`id` = `righe`.`idpreventivo`
|
||||||
LEFT JOIN (SELECT `an_anagrafiche`.`idanagrafica`, `an_anagrafiche`.`ragione_sociale` AS nome FROM `an_anagrafiche`)AS agente ON `agente`.`idanagrafica`=`co_preventivi`.`idagente`
|
LEFT JOIN (SELECT `an_anagrafiche`.`idanagrafica`, `an_anagrafiche`.`ragione_sociale` AS nome FROM `an_anagrafiche`)AS agente ON `agente`.`idanagrafica`=`co_preventivi`.`idagente`
|
||||||
LEFT JOIN (SELECT GROUP_CONCAT(DISTINCT `co_documenti`.`numero_esterno` SEPARATOR ', ') AS `info`, `co_righe_documenti`.`original_document_id` AS `idpreventivo` FROM `co_documenti` INNER JOIN `co_righe_documenti` ON `co_documenti`.`id` = `co_righe_documenti`.`iddocumento` WHERE `original_document_type`='Modules\Preventivi\Preventivo' GROUP BY `idpreventivo`, `original_document_id`) AS `fattura` ON `fattura`.`idpreventivo` = `co_preventivi`.`id`
|
LEFT JOIN (SELECT GROUP_CONCAT(DISTINCT `co_documenti`.`numero_esterno` SEPARATOR ', ') AS `info`, `co_righe_documenti`.`original_document_id` AS `idpreventivo` FROM `co_documenti` INNER JOIN `co_righe_documenti` ON `co_documenti`.`id` = `co_righe_documenti`.`iddocumento` WHERE `original_document_type`='Modules\\Preventivi\\Preventivo' GROUP BY `idpreventivo`, `original_document_id`) AS `fattura` ON `fattura`.`idpreventivo` = `co_preventivi`.`id`
|
||||||
WHERE
|
WHERE
|
||||||
1=1 |segment(`co_preventivi`.`id_segment`)| |date_period(custom,'|period_start|' >= `data_bozza` AND '|period_start|' <= `data_conclusione`,'|period_end|' >= `data_bozza` AND '|period_end|' <= `data_conclusione`,`data_bozza` >= '|period_start|' AND `data_bozza` <= '|period_end|',`data_conclusione` >= '|period_start|' AND `data_conclusione` <= '|period_end|',`data_bozza` >= '|period_start|' AND `data_conclusione` = NULL)| AND `default_revision` = 1
|
1=1 |segment(`co_preventivi`.`id_segment`)| |date_period(custom,'|period_start|' >= `data_bozza` AND '|period_start|' <= `data_conclusione`,'|period_end|' >= `data_bozza` AND '|period_end|' <= `data_conclusione`,`data_bozza` >= '|period_start|' AND `data_bozza` <= '|period_end|',`data_conclusione` >= '|period_start|' AND `data_conclusione` <= '|period_end|',`data_bozza` >= '|period_start|' AND `data_conclusione` = NULL)| AND `default_revision` = 1
|
||||||
GROUP BY
|
GROUP BY
|
||||||
|
@ -163,7 +163,7 @@ FROM
|
||||||
LEFT JOIN (SELECT `idordine`, SUM(`qta` - `qta_evasa`) AS `qta_da_evadere`, SUM(`subtotale` - `sconto`) AS `totale_imponibile`, SUM(`subtotale` - `sconto` + `iva`) AS `totale` FROM `or_righe_ordini` GROUP BY `idordine`) AS righe ON `or_ordini`.`id` = `righe`.`idordine`
|
LEFT JOIN (SELECT `idordine`, SUM(`qta` - `qta_evasa`) AS `qta_da_evadere`, SUM(`subtotale` - `sconto`) AS `totale_imponibile`, SUM(`subtotale` - `sconto` + `iva`) AS `totale` FROM `or_righe_ordini` GROUP BY `idordine`) AS righe ON `or_ordini`.`id` = `righe`.`idordine`
|
||||||
LEFT JOIN (SELECT `idordine`, MIN(`data_evasione`) AS `data_evasione` FROM `or_righe_ordini` WHERE (`qta` - `qta_evasa`)>0 GROUP BY `idordine`) AS `righe_da_evadere` ON `righe`.`idordine`=`righe_da_evadere`.`idordine`
|
LEFT JOIN (SELECT `idordine`, MIN(`data_evasione`) AS `data_evasione` FROM `or_righe_ordini` WHERE (`qta` - `qta_evasa`)>0 GROUP BY `idordine`) AS `righe_da_evadere` ON `righe`.`idordine`=`righe_da_evadere`.`idordine`
|
||||||
LEFT JOIN `or_statiordine` ON `or_statiordine`.`id` = `or_ordini`.`idstatoordine`
|
LEFT JOIN `or_statiordine` ON `or_statiordine`.`id` = `or_ordini`.`idstatoordine`
|
||||||
LEFT JOIN (SELECT GROUP_CONCAT(DISTINCT `co_documenti`.`numero_esterno` SEPARATOR ', ') AS `info`, `co_righe_documenti`.`original_document_id` AS `idordine` FROM `co_documenti` INNER JOIN `co_righe_documenti` ON `co_documenti`.`id` = `co_righe_documenti`.`iddocumento` WHERE `original_document_type`='Modules\Ordini\Ordine' GROUP BY `idordine`, `original_document_id`) AS `fattura` ON `fattura`.`idordine` = `or_ordini`.`id`
|
LEFT JOIN (SELECT GROUP_CONCAT(DISTINCT `co_documenti`.`numero_esterno` SEPARATOR ', ') AS `info`, `co_righe_documenti`.`original_document_id` AS `idordine` FROM `co_documenti` INNER JOIN `co_righe_documenti` ON `co_documenti`.`id` = `co_righe_documenti`.`iddocumento` WHERE `original_document_type`='Modules\\Ordini\\Ordine' GROUP BY `idordine`, `original_document_id`) AS `fattura` ON `fattura`.`idordine` = `or_ordini`.`id`
|
||||||
LEFT JOIN (SELECT `zz_operations`.`id_email`, `zz_operations`.`id_record` FROM `zz_operations` INNER JOIN `em_emails` ON `zz_operations`.`id_email` = `em_emails`.`id` INNER JOIN `em_templates` ON `em_emails`.`id_template` = `em_templates`.`id` INNER JOIN `zz_modules` ON `zz_operations`.`id_module` = `zz_modules`.`id` WHERE `zz_modules`.`name` = 'Ordini cliente' AND `zz_operations`.`op` = 'send-email' GROUP BY `zz_operations`.`id_record`, `id_email`) AS `email` ON `email`.`id_record` = `or_ordini`.`id`
|
LEFT JOIN (SELECT `zz_operations`.`id_email`, `zz_operations`.`id_record` FROM `zz_operations` INNER JOIN `em_emails` ON `zz_operations`.`id_email` = `em_emails`.`id` INNER JOIN `em_templates` ON `em_emails`.`id_template` = `em_templates`.`id` INNER JOIN `zz_modules` ON `zz_operations`.`id_module` = `zz_modules`.`id` WHERE `zz_modules`.`name` = 'Ordini cliente' AND `zz_operations`.`op` = 'send-email' GROUP BY `zz_operations`.`id_record`, `id_email`) AS `email` ON `email`.`id_record` = `or_ordini`.`id`
|
||||||
WHERE
|
WHERE
|
||||||
1=1 |segment(`or_ordini`.`id_segment`)| AND `dir` = 'entrata' |date_period(`or_ordini`.`data`)|
|
1=1 |segment(`or_ordini`.`id_segment`)| AND `dir` = 'entrata' |date_period(`or_ordini`.`data`)|
|
||||||
|
|
Loading…
Reference in New Issue