From 8c772dca05ad76920e2ab338125f88196b0b3359 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Mon, 20 Mar 2017 20:15:14 +0100 Subject: [PATCH] fix shipping cost in bill template Change-Id: I958980ee8af12181f5128813e2c2f1736c19323d --- commonlib/templates/billrender.cpp | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/commonlib/templates/billrender.cpp b/commonlib/templates/billrender.cpp index fb35cd5..bf6a856 100644 --- a/commonlib/templates/billrender.cpp +++ b/commonlib/templates/billrender.cpp @@ -100,6 +100,9 @@ QVariant MBillRenderer::getVariable(QString vn) if(vn=="SHIPPING")return m_order.shippingtype().value().description().value();else if(vn=="SHIPPINGPRICE"){ return m_order.shippingtype().value().cost().value(); + }else + if(vn=="SHIPPINGCOST"){ + return m_order.shippingcosts().value(); }else{ if(vn.contains(':')){ QStringList sl=vn.split(':'); -- 1.7.2.5