web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Text wrapping for Item Description in Sales Receipt.

(0) ShareShare
ReportReport
Posted on by

Hi,

 

We are having Item Descriptions around 25characters. However, after trying many permutations and combinations, I can fit only 15characters in the 40column sales receipt. So, I would like to know If Text wrapping is possible for Item Descriptions in Sales Receipts?

 

Thanks.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at

     Your best bet is to steal the space from the ILC and Price columns:

       =============================
       Transaction Details
       =============================
    -->
          <IF>
             <CONDITION> Transaction.Type &lt;&gt; transactionDrop &amp; Transaction.Type &lt;&gt; transactionPayout &amp;  Transaction.Type &lt;&gt; transactionNoSale &amp; Transaction.Type &lt;&gt; transactionAccountPayment </CONDITION>
             <THEN>
                <TABLE>
                   <FONT>      "Small"     </FONT>
                   <BORDER>    tbNone      </BORDER>
                   <COLUMNHEADER>
                      <ALIGNMENT>    "&lt;~"           </ALIGNMENT>
                      <WIDTH>        PageWidth * 0.19  </WIDTH>
                      <TEXT>         "Item"            </TEXT>
                   </COLUMNHEADER>
                   <COLUMNHEADER>
                      <ALIGNMENT>    "&lt;~"           </ALIGNMENT>
                      <WIDTH>        PageWidth * 0.62  </WIDTH>
                      <TEXT>         "Description"     </TEXT>
                   </COLUMNHEADER>
                   <COLUMNHEADER>
                      <ALIGNMENT>    "&gt;~"           </ALIGNMENT>
                      <WIDTH>        PageWidth * 0.19  </WIDTH>
                      <TEXT>         "Amount"          </TEXT>
                   </COLUMNHEADER>

  • Suggested answer
    Community Member Profile Picture
    on at

    Specifically, removing the tilde (~) in the Alignment tag will allow text wrapping. Details below from an old post:

    remove ~

    tilde sign from the Item.Desciption column from the Transaction Details

    section of the receipt.

    First find your receipt format, make a copy of the receipt then right click

    and choose edit. Press Ctrl-F and search for TransactionDetails (one word)

    then change this:

    <COLUMNHEADER>

    <ALIGNMENT> "<~" </ALIGNMENT>

    <WIDTH>PageWidth * 0.42 </WIDTH>

    <TEXT> "Description" </TEXT>

    </COLUMNHEADER>

    To look like this:

    <COLUMNHEADER>

    <ALIGNMENT> "<" </ALIGNMENT>

    <WIDTH> PageWidth * 0.42 </WIDTH>

    <TEXT> "Description" </TEXT>

    </COLUMNHEADER>

    Save your file then reassign the file in the Receipt Format section of SO

    Manager.

    Marc

  • Community Member Profile Picture
    on at

    Dear Matt and MarcR,

    Thanks to both of you for such a quick response. I could see the Item Description text wrapped in Journal but it is not in printed receipt.

    Please help!

    Below is my current script for Transaction Details:

      =============================

      Transaction Details

      =============================

    -->      <IF>

            <CONDITION> Transaction.Type <> transactionDrop & Transaction.Type <> transactionPayout &  Transaction.Type <> transactionNoSale & Transaction.Type <> transactionAccountPayment </CONDITION>

            <THEN>

               <TABLE>

                  <FONT>      "Small"     </FONT>

                  <BORDER>    tbNone      </BORDER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    "<"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.39  </WIDTH>

                     <TEXT>         "Item"            </TEXT>

                  </COLUMNHEADER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    "<~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.11  </WIDTH>

                     <TEXT>         "Qty"            </TEXT>

                  </COLUMNHEADER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    "<~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.25  </WIDTH>

                     <TEXT>         "U.Price"     </TEXT>

                  </COLUMNHEADER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    ">~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.25  </WIDTH>

                     <TEXT>         "Amount"          </TEXT>

                  </COLUMNHEADER>

                  <ROW> "==================|======|==============|==============" </ROW>

                  <FOR each="entry">

                     <IF>

                        <CONDITION> ShowLineDiscounts & (Entry.ExtendedDiscountPurchased <> 0) </CONDITION>

                        <THEN>

                           <ROW> Entry.Item.Binlocation "|" Entry.Quantity "|" Entry.Price "|" Entry.ExtendedFullPrice         </ROW>

                           <ROW> Entry.Item.Description </ROW>

    <SET name="QtySum" custom="true" description="QtySum" type="vbdouble">    QtySum + Entry.Quantity </SET>

                           <IF>

                              <CONDITION> Entry.ExtendedDiscountNegative <> 0 </CONDITION>

                              <THEN>

                                 <ROW> "|Discount|" Entry.ExtendedDiscountNegative  </ROW>

                              </THEN>

                           </IF>

                        </THEN>

                        <ELSE>

                           <ROW> Entry.Item.Binlocation "|" Entry.Quantity "|" Entry.Price "|" Entry.ExtendedPrice       </ROW>

                           <ROW> Entry.Item.Description </ROW>

    <SET name="QtySum" custom="true" description="QtySum" type="vbdouble">    QtySum + Entry.Quantity </SET>

                        </ELSE>

                     </IF>

    <IF>

    <CONDITION> Entry.Item.ItemType = itemtypeWeighed </CONDITION>

    <THEN>

    <ROW> "|" Entry.Quantity "" Entry.Item.UnitOfMeasure " @ " Entry.Price "/" Entry.Item.UnitOfMeasure "|"    </ROW>

    <IF>

    <CONDITION> Entry.WeightFromScale = 0 </CONDITION>

    <THEN>

    <ROW> "|Manual Weight|"    </ROW>

    </THEN>

    </IF>

    </THEN>

    <ELSE>

    <IF>

    <CONDITION> Entry.Quantity <> 1 </CONDITION>

    <THEN>

    <ROW> "|" Entry.Quantity " @ " Entry.Price "|"                                      </ROW>

    </THEN>

    </IF>

    </ELSE>

    </IF>

    <IF>

    <CONDITION> ((Entry.QuantityOnOrder <> 0) | (Entry.QuantityRTD <> 0)) & (Transaction.Type <> transactionQuote) </CONDITION>

    <THEN>

    <ROW> "|RTD:|"        Entry.QuantityRTD       "   "                                 </ROW>

    <ROW> "|On Order:|"   Entry.QuantityOnOrder   "   "                                 </ROW>

    <ROW> "|Picked up:|"  Entry.QuantityPurchased "   "                                 </ROW>

    <ROW> "||"                                                                          </ROW>

    </THEN>

    </IF>

    </FOR>

    </TABLE>

    <TABLE>

                  <FONT>      "Small"     </FONT>

                  <BORDER>    tbNone      </BORDER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    ">~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.39  </WIDTH>

                     <TEXT>         "Total Qty:"            </TEXT>

                  </COLUMNHEADER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    "<~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.11  </WIDTH>

                     <TEXT>         QtySum            </TEXT>

                  </COLUMNHEADER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    "<~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.25  </WIDTH>

                     <TEXT>         ""     </TEXT>

                  </COLUMNHEADER>

                  <COLUMNHEADER>

                     <ALIGNMENT>    ">~"           </ALIGNMENT>

                     <WIDTH>        PageWidth * 0.25  </WIDTH>

                     <TEXT>         ""          </TEXT>

                  </COLUMNHEADER>

                  </TABLE>

    </THEN>

    </IF>

    </SUB>

    <SUB name="PrintTransactionTotals">

    ----X----

    Regards,

    Sam.

  • Suggested answer
    Community Member Profile Picture
    on at

    I was able to get my description to wrap by using this code: 

                     <ALIGNMENT>    "&lt;"           </ALIGNMENT>
                      <WIDTH>        PageWidth * 0.42  </WIDTH>
                      <TEXT>         "Description"     </TEXT>

  • Community Member Profile Picture
    on at

    maybe the formatting of the web interface is interfering with the understanding,

    make sure the alignment is using the code: quote-ampersand-l-t-semicolon-quote "&lt;" and not the less than symbol like "<"

  • Suggested answer
    Craig Wood Profile Picture
    785 on at

    Are you using OPOS Drivers or Windows Drivers? If OPOS, you won't get it to text wrap no matter what you do. If you need text wrapping, or any other more advanced text formatting, you will have to install and use the Windows drivers.

    Craig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans