1.1.45 • Published 14 days ago

medusa-plugin-economic v1.1.45

Weekly downloads
3
License
MIT
Repository
github
Last release
14 days 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.45

11 months ago

1.1.44

1 year ago

1.1.43-rc.0

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.40-alpha.0

1 year ago

1.1.39

1 year ago

1.1.39-alpha.0

2 years ago

1.1.38-alpha.0

2 years ago

1.1.38-test.0

2 years ago

1.1.38-next.0

2 years ago

1.1.39-alp.0

2 years ago

1.1.38-nxt.0

2 years ago

1.1.38-next.143

2 years ago

1.1.38-next.146

2 years ago

1.1.38-nxt.231

2 years ago

1.1.38-nxt.232

2 years ago

2.0.0-next.0

2 years ago

1.1.38-next.137

2 years ago

1.1.38-next.210

2 years ago

1.1.38-next.128

2 years ago

1.1.38-next.129

2 years ago

1.1.38-next.203

2 years ago

1.1.38-next.126

2 years ago

1.1.38-next.202

2 years ago

1.1.38

2 years ago

1.1.39-next.0

2 years ago

1.1.38-next.116

2 years ago

1.1.38-dev.119

2 years ago

1.1.38-dev.113

2 years ago

1.1.38-dev.122

2 years ago

1.1.34

2 years ago

1.1.37

2 years ago

1.1.36

2 years ago

1.1.35

2 years ago

1.1.30

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.29

3 years ago

1.1.26-next.46

3 years ago

1.1.28-next.0

3 years ago

1.1.26-next.19

3 years ago

1.1.25-meilis.0

3 years ago

1.1.24-meilis.37

3 years ago

1.1.24-meili.42

3 years ago

1.1.26

3 years ago

1.1.24-meili.40

3 years ago

1.1.24-meili.41

3 years ago

1.1.24-meili.37

3 years ago

1.1.24-next.40

3 years ago

1.1.25

3 years ago

1.1.24

3 years ago

1.1.24-next.36

3 years ago

1.1.23

3 years ago

1.1.22

3 years ago

1.1.18-next.16

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.18-alpha.6

3 years ago

1.1.18-alpha.9

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.18-next.10

3 years ago

1.1.18-next.7

3 years ago

1.1.18-alpha.4

3 years ago

1.1.12-next.9

3 years ago

1.1.14-next.0

3 years ago

1.1.17

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10-next.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.8-next.5

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4-next.23

3 years ago

1.1.4-alpha.16

3 years ago

1.1.3

3 years ago

1.1.3-next.23

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.12-alpha.186

3 years ago

1.0.12-alpha.177

3 years ago

1.0.12-alpha.35

3 years ago

1.0.13

3 years ago

1.0.12-alpha.33

3 years ago

1.0.12

3 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.7

4 years ago

1.0.1

4 years ago

1.0.1-beta.0

4 years ago

1.0.1-alpha.1

4 years ago

1.0.0

4 years ago

1.0.0-alpha.30

4 years ago

1.0.0-alpha.27

4 years ago

1.0.0-alpha.26

4 years ago

1.0.0-alpha.24

4 years ago

1.0.0-alpha.3

4 years ago