From: Konrad Rosenbaum Date: Mon, 20 Mar 2017 19:15:14 +0000 (+0100) Subject: fix shipping cost in bill template X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=8c772dca05ad76920e2ab338125f88196b0b3359;p=web%2Fkonrad%2Fsmoke.git fix shipping cost in bill template Change-Id: I958980ee8af12181f5128813e2c2f1736c19323d --- 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(':');