This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
discount_a_service [2015/02/25 13:49] Jaco van Wyk |
discount_a_service [2015/02/25 13:50] Jaco van Wyk |
||
---|---|---|---|
Line 22: | Line 22: | ||
//$service->data-prorata_discount// | //$service->data-prorata_discount// | ||
- | We check if these are set before we proceed to add a discount line to the invoice. Discounts are set as fractions and to provide your client with 25% discount you will need to set the relevant custom field to 0.25. Discounts will take into account the special quantity field type on a service and the calculation for the discount line is based on $service->quantity * [$service->data-"type"_discount]. | + | We check if these are set before we proceed to add a discount line to the invoice. Discounts are set as fractions and to provide your client with 25% discount you will need to set the relevant custom field to 0.25. |
- | An example of this rule may be seen below: | + | **Important:** Discounts will take into account the special quantity field type on a service and the calculation for the discount line is based on $service->quantity * [$service->data-"type"_discount]. |
+ | |||
+ | ==== Example: ==== | ||
**Please note:** This rule is quite complex as it also contains prorated logic which may not be required in all instances. | **Please note:** This rule is quite complex as it also contains prorated logic which may not be required in all instances. |