Page 1 of 1

Item counts on sales orders

Posted: Mon Dec 09, 2013 8:40 am
by COBS Tech Support
Joanne wrote:Just wondering if it would be possible to have a product counter or something visible on the order taking screen? Customers are always asking us for the total number of meals they have ordered and sometimes they order $400 worth or so, all we can see is the total price and have to count the meals manually, just wondering if there is something you can do.
Please let me know if this doesn’t make sense.

This can be done using a script called ORDER1.MAC and it should be copied into your ..\CAPITAL folder.

Note: if you already have a script called ORDER1.MAC then call it ORDER2.MAC or so on.

Then to have it count, from the sales order, select from the menu Run Task|Total Units On Transaction.

(Keep in mind if you have other items on the order besides the meals, the count may then not be useful or accurate.)

Here is the script:

Code: Select all

* &Total Units On Transaction

* Script Example:

* Calculate the total number of units found on a
* transaction

Declare nQTotal Type Number
Declare nCount  Type Number

nQTotal := 0
nCount  := ReadItemValue("QTY", -1)


nQTotal := nQTotal + ReadItemValue("QTY", nCount)
nCount  := nCount - 1

If nCount > 0
   Goto Loop

Echo("Total units on transaction: " + NTrim(nQTotal))

Posted: Wed Oct 15, 2014 8:33 am
by COBS Tech Support
Further to the above, CAPITAL Business Manager 8.6 and above has a built-in product/line count feature for users who have an Enterprise licence or higher.