Skip to content

Commit 53c696e

Browse files
committed
v4.0.42
1 parent 926396e commit 53c696e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

ui/custom/assembly_planning_widget.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ def laser_cut_part_file_dropped(
12591259
self.laser_cut_parts_table.item(current_row, LaserCutTableColumns.PART_NAME.value).setText(laser_cut_part.meta_data.file_name)
12601260
elif "pdf" in file_ext.lower() and file_category == "bending_files":
12611261
laser_cut_part.meta_data.bend_hits = get_bend_hits(file_path)
1262+
laser_cut_part.prices.bend_cost = laser_cut_part.meta_data.bend_hits
12621263

12631264
target_dir = os.path.join("data", "workspace", file_ext)
12641265
target_path = os.path.join(target_dir, file_name)

ui/windows/main_window.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
from utils.workspace.workspace_laser_cut_part_group import WorkspaceLaserCutPartGroup
158158
from utils.workspace.workspace_settings import WorkspaceSettings
159159

160-
__version__: str = "v4.0.41"
160+
__version__: str = "v4.0.42"
161161

162162

163163
def check_folders(folders: list[str]):

utils/workspace/job_price_calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def get_laser_cut_parts_cost(self, laser_cut_parts: list[LaserCutPart]) -> float
106106
return total
107107

108108
def get_laser_cut_part_cost_of_bending(self, laser_cut_part: LaserCutPart) -> float:
109-
return laser_cut_part.meta_data.bend_hits * laser_cut_part.prices.bend_cost
109+
return laser_cut_part.prices.bend_cost
110110

111111
def get_laser_cut_part_cost_of_goods(self, laser_cut_part: LaserCutPart) -> float:
112112
if self.match_item_cogs_to_sheet:

0 commit comments

Comments
 (0)