[ 
https://issues.apache.org/jira/browse/OFBIZ-1149?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520550
 ] 

Bilgin Ibryam commented on OFBIZ-1149:
--------------------------------------

ok, i found the bug and did a patch for it.

I am not sure that this is the right way to do it, but instead of using the big 
"toBeStored" list, i used another temporary list to iterate (many times in some 
cases), and then to add it to the "toBeStored" list. It looks the bug is fixed, 
could someone confirm this please?

Bilgin

> Calendars and Fixed Asset Usage
> -------------------------------
>
>                 Key: OFBIZ-1149
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1149
>             Project: OFBiz
>          Issue Type: Bug
>    Affects Versions: SVN trunk
>            Reporter: Hans Bakker
>         Attachments: calendar.patch
>
>
> (copied from E-Mail mailing list)
> I am exploring the functionality that associates fixed assets with
> rental products. It appears as though an order entered for a rental
> product allows reservations (techDataCalendarExcDay) to be updated. This
> would cause a subsequent order for the same product with the same date
> range to update the records.
> Theoretically this is OK, because the calendar simply indicates whether
> or not the asset is available. Although I noticed that if the second
> order was for fewer days, the additional days were deleted for the
> previous order. This means the calendar now showed dates as available,
> even though an order had been placed for those dates.
> So maybe the Calendar isn't my problem, but the fact that the order
> process allowed it to be "double booked."
> Is there a way OOTB to lock a date range on an asset once an order is
> placed? Or would this be a customization to order entry to check
> availability before allowing an order to be placed? I would also like
> the ability to delete the records from the asset calendar if the
> reservation (order) were canceled.
> Scenario (short version):
> Set up all the necessary entities, including fixed asset, product, price.
> Set product type to fixed asset usage.
> Linked product to fixed asset.
> Added product to a category in a catalog visible via ecommerce.
> So far so good. I can make a reservation thru the web store. However, if
> I place another order for the product and specify the same date range
> the order will complete.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to