Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hdavid16 committed Nov 11, 2022
1 parent b8363c2 commit b755368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "InventoryManagement"
uuid = "2ad91f63-398d-4379-af6a-5a85689656d5"
authors = ["hdavid16 <[email protected]> and contributors"]
version = "0.5.4"
version = "0.5.5"

[deps]
Chain = "8be319e6-bccf-4806-a6f7-6fae938471bc"
Expand Down
2 changes: 1 addition & 1 deletion src/fulfillment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function fulfill_from_production!(
end
#remove any fulfilled orders from x.open_orders
fulfilled_orders = Set(filter(:amount => <=(0), orders_df, view=true).id) #find fulfilled orders
if isempty(fulfilled_orders)
if !isempty(fulfilled_orders)
filter(:id => in(fulfilled_orders), x.orders, view=true).fulfilled .= x.period #store fulfillment date
filter!(:id => !in(fulfilled_orders), x.open_orders) #remove fulfilled orders (with any associated production orders)
end
Expand Down

2 comments on commit b755368

@hdavid16
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/72384

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.5.5 -m "<description of version>" b755368c3abfbeb46e02a755df786ae688464efa
git push origin v0.5.5

Please sign in to comment.