Hi,

I think we got a design issue in the sale module.
Right now, the "Planned Date" of the "Customer Shipment" is the "Sale Date"
(by default today).
I think this is too simple to correctly simulate the reality. The company
could need some times to prepare the products etc.

In contrast on the purchase we compute the planned date for the supply of a
product based on the informations of the "Product Supplier".

So I think we should have similar design for "Sale" which means:

    - Having on "Product" a field "Delivery Time" (similar to the one on
      "Product Supplier")

    - Having a method on "Product" to compute_delivery_time

    - Use this method to set "Planned Date" on move created by "Sale"

    - Group those moves by similar "Planned Date" into a "Shipment"

I think this design will allow custom developers to extend it to match almost
any behaviors.

What do you think?

-- 
Cédric Krier

B2CK SPRL
Rue de Rotterdam, 4
4000 Liège
Belgium
Tel: +32 472 54 46 59
Email/Jabber: [email protected]
Website: http://www.b2ck.com/

Attachment: pgpITpjCKeqZ3.pgp
Description: PGP signature

Reply via email to