Revision f7386a86
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/Controller/EmailJournal.pm | ||
---|---|---|
50 | 50 |
model => 'SL::DB::Reclamation', |
51 | 51 |
types => SL::DB::Reclamation::TypeData->valid_types(), |
52 | 52 |
}, |
53 |
Invoice => {
|
|
53 |
ArTransaction => {
|
|
54 | 54 |
controller => 'ar.pl', |
55 | 55 |
model => 'SL::DB::Invoice', |
56 | 56 |
types => [ |
57 | 57 |
'ar_transaction', |
58 |
], |
|
59 |
}, |
|
60 |
Invoice => { |
|
61 |
controller => 'is.pl', |
|
62 |
model => 'SL::DB::Invoice', |
|
63 |
types => [ |
|
58 | 64 |
'invoice', |
59 | 65 |
'invoice_for_advance_payment', |
60 | 66 |
'invoice_for_advance_payment_storno', |
... | ... | |
64 | 70 |
'credit_note_storno', |
65 | 71 |
], |
66 | 72 |
}, |
67 |
PurchaseInvoice => {
|
|
73 |
ApTransaction => {
|
|
68 | 74 |
controller => 'ap.pl', |
69 | 75 |
model => 'SL::DB::PurchaseInvoice', |
70 | 76 |
types => [ |
71 | 77 |
'ap_transaction', |
78 |
], |
|
79 |
}, |
|
80 |
PurchaseInvoice => { |
|
81 |
controller => 'ir.pl', |
|
82 |
model => 'SL::DB::PurchaseInvoice', |
|
83 |
types => [ |
|
72 | 84 |
'purchase_invoice', |
73 | 85 |
'purchase_credit_note', |
74 | 86 |
], |
... | ... | |
117 | 129 |
$::form->error(t8('You do not have permission to access this entry.')); |
118 | 130 |
} |
119 | 131 |
|
132 |
# TODO: what record types can be created, which are only available in workflows? |
|
120 | 133 |
my @record_types_with_info = (); |
121 | 134 |
for my $record_class ('SL::DB::Order', 'SL::DB::DeliveryOrder', 'SL::DB::Reclamation') { |
122 | 135 |
my $valid_types = "${record_class}::TypeData"->valid_types(); |
... | ... | |
217 | 230 |
$additional_params{action} = 'add_from_email_journal'; |
218 | 231 |
$additional_params{"${customer_vendor}_id"} = $customer_vendor_id; |
219 | 232 |
} else { |
220 |
$additional_params{action} = 'edit_from_email_journal';
|
|
233 |
$additional_params{action} = 'edit_with_email_journal_workflow';
|
|
221 | 234 |
$additional_params{id} = $record_id; |
222 | 235 |
} |
223 | 236 |
|
224 | 237 |
$self->redirect_to( |
225 | 238 |
controller => $RECORD_TYPE_TO_CONTROLLER{$record_type}, |
226 | 239 |
type => $record_type, |
227 |
from_id => $email_journal_id, |
|
228 |
from_type => 'email_journal', |
|
240 |
email_journal_id => $email_journal_id, |
|
229 | 241 |
email_attachment_id => $attachment_id, |
230 | 242 |
%additional_params, |
231 | 243 |
); |
Auch abrufbar als: Unified diff
EmailJournal: Workflow angepasst