Am Donnerstag, den 15.09.2011, 11:10 +0200 schrieb Cédric Krier: > 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? > Hi,
i agree that this should be improved. I think we have the following dates to track on a sale: * the quotation date (the date when the sale is set to state 'quotation') * the order date (the date when the sale is set to state 'confirmed') * the planned date of the customer shipment For the moment i am not sure which one of theses dates is the 'sale date' in the current module. The planned date of the customer shipment can depend on many things: * the customer could state a custom delivery date * as you say there could be need for a preparation time * the planned date can depend on a production process So IMHO we would need: * a date field for the quotation date * a date field for the order date * a function to compute the planned shipment date * a date field for defining a custom shipment date (but this may be a custom need) -- Korbinian Preisler ____________________________________ virtual things Preisler & Spallek GbR Munich - Aix-la-Chapelle Windeckstr. 77 81375 Munich - Germany Tel: +49 (89) 710 481 55 Fax: +49 (89) 710 481 56 [email protected] http://www.virtual-things.biz -- [email protected] mailing list
