|
How to use / setup the customer discount
|
|
05-11-2012, 11:03 AM
Post: #1
|
|||
|
|||
|
How to use / setup the customer discount
Hi:
On Customers.php there are 2 fields: Discount and Discount Code. Discount field is not used and neither Discount Code. Am I right? or am I missing how it works? Regards, Pak Ricard |
|||
|
05-11-2012, 11:58 AM
Post: #2
|
|||
|
|||
|
RE: How to use / setup the customer discount
Hi Ricard, There is a narrative in the manual I think certainly the wiki on how the customer discount code and the matrix in general works.
Phil Daintree webERP Admin Logic Works Ltd http://www.logicworks.co.nz |
|||
|
05-11-2012, 05:45 PM
(This post was last modified: 05-11-2012 06:31 PM by PakRicard.)
Post: #3
|
|||
|
|||
|
RE: How to use / setup the customer discount
Thanks Phil:
I could not find anything about "Customer discount" on the wiki or the code (unless it is coded in Sanskrit ).Anyway I modified GetPrice.inc to take this field into the price calculation (attached here). Please check as it will influence all webERP and I don't want to create a big mess. Line 6: Sets the variable to 0 Lines 77 to 86: retrieves the customer discount (In the previous prices scenarios it is not needed,aa are all "customer specific" scenarios) Line 170: Apllies the discount. There is a big BUT I could not sort out. This modification will work if there is NOT a discount for the item (via discount matrix or discount type), as will be applied on top of this one. GetPrice seems to get the "basic" price only, and the discount is applied, but could not sort it out how it is done... Any idea how to follow? Regards, Pak Ricard |
|||
|
05-11-2012, 07:41 PM
Post: #4
|
|||
|
|||
|
RE: How to use / setup the customer discount
Well the discount matrix was the successor to the simple discount field which is not used anymore.
The link I was thinking of is below: http://www.weberp.org/HowTodiscountmatrix Phil Daintree webERP Admin Logic Works Ltd http://www.logicworks.co.nz |
|||
|
05-11-2012, 07:57 PM
Post: #5
|
|||
|
|||
RE: How to use / setup the customer discount
(05-11-2012 07:41 PM)phil Wrote: Well the discount matrix was the successor to the simple discount field which is not used anymore. Sorry, I'm not understanding how to use the discount type: For customer X set 15% discount for all our items allways. How can be done with the matrix? Is there any option for "all" the items? Regards, Pak Ricard |
|||
|
05-11-2012, 08:06 PM
Post: #6
|
|||
|
|||
|
RE: How to use / setup the customer discount
Nope has to be done by discount category
Phil Daintree webERP Admin Logic Works Ltd http://www.logicworks.co.nz |
|||
|
05-12-2012, 10:42 AM
Post: #7
|
|||
|
|||
RE: How to use / setup the customer discount
(05-11-2012 08:06 PM)phil Wrote: Nope has to be done by discount category I see, but it is difficult to maintain, as any new item added to the DB will not get automatically the discount. It can be done maintaining several price lists (one regular price and one 15% off), but again it is manual work, so prone to degradation of DB. Could you pls point me where should I look at to improve GetPrice and see if I can set up this kind of discount? Regards, Pak Ricard |
|||
|
05-12-2012, 11:26 AM
Post: #8
|
|||
|
|||
|
RE: How to use / setup the customer discount
Maybe it is better to do it inside the discount matrix calculation so it is not over-ridden. The matrix calculation I believe is in the SelectOrderItems.php script - at some point you would need to decide which takes precedence - if there is a matrix should it over-ride the fixed discount or vice-versa? I am sure you will not please everyone - but you get to choose as it's a do-ocracy :-)
Phil Daintree webERP Admin Logic Works Ltd http://www.logicworks.co.nz |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





).