|
Posted by Alastair on August 13, 2007, 9:14 am
Please log in for more thread options Thanks very much Akber. I should point out that I had to make a few other
changes to the format subsequently (eg. I "lost" the Desc column and re-sized
the remaining two columns). I now have the receipt exactly the way I want it!
Thanks again.
"Akber Alwani" wrote:
> hi,
> Go to receipt.xml and find the "Transaction Detail" block there you can
> replace the whole block with following (then attached in so manager again the
> receipt format) this sometime require as it will not apply automatically the
> change one.:
> <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.62 </WIDTH>
> <TEXT> "Item" </TEXT>
> </COLUMNHEADER>
> <COLUMNHEADER>
> <ALIGNMENT> ">~" </ALIGNMENT>
> <WIDTH> PageWidth * 0.29 </WIDTH>
> <TEXT> "Amount" </TEXT>
> </COLUMNHEADER>
> <ROW>
> "==========================================|=================" </ROW>
> <FOR each="entry">
> <IF>
> <CONDITION> ShowLineDiscounts & (Entry.ExtendedDiscount
> <> 0) </CONDITION>
> <THEN>
> <IF>
> <CONDITION> (Receipt.TaxSystem = taxsystemVAT) & (Entry.Taxable = 0)
> </CONDITION>
> <THEN>
> <SET name="ExtendedExclsvPricePlusDiscount" type="vbcurrency">
> Entry.ExtendedExclsvPrice + Entry.ExtendedDiscount </SET>
> <ROW> Entry.Item.ItemLookupCode "|"
> ExtendedExclsvPricePlusDiscount </ROW>
> <ROW> Entry.Description </ROW>
> </THEN>
> <ELSE>
> <ROW> Entry.Item.ItemLookupCode "|"
> Entry.ExtendedFullPrice </ROW>
> <ROW> Entry.Description </ROW>
> </ELSE>
> </IF>
> <IF>
> <CONDITION> Entry.ExtendedDiscountNegative <> 0
> </CONDITION>
> <THEN>
> <ROW> "|Discount|"
> Entry.ExtendedDiscountNegative </ROW>
> </THEN>
> </IF>
> </THEN>
> <ELSE>
> <IF>
> <CONDITION> (Receipt.TaxSystem = taxsystemVAT) & (Entry.Taxable = 0)
> </CONDITION>
> <THEN>
> <ROW> Entry.Item.ItemLookupCode "|"
> Entry.ExtendedExclsvPrice </ROW>
> <ROW> Entry.Description </ROW>
> </THEN>
> <ELSE>
> <ROW> Entry.Item.ItemLookupCode "|"
> Entry.ExtendedPrice </ROW>
> <ROW> Entry.Description </ROW>
> </ELSE>
> </IF>
> </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>
> </THEN>
> </IF>
> </SUB>
> <SUB name="PrintTransactionTotals">
> <!--
>
>
> "Alastair" wrote:
>
> > I would like to create a receipt format which places the item code on a
line,
> > then drops a line and print the item description (my shop's item
descriptions
> > are quiote long). Can anybody help and also point me to where I can learn
> > more about changing the receipt formats in more advanced ways such as add
> > additional comment lines etc?
|