Pflichtenhefte: show & Bearbeiten in eigenen Tab
[kivitendo-erp.git] / js / requirement_spec.js
index 896b93b..c84dc79 100644 (file)
@@ -1,4 +1,16 @@
-/* Functions used for the requirement specs tree view */
+/* Functions used for the requirement specs */
+
+// -----------------------------------------------------------------------------
+// ------------------------------ basic settings -------------------------------
+// -----------------------------------------------------------------------------
+
+function basic_settings_customer_changed(customer_ctrl, value_ctrl) {
+  $.get(
+    'controller.pl?action=Customer/get_hourly_rate',
+    { id: $(customer_ctrl).val() },
+    function(data) { if (data.hourly_rate_formatted) $(value_ctrl).val(data.hourly_rate_formatted); }
+  );
+}
 
 // -----------------------------------------------------------------------------
 // ------------------------------ the tree itself ------------------------------