Revision 9b6dbb2e
Von Jan Büren vor fast 4 Jahren hinzugefügt
SL/BackgroundJob/ConvertTimeRecordings.pm | ||
---|---|---|
125 | 125 |
=head1 CONFIGURATION |
126 | 126 |
|
127 | 127 |
Some data can be provided to configure this backgroung job. |
128 |
If there is user data and it cannot be validated the background job |
|
129 |
returns a error messages. |
|
128 | 130 |
|
129 | 131 |
=over 4 |
130 | 132 |
|
... | ... | |
156 | 158 |
|
157 | 159 |
customernumbers: [c1,22332,334343] |
158 | 160 |
|
161 |
=item C<part_id> |
|
162 |
|
|
163 |
The part id of a time based service which should be used to |
|
164 |
book the times. If not set the clients config defaults is used. |
|
165 |
|
|
166 |
=item C<rounding> |
|
167 |
|
|
168 |
If set the 0 no rounding of the times will be done otherwise |
|
169 |
the times will be rounded up to th full quarters of an hour, |
|
170 |
ie. 0.25h 0.5h 0.75h 1.25h ... |
|
171 |
Defaults to rounding true (1). |
|
172 |
|
|
173 |
=item C<link_project> |
|
174 |
|
|
175 |
If set the job tries to find a previous Order with the current |
|
176 |
customer and project number and tries to do as much automatic |
|
177 |
workflow processing as the UI. |
|
178 |
Defaults to off. If set to true (1) the job will fail if there |
|
179 |
is no Sales Orders which qualifies as a predecessor. |
|
180 |
Conditions for a predeccesor: |
|
181 |
|
|
182 |
* Global project_id must match time_recording.project_id OR data.project_id |
|
183 |
* Customer name must match time_recording.customer_id OR data.customernumbers |
|
184 |
* The sales order must have at least one or more time related services |
|
185 |
* The Project needs to be valid and active |
|
186 |
|
|
187 |
The job doesn't care if the Sales Order is already delivered or closed. |
|
188 |
If the sales order is overdelivered some organisational stuff needs to be done. |
|
189 |
The sales order may also already be closed, ie the amount is fully billed, but |
|
190 |
the services are not yet fully delivered (simple case: 'Payment in advance'). |
|
191 |
|
|
192 |
Hint: take a look or extend the job CloseProjectsBelongingToClosedSalesOrder for |
|
193 |
further automatisation of your organisational needs. |
|
194 |
|
|
195 |
|
|
196 |
=item C<project_id> |
|
197 |
|
|
198 |
Use this project_id instead of the project_id in the time recordings. |
|
199 |
|
|
159 | 200 |
=back |
160 | 201 |
|
161 | 202 |
=head1 AUTHOR |
Auch abrufbar als: Unified diff
CTR: POD um neue Parameter erweitert