From d4682f6e1b2148565362dd1412626567c98c7170 Mon Sep 17 00:00:00 2001 From: Fred Gleason Date: Thu, 16 Feb 2017 08:15:07 -0500 Subject: [PATCH] 2017-02-16 Fred Gleason * Modified the '', '', '', '' and '' fields in the return of the 'ListCart' and 'ListCarts' web methods to return a two-digit hours field. --- ChangeLog | 5 +++++ lib/rdcart.cpp | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index abfe9701..a59b56a6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15580,3 +15580,8 @@ 2017-02-10 Fred Gleason * Added a '' field to the output of the 'ListLog' web API method. +2017-02-16 Fred Gleason + * Modified the '', '', + '', '' and + '' fields in the return of the 'ListCart' + and 'ListCarts' web methods to return a two-digit hours field. diff --git a/lib/rdcart.cpp b/lib/rdcart.cpp index c1bff591..335d09ec 100644 --- a/lib/rdcart.cpp +++ b/lib/rdcart.cpp @@ -1056,15 +1056,15 @@ QString RDCart::xml(bool include_cuts,bool absolute, ret+=" "+RDXmlField("userDefined",q->value(11).toString()); ret+=" "+RDXmlField("usageCode",q->value(12).toInt()); ret+=" "+RDXmlField("forcedLength", - RDGetTimeLength(q->value(13).toUInt(),true)); + "0"+RDGetTimeLength(q->value(13).toUInt(),true)); ret+=" "+RDXmlField("averageLength", - RDGetTimeLength(q->value(14).toUInt(),true)); + "0"+RDGetTimeLength(q->value(14).toUInt(),true)); ret+=" "+RDXmlField("lengthDeviation", - RDGetTimeLength(q->value(15).toUInt(),true)); + "0"+RDGetTimeLength(q->value(15).toUInt(),true)); ret+=" "+RDXmlField("averageSegueLength", - RDGetTimeLength(q->value(16).toUInt(),true)); + "0"+RDGetTimeLength(q->value(16).toUInt(),true)); ret+=" "+RDXmlField("averageHookLength", - RDGetTimeLength(q->value(17).toUInt(),true)); + "0"+RDGetTimeLength(q->value(17).toUInt(),true)); ret+=" "+RDXmlField("cutQuantity",q->value(18).toUInt()); ret+=" "+RDXmlField("lastCutPlayed",q->value(19).toUInt()); ret+=" "+RDXmlField("enforceLength",RDBool(q->value(21).toString()));