mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-03-05 22:49:48 +01:00
fibu_buchungen document auto assign
This commit is contained in:
parent
85094921a0
commit
ebd50b4f28
@ -469,7 +469,10 @@ class Fibu_buchungen {
|
|||||||
salden.saldo,
|
salden.saldo,
|
||||||
salden.objektlink,
|
salden.objektlink,
|
||||||
salden.saldonum,
|
salden.saldonum,
|
||||||
salden.waehrung
|
salden.waehrung,
|
||||||
|
fo.typ as doc_typ,
|
||||||
|
fo.id as doc_id,
|
||||||
|
fo.info as doc_info
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
SELECT
|
SELECT
|
||||||
@ -484,12 +487,14 @@ class Fibu_buchungen {
|
|||||||
`fibu_buchungen_alle` fb
|
`fibu_buchungen_alle` fb
|
||||||
INNER JOIN fibu_objekte fo ON
|
INNER JOIN fibu_objekte fo ON
|
||||||
fb.typ = fo.typ AND fb.id = fo.id
|
fb.typ = fo.typ AND fb.id = fo.id
|
||||||
WHERE fb.typ <> 'kontorahmen' AND (fb.typ = '".$typ."' OR '".$typ."' = '')
|
WHERE (fb.typ = '".$typ."' OR '".$typ."' = '')
|
||||||
GROUP BY
|
GROUP BY
|
||||||
fb.typ,
|
fb.typ,
|
||||||
fb.id,
|
fb.id,
|
||||||
fb.waehrung
|
fb.waehrung
|
||||||
) salden
|
) salden
|
||||||
|
LEFT JOIN fibu_objekte fo ON
|
||||||
|
salden.info LIKE CONCAT('%', fo.info, '%') AND salden.typ <> fo.typ
|
||||||
WHERE
|
WHERE
|
||||||
salden.saldonum <> 0
|
salden.saldonum <> 0
|
||||||
LIMIT 100
|
LIMIT 100
|
||||||
@ -512,7 +517,7 @@ class Fibu_buchungen {
|
|||||||
if (empty($item['doc_id'])) {
|
if (empty($item['doc_id'])) {
|
||||||
$object_identifier = '';
|
$object_identifier = '';
|
||||||
} else {
|
} else {
|
||||||
$object_identifier = ucfirst($item['doc_typ'])."-".$item['doc_id']."-".$item['doc_belegnr'];
|
$object_identifier = ucfirst($item['doc_typ'])."-".$item['doc_id']."-".$item['doc_info'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$input_id = 'fibu_object_select_'.$item['id'];
|
$input_id = 'fibu_object_select_'.$item['id'];
|
||||||
@ -536,7 +541,7 @@ class Fibu_buchungen {
|
|||||||
ucfirst($item['typ']),
|
ucfirst($item['typ']),
|
||||||
$item['objektlink'],
|
$item['objektlink'],
|
||||||
$item['saldo'],
|
$item['saldo'],
|
||||||
'<input type="number" step="0.01" size="10" name="fibu_betrag[]" value="'.$item['saldo'].'" min="'.$min.'" max="'.$max.'"></input>'.$item['waehrung'],
|
'<input type="number" step="0.01" size="10" name="fibu_betrag[]" value="'.$item['saldonum'].'" min="'.$min.'" max="'.$max.'"></input>'.$item['waehrung'],
|
||||||
$object_select,
|
$object_select,
|
||||||
'<input type="text" name="fibu_typ[]" value="'.$item['typ'].'" hidden/>',
|
'<input type="text" name="fibu_typ[]" value="'.$item['typ'].'" hidden/>',
|
||||||
'<input type="text" name="fibu_id[]" value="'.$item['id'].'" hidden/>',
|
'<input type="text" name="fibu_id[]" value="'.$item['id'].'" hidden/>',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user