🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

esr-code-line

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esr-code-line - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
package.json
{
"name": "esr-code-line",
"version": "1.0.1",
"version": "1.0.2",
"description": "A code line generator for orange payment slips used in Switzerland",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

# Code Line Generator for Orange Payment Slips used in Switzerland
This package contains utility functions for generating the code line on the orange payment slips used in Switzerland. The number is shown on the bottom right of the slip inside the white area:
This package contains utility functions for generating the code line on the orange payment slips used in Switzerland. The code is shown on the bottom right of the slip inside the white area:

@@ -20,5 +20,5 @@ ![Swiss orange inpayment slip with code line example](./doc/code-line-location.gif)

The technical specification is from chapter 5 of the [Postfinance manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf).
The technical specification is from chapter 5 of the [Postfinance manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf#page=23).
Please note that the **QR-Bill replaces this standard** (see [paymentstandards.ch](https://www.paymentstandards.ch/)). Depending on the project it may be viable to skip straight to the newer standard.
Please note that the **QR-Bill replaces this standard** (see [paymentstandards.ch](https://www.paymentstandards.ch/)). Depending on the project it may be viable to skip ahead to this newer one.

@@ -39,7 +39,7 @@ ## Installation

- `slipType` a code defining the type of the slip. E.g. "01" for a ISR in CHF.
- (red) `amountFrancsOrEuros` the main currency unit in either CHF or EUR.
- (red) `amountRappenOrCents` the fractional currency unit in Rappen or Cents.
- (green) `referenceNumber` the reference number with or without spaces.
- (blue) `customerNumber` the ISR customer number in CHF or EUR. Formatted VV-XXX-C (ISR code - serial number - check digit).
- ![Orange](https://via.placeholder.com/15/ffdf69/000000?text=+) `slipType` a code defining the type of the slip. E.g. "01" for a ISR in CHF. See section 5.1 of the [manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf#page=26).
- ![Red](https://via.placeholder.com/15/f03c15/000000?text=+) `amountFrancsOrEuros` the main currency unit in either CHF or EUR.
- ![Red](https://via.placeholder.com/15/f03c15/000000?text=+) `amountRappenOrCents` the fractional currency unit in Rappen or Cents.
- ![Green](https://via.placeholder.com/15/aed070/000000?text=+) `referenceNumber` the reference number with or without spaces.
- ![Blue](https://via.placeholder.com/15/2ea9da/000000?text=+) `customerNumber` the ISR customer number in CHF or EUR. Formatted VV-XXX-C. See section 5.1 of the [manual](https://www.postfinance.ch/content/dam/pfch/doc/cust/download/inpayslip_isr_man_en.pdf#page=26).

@@ -55,3 +55,3 @@ ```js

customerNumber: "01-162-8",
});
}); // returns "0100003949753>120000000000234478943216899+ 010001628>"
```

@@ -58,0 +58,0 @@