dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] multifix patch


From: Laurent Destailleur (eldy)
Subject: Re: [Dolibarr-dev] multifix patch
Date: Wed, 18 May 2011 19:24:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10

I added the following things from patch:
* Small bugs.
* Add label on auto stock movement
* Add pmp price of product in stock card

But i did not add code that change the way pmp of product or warehouse are calculated because this does not reflect the definition of PMP and it must be calculated only on stock entry. If no entry was done, PMP must still be 0.



Le 09/05/2011 07:46, Ditto Dito a écrit :
Here is a patch against Dolibarr 3.0 which fixes (imho) a couple of things, namely

- multiprix : There were several places in db which used product.price, although multiple prices were active.

- multiprix : The multi price system overwrote product.price at each change. I have fixed this by only updating product.price when pricelevel is 0 or 1.

- pmp : This famous "prix moyen pondéré"  was only calculated on stock movement from an incoming invoice, which renders it useless for manufacturers. I have added an input field to the product price tab.

- pmp : Is used to calculate stock values. I have added some if()s to use product.pmp if no warehouse.pmp is available

- pmp : I am regarding pmp as cost value, and I have added some information, namely profit margins and markup, on the product price tab between pmp and price level 1 and price level 2. I agree that this is a somewhat specific change, but Dolibarr lacks  statistics crudely.

- stock movement : Is generated, in my case, at the invoice validation, and I am setting the invoice number as reference in the movement label (libellé). There has been a discussion regarding this on the forum

- Some other small changes, mostly cosmetic.

#	modified:   cashdesk/facturation_verif.php
#	modified:   cashdesk/tpl/liste_articles.tpl.php
#	modified:   compta/facture/class/facture.class.php
#	modified:   core/class/html.formfile.class.php
#	modified:   langs/fr_FR/products.lang
#	modified:   lib/agenda.lib.php
#	modified:   product/class/product.class.php
#	modified:   product/liste.php
#	modified:   product/price.php
#	modified:   product/stock/class/entrepot.class.php
#	modified:   product/stock/class/mouvementstock.class.php
#	modified:   product/stock/fiche.php
#	modified:   product/stock/product.php
#	modified:   product/stock/valo.php
#	modified:   societe/societe.php


_______________________________________________ Dolibarr-dev mailing list address@hidden https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


-- 
Eldy (Laurent Destailleur).
---------------------------------------------------------------
EMail: address@hidden
Web: http://www.destailleur.fr

Dolibarr (Project leader): http://www.dolibarr.org
To make a donation for Dolibarr project via Paypal: address@hidden
AWStats (Author) : http://awstats.sourceforge.net
To make a donation for AWStats project via Paypal: address@hidden
AWBot (Author) : http://awbot.sourceforge.net
CVSChangeLogBuilder (Author) : http://cvschangelogb.sourceforge.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]