diff options
author | Mark Wells <mark@freeside.biz> | 2015-10-27 16:20:31 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-10-27 16:40:02 -0700 |
commit | e26187f37c2a2ad4ad199422faf9f32a0454b923 (patch) | |
tree | d1853014d0a66146bc496c9e7030e4728ca31f52 /FS/FS/quotation_pkg_discount.pm | |
parent | 1f1aaa835523e8c8a615f1d205c3cf2ca021c287 (diff) |
separate setup/recur quotation discounts, #14092
Diffstat (limited to 'FS/FS/quotation_pkg_discount.pm')
-rw-r--r-- | FS/FS/quotation_pkg_discount.pm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FS/FS/quotation_pkg_discount.pm b/FS/FS/quotation_pkg_discount.pm index 4389db2..1815294 100644 --- a/FS/FS/quotation_pkg_discount.pm +++ b/FS/FS/quotation_pkg_discount.pm @@ -45,14 +45,14 @@ for. discountnum (L<FS::discount>) -=item setup_amount +=item setuprecur -Amount that will be discounted from setup fees, per package quantity. +Whether this is a setup or recur discount. -=item recur_amount +=item amount -Amount that will be discounted from recurring fees in the first billing -cycle, per package quantity. +Amount that will be discounted from either setup or recur fees, per package +quantity. =back @@ -106,8 +106,8 @@ sub check { $self->ut_numbern('quotationpkgdiscountnum') || $self->ut_foreign_key('quotationpkgnum', 'quotation_pkg', 'quotationpkgnum' ) || $self->ut_foreign_key('discountnum', 'discount', 'discountnum' ) - || $self->ut_moneyn('setup_amount') - || $self->ut_moneyn('recur_amount') + || $self->ut_enum('setuprecur', ['setup', 'recur']) + || $self->ut_moneyn('amount') ; return $error if $error; |