Parcella Plugin

Parcella plugin is for creating parcella. Each parcella should have selected partner from address-book and it can contain basic and complex rules. Basic rule includes float number input fields, in complex rule can be infinite 'if' and 'than' conditions for complex calculation. The result of each rule is stored in json in feature manager account postPayment folder.

Demo version

Plugin options interface

interface PluginOptions = DAT2.Plugins.PluginBaseOptions & {
    contractId?: number;
    settings?: {
        networkType?: DAT2.NetworkType;
    };
};

Example

<!DOCTYPE html>
<html lang="en" translate="no">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" type="image/svg+xml" href="/vite.svg" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Dat Parcella</title>
    <script type="module" crossorigin src="https://plugins.wedat.eu/parcella/plugin.js"></script>
    <link rel="stylesheet" crossorigin href="https://plugins.wedat.eu/parcella/plugin.css" />
  </head>
  <body>
    <div id="root"></div>
    <script>
      document.addEventListener("DOMContentLoaded", () => {
        window.PARCELLA &&
          window.PARCELLA.init({
            selector: "#root",
            onComplete: (values) => {
              console.log(JSON.stringify(values, null, 4));
            },
          });
      });
    </script>
  </body>
</html>