Subversion Repositories SmartDukaan

Rev

Rev 27734 | Rev 28090 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 27734 Rev 28083
Line 734... Line 734...
734
 
734
 
735
		PdfModel pdfModel = new PdfModel();
735
		PdfModel pdfModel = new PdfModel();
736
		pdfModel.setCancelled(fofoOrder.getCancelledTimestamp() != null);
736
		pdfModel.setCancelled(fofoOrder.getCancelledTimestamp() != null);
737
		for (PaymentOptionTransaction paymentOptionTransaction : paymentOptionTransactions) {
737
		for (PaymentOptionTransaction paymentOptionTransaction : paymentOptionTransactions) {
738
			CustomPaymentOption cpi = new CustomPaymentOption();
738
			CustomPaymentOption cpi = new CustomPaymentOption();
739
			cpi.setAmount(paymentOptionTransaction.getAmount());
739
			cpi.setAmount(fofoOrder.getTotalAmount());
740
			cpi.setPaymentOption(
740
			cpi.setPaymentOption(
741
					paymentOptionRepository.selectById(paymentOptionTransaction.getPaymentOptionId()).getName());
741
					paymentOptionRepository.selectById(paymentOptionTransaction.getPaymentOptionId()).getName());
742
			paymentOptions.add(cpi);
742
			paymentOptions.add(cpi);
-
 
743
			break;
743
		}
744
		}
744
		List<FofoOrderItem> fofoOrderItems = this.getByOrderId(fofoOrder.getId());
745
		List<FofoOrderItem> fofoOrderItems = this.getByOrderId(fofoOrder.getId());
745
 
746
 
746
		pdfModel.setTitle("Retailer Invoice");
747
		pdfModel.setTitle("Retailer Invoice");
747
		if (fofoOrderItems.stream().findAny().get().getHsnCode().equals("NOGST")) {
748
		if (fofoOrderItems.stream().findAny().get().getHsnCode().equals("NOGST")) {