Skip to content

Commit

Permalink
Erkennung schwere Böden
Browse files Browse the repository at this point in the history
  • Loading branch information
arnold-pichler committed Sep 3, 2024
1 parent b64426b commit 44c9b67
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions src/components/TheEntryForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -754,6 +754,15 @@ watch(schlagInfo, (value) => {
if (value?.id !== Number(route.params.schlagId)) {
tempData.value.basic = schlagInfo.value;
if (tempData.value.basic) {
if (tempData.value.programs) {
if (
tempData.value.basic.sl_flaeche_brutto_ha / 2 <
tempData.value.programs.schwere_boeden
) {
entry.value.bodenart = 'sL - sandiger Lehm';
}
}
entry.value.flaechennutzungsart = tempData.value.basic.fnar_code;
entry.value.flaeche = tempData.value.basic.sl_flaeche_brutto_ha;
entry.value.schlaginfo.basic = schlagInfo.value;
Expand All @@ -778,6 +787,12 @@ watch(schlagInfo, (value) => {
watch(topicHectars, (value) => {
tempData.value.programs = value;
if (tempData.value.programs) {
if (tempData.value.basic) {
if (tempData.value.basic.sl_flaeche_brutto_ha / 2 < tempData.value.programs.schwere_boeden) {
entry.value.bodenart = 'sL - sandiger Lehm';
}
}
entry.value.flaeche_nitratrisikogebiet = tempData.value.programs.nitrataktionsprogramm;
entry.value.schlaginfo.programs = value;
Expand Down
2 changes: 1 addition & 1 deletion src/composables/useDataEntries.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const emptyEntry = {
ackerzahl: 31,
phosphor_gehaltsklasse: 'C',
kalium_gehaltsklasse: 'C',
bodenart: 'sU - sandiger Schluff',
bodenart: 'lS - lehmiger Sand',
vorfrucht: '',
stickstoffueberschuss: 0,
extent: [],
Expand Down

0 comments on commit 44c9b67

Please sign in to comment.