From 31be0194d6e48dd4b60bd2fd8e84cb5ec8b8f5a4 Mon Sep 17 00:00:00 2001 From: Shanu Date: Thu, 10 Mar 2011 11:42:52 +0530 Subject: [PATCH] Shanu: Fixing the invoice error --- grails-app/domain/com/breigns/vms/Voucher.groovy | 2 +- src/groovy/com/breigns/vms/VoucherModel.groovy | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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