X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fquotation_pkg.pm;h=ea8f4e0c8d7d484c9a7d112576c292e1f2e0868e;hb=dcc681be581db6779de6cf71f94ad2ea28614bed;hp=3813fb22c3d5647faa1d3941dc10ef5f7ec506ea;hpb=f6abf4cd6d8e7a0121124e9394b5f28f5bc4daa5;p=freeside.git diff --git a/FS/FS/quotation_pkg.pm b/FS/FS/quotation_pkg.pm index 3813fb22c..ea8f4e0c8 100644 --- a/FS/FS/quotation_pkg.pm +++ b/FS/FS/quotation_pkg.pm @@ -103,8 +103,11 @@ otherwise returns false. =cut +use Data::Dumper; #XXX DEBUG sub insert { my ($self, %options) = @_; + warn Dumper($self); + warn Dumper(\%options); my $dbh = dbh; my $oldAutoCommit = $FS::UID::AutoCommit; @@ -251,6 +254,9 @@ sub estimate { # XXX the order of applying discounts is ill-defined, which matters # if there are percentage and amount discounts on the same package. + # + # but right now there can only be one discount on any package, so + # it doesn't matter foreach my $pkg_discount ($self->quotation_pkg_discount) { my $discount = $pkg_discount->discount;