From: G. Richardson Date: Fri, 14 Jul 2017 08:59:51 +0000 (+0200) Subject: Part Controller - Doku zu action_add_from_record X-Git-Tag: release-3.5.4~1024 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=065cf8d539872ce878b73d348a61c41b48579245;p=kivitendo-erp.git Part Controller - Doku zu action_add_from_record --- diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index da27a865e..461090bd9 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -1299,6 +1299,17 @@ parameter part_type as an action. Example: controller.pl?action=Part/add&part_type=service +=item C + +When adding new items to records they can be created on the fly if the entered +partnumber or description doesn't exist yet. After being asked what part type +the new item should have the user is redirected to the correct edit page. + +Depending on whether the item was added from a sales or a purchase record, only +the relevant part classifications should be selectable for new item, so this +parameter is passed on via a hidden parts_classification_type in the new_item +template. + =item C Saves the current part and then reloads the edit page for the part.