diff --git a/account_asset.diff b/account_asset.diff index b1a3bd5..a250b90 100644 --- a/account_asset.diff +++ b/account_asset.diff @@ -11,3 +11,12 @@ index fc23ca8..cc10240 100644 ], depends=['latest_move_date', 'next_depreciation_date'], help=('The date must be between the last update/depreciation date ' +@@ -866,7 +866,7 @@ class UpdateAsset(Wizard): + asset = Asset(Transaction().context['active_id']) + latest_move_date = self.show_move.latest_move_date + next_date = self.show_move.next_depreciation_date +- if not (latest_move_date < self.show_move.date < next_date): ++ if not (latest_move_date < self.show_move.date <= next_date): + raise ValueError('The update move date is invalid') + move = self.get_move(asset) + move.lines = self.get_move_lines(asset)