Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
Fixed update ticket trade value
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenedith committed Oct 1, 2016
1 parent 71221e3 commit 93e9274
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
13 changes: 1 addition & 12 deletions lib/client/updateTicket.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,7 @@ var buildForm = function buildForm(updateTicketRequest) {
var month = date.month() + 1;
var day = date.date();
var amount = updateTicketRequest.amount.value.split('.');

var trade = '';

switch (updateTicketRequest.trade) {
case receiptsModel.enum.Trade.HAIRDRESSING :
trade = '5602c71013287705788b4567';
break;
case receiptsModel.enum.Trade.PRIVATE_MEDIC_DENTAL :
trade = '5602c71013287705788b4568';
break;
default:
}
var trade = Trade.getIdFromTrade(updateTicketRequest.trade);

return {
nr_kasy: updateTicketRequest.pointOfSale,
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "receipts-lottery-client",
"version": "1.3.1",
"version": "1.4.0",
"description": "Receipts lottery client",
"main": "./index.js",
"dependencies": {
"assert-plus": "1.0.0",
"async": "2.0.1",
"cheerio": "0.22.0",
"moment-timezone": "0.5.5",
"receipts-model": "1.5.3",
"receipts-model": "1.6.0",
"request": "2.75.0",
"winston": "2.2.0",
"winston-loggly": "1.3.1"
Expand Down Expand Up @@ -42,9 +42,9 @@
"license": "MIT",
"homepage": "https://github.com/receipts/npm-receipts-lottery-client",
"engines": {
"node": ">=6.2.1"
"node": ">=6.7.0"
},
"readmeFilename": "README.md",
"_id": "receipts-lottery-client@1.3.1",
"_from": "receipts-lottery-client@^1.3.1"
"_id": "receipts-lottery-client@1.4.0",
"_from": "receipts-lottery-client@^1.4.0"
}

0 comments on commit 93e9274

Please sign in to comment.