1.1.46 • Published 12 months ago

medusa-plugin-economic v1.1.46

Weekly downloads
3
License
MIT
Repository
github
Last release
12 months ago

e-conomic

Manage your commerce accounting with e-conomic.

This plugin is not ready for production use. Community contributions are highly appreciated. You can learn more about contributing in our repository.

Medusa Website | Medusa Repository

Features

  • Create draft and book e-conomic invoices automatically when an order is placed.
  • Provide endpoints to manually trigger booking and creating draft e-comonic invoices.

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-plugin-economic

2. Set the following environment variables in .env:

ECONOMIC_SECRET_TOKEN=<YOUR_SECRET_TOKEN>
ECONOMIC_AGREEMENT_TOKEN=<YOUR_AGREEMENT_TOKEN>
ECONOMIC_CUSTOMER_NUMBER_DK=<YOUR_CUSTOMER_NUMBER_DK>
ECONOMIC_CUSTOMER_NUMBER_EU=<YOUR_CUSTOMER_NUMBER_EU>
ECONOMIC_CUSTOMER_NUMBER_WORLD=<YOUR_CUSTOMER_NUMBER_WORLD>
ECONOMIC_UNIT_NUMBER=<YOUR_UNIT_NUMBER>
ECONOMIC_PAYMENT_TERMS_NUMBER=<YOUR_PAYMENT_TERMS_NUMBER>
ECONOMIC_LAYOUT_NUMBER=<YOUR_LAYOUT_NUMBER>
ECONOMIC_VATZONE_NUMBER_DK=<YOUR_VATZONE_NUMBER_DK>
ECONOMIC_VATZONE_NUMBER_EU=<YOUR_VATZONE_NUMBER_EU>
ECONOMIC_VATZONE_NUMBER_WORLD=<YOUR_VATZONE_NUMBER_WORLD>
ECONOMIC_RECIPIENT_NAME=<YOUR_RECIPIENT_NAME>

3. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // other plugins...
  {
    resolve: `medusa-plugin-economic`,
    options: {
      secret_token: process.env.ECONOMIC_SECRET_TOKEN,
      agreement_token: process.env.ECONOMIC_AGREEMENT_TOKEN,
      customer_number_dk: process.env.ECONOMIC_CUSTOMER_NUMBER_DK,
      customer_number_eu: process.env.ECONOMIC_CUSTOMER_NUMBER_EU,
      customer_number_world: process.env.ECONOMIC_CUSTOMER_NUMBER_WORLD,
      unit_number: process.env.ECONOMIC_UNIT_NUMBER,
      payment_terms_number: process.env.ECONOMIC_PAYMENT_TERMS_NUMBER,
      layout_number: process.env.ECONOMIC_LAYOUT_NUMBER,
      vatzone_number_dk: process.env.ECONOMIC_VATZONE_NUMBER_DK,
      vatzone_number_eu: process.env.ECONOMIC_VATZONE_NUMBER_EU,
      vatzone_number_world: process.env.ECONOMIC_VATZONE_NUMBER_WORLD,
      recipient_name: process.env.ECONOMIC_RECIPIENT_NAME,
    },
  },
]

Test the Plugin

1. Run the following command in the directory of the Medusa backend to run the backend:

npm run start

2. Try creating an order using the storefront or the Store APIs. Once the order is placed, a draft invoice will be created in e-conomic.

1.1.46

12 months ago

1.1.45

2 years ago

1.1.44

2 years ago

1.1.43-rc.0

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.43

2 years ago

1.1.42

2 years ago

1.1.40-alpha.0

3 years ago

1.1.39

3 years ago

1.1.39-alpha.0

3 years ago

1.1.38-alpha.0

3 years ago

1.1.38-test.0

3 years ago

1.1.38-next.0

3 years ago

1.1.39-alp.0

3 years ago

1.1.38-nxt.0

3 years ago

1.1.38-next.143

3 years ago

1.1.38-next.146

3 years ago

1.1.38-nxt.231

3 years ago

1.1.38-nxt.232

3 years ago

2.0.0-next.0

3 years ago

1.1.38-next.137

3 years ago

1.1.38-next.210

3 years ago

1.1.38-next.128

3 years ago

1.1.38-next.129

3 years ago

1.1.38-next.203

3 years ago

1.1.38-next.126

3 years ago

1.1.38-next.202

3 years ago

1.1.38

3 years ago

1.1.39-next.0

3 years ago

1.1.38-next.116

3 years ago

1.1.38-dev.119

3 years ago

1.1.38-dev.113

3 years ago

1.1.38-dev.122

3 years ago

1.1.34

4 years ago

1.1.37

4 years ago

1.1.36

4 years ago

1.1.35

4 years ago

1.1.30

4 years ago

1.1.33

4 years ago

1.1.32

4 years ago

1.1.31

4 years ago

1.1.29

4 years ago

1.1.26-next.46

4 years ago

1.1.28-next.0

4 years ago

1.1.26-next.19

4 years ago

1.1.25-meilis.0

4 years ago

1.1.24-meilis.37

4 years ago

1.1.24-meili.42

4 years ago

1.1.26

4 years ago

1.1.24-meili.40

4 years ago

1.1.24-meili.41

4 years ago

1.1.24-meili.37

4 years ago

1.1.24-next.40

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.24-next.36

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.18-next.16

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.18-alpha.6

4 years ago

1.1.18-alpha.9

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.18-next.10

4 years ago

1.1.18-next.7

4 years ago

1.1.18-alpha.4

4 years ago

1.1.12-next.9

4 years ago

1.1.14-next.0

4 years ago

1.1.17

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10-next.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.8-next.5

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4-next.23

4 years ago

1.1.4-alpha.16

4 years ago

1.1.3

4 years ago

1.1.3-next.23

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.12-alpha.186

4 years ago

1.0.12-alpha.177

4 years ago

1.0.12-alpha.35

5 years ago

1.0.13

5 years ago

1.0.12-alpha.33

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.7

5 years ago

1.0.1

5 years ago

1.0.1-beta.0

5 years ago

1.0.1-alpha.1

5 years ago

1.0.0

5 years ago

1.0.0-alpha.30

5 years ago

1.0.0-alpha.27

5 years ago

1.0.0-alpha.26

5 years ago

1.0.0-alpha.24

5 years ago

1.0.0-alpha.3

5 years ago