Revision 9508e215
Von Werner Hahn vor etwa 6 Jahren hinzugefügt
SL/Controller/CustomerVendor.pm | ||
---|---|---|
10 | 10 |
use SL::Helper::Flash; |
11 | 11 |
use SL::Locale::String; |
12 | 12 |
use SL::Controller::Helper::GetModels; |
13 |
use SL::Controller::Helper::ReportGenerator; |
|
14 |
use SL::Controller::Helper::ParseFilter; |
|
13 | 15 |
|
14 | 16 |
use SL::DB::Customer; |
15 | 17 |
use SL::DB::Vendor; |
... | ... | |
25 | 27 |
use SL::DB::FollowUpLink; |
26 | 28 |
use SL::DB::History; |
27 | 29 |
use SL::DB::Currency; |
30 |
use SL::DB::Invoice; |
|
31 |
|
|
32 |
use Data::Dumper; |
|
28 | 33 |
|
29 | 34 |
use Rose::Object::MakeMethods::Generic ( |
30 | 35 |
'scalar --get_set_init' => [ qw(customer_models vendor_models) ], |
... | ... | |
466 | 471 |
print $::form->redirect_header($url); |
467 | 472 |
} |
468 | 473 |
|
469 |
|
|
470 | 474 |
sub action_get_delivery { |
471 | 475 |
my ($self) = @_; |
472 | 476 |
|
... | ... | |
941 | 945 |
], |
942 | 946 |
with_objects => ['follow_up'], |
943 | 947 |
); |
944 |
|
|
948 |
|
|
949 |
$self->{open_items} = SL::DB::Manager::Invoice->get_all_count( |
|
950 |
query => [ |
|
951 |
customer_id => $self->{cv}->id, |
|
952 |
paid => {lt_sql => 'amount'}, |
|
953 |
], |
|
954 |
); |
|
955 |
|
|
945 | 956 |
$self->{template_args} ||= {}; |
946 | 957 |
|
947 | 958 |
$::request->{layout}->add_javascripts('kivi.CustomerVendor.js'); |
Auch abrufbar als: Unified diff
Kundenstatistik: erster commit ohne Webtemplates