diff --git a/grails-app/domain/com/breigns/vms/Voucher.groovy b/grails-app/domain/com/breigns/vms/Voucher.groovy index 4449d1c..c19631c 100644 --- a/grails-app/domain/com/breigns/vms/Voucher.groovy +++ b/grails-app/domain/com/breigns/vms/Voucher.groovy @@ -30,7 +30,7 @@ class Voucher { } def getVoucherModel(){ - return new VoucherModel(sequenceNumber:sequenceNumber,barcodeAlpha:barcodeAlpha,value:value, + return new VoucherModel(id:id,sequenceNumber:sequenceNumber,barcodeAlpha:barcodeAlpha,value:value, validThru:validThru,client:voucherRequest.client) } } diff --git a/src/groovy/com/breigns/vms/VoucherModel.groovy b/src/groovy/com/breigns/vms/VoucherModel.groovy index ac2776b..9a380fb 100644 --- a/src/groovy/com/breigns/vms/VoucherModel.groovy +++ b/src/groovy/com/breigns/vms/VoucherModel.groovy @@ -1,6 +1,7 @@ package com.breigns.vms class VoucherModel { + Long id Integer sequenceNumber String barcodeAlpha Double value