Skip to content

Commit

Permalink
Bump to 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kf99916 committed Dec 25, 2017
1 parent 168156e commit 90fe6cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ const info = new IReceipt.ReceiptInfo(
receiptObject = new IReceipt.Receipt(info, items, amount);

window.console.log(receiptObject.toXML());

// Taiwan Receipt Lottery
// The format of the list of winners:
// 53925591 10510LC60123189...
// 53925591 10510LC60122037...
const winnersList = IReceipt.Receipt.parseWinnersList('{{WINNERS_LIST}}');
window.console.log(receiptObject.isWinning(winnersList));
```

### ReceiptInfo
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ireceipt",
"version": "0.1.0",
"version": "0.2.0",
"description":
"Generate Taiwan's electronic receipt including the layout and XML for National Taxation Bureau",
"main": "dist/ireceipt.js",
Expand Down

0 comments on commit 90fe6cb

Please sign in to comment.