From 3473b2c37c7f68c4e5788c21da8ab1a43bfc1731 Mon Sep 17 00:00:00 2001 From: Simon Steuer Date: Thu, 4 Apr 2024 10:04:13 +0200 Subject: [PATCH] =?UTF-8?q?Feld=20'Zusatzinformationen'=20aus=20Feldpr?= =?UTF-8?q?=C3=BCfung=20entfernt,=20da=20dieses=20Feld=20je=20nach=20Fall?= =?UTF-8?q?=20auch=20leer=20sein=20darf=20+=20Werkstoff=20wird=20nun=20bei?= =?UTF-8?q?=20Einzelteilen,=20die=20aus=20einem=20Halbzeug=20gefertigt=20w?= =?UTF-8?q?erden,=20nicht=20mehr=20in=20die=20Excel=20geschrieben,=20da=20?= =?UTF-8?q?der=20Werkstoff=20in=20diesem=20Fall=20durch=20das=20Halbzeug?= =?UTF-8?q?=20definiert=20wird.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/caditem.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/caditem.py b/lib/caditem.py index a8ed8b9..f2c858f 100644 --- a/lib/caditem.py +++ b/lib/caditem.py @@ -641,8 +641,6 @@ class CadItem(DataModel): self.check_key_both_columns("aenderungstext_sivas", "aenderungstext_neu", missing) # Freigabevermerk self.check_key_both_columns("freigabevermerk_sivas", "freigabevermerk_neu", missing) - # Automatische Zusatzinformationen - self.check_key_existence("zusatzinfos_auto_text", missing) if len(missing) > 0: return (False, missing) else: @@ -870,7 +868,6 @@ class CadItem(DataModel): ret = False if re.findall(r'1 out of 1', content): - os.remove(path) self.message_info('Preparation sucessful', 'preparation_sucessful', {'path':impf_pfad}) ret = True elif re.findall(r'Error', content): @@ -1209,8 +1206,12 @@ class CadItem(DataModel): # Material material = self.get_content('material_sivas', 'material_neu') + if material: - data["WerkstoffNE"] = material + if not aus_halbzeug: + data["WerkstoffNE"] = material + else: + data["WerkstoffNE"] = "" # Oberfläche oberflaeche = self.get_gui_data('oberflaeche_neu')