CAPITAL Office Business Software
CAPITAL Support Forum
FAQSearchMembersGroupsRegisterProfilePM'sLogin/Out
Item counts on sales orders

 
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation
View previous topic :: View next topic  
Author Message
COBS Tech Support



Joined: 09 Sep 2005
Posts: 651

PostPosted: Mon Dec 09, 2013 8:40 am    Post subject: Item counts on sales orders Reply with quote

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:

* &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)

:Loop

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

If nCount > 0
   Goto Loop
Endif

Echo("Total units on transaction: " + NTrim(nQTotal))
Back to top
View user's profile Send private message
COBS Tech Support



Joined: 09 Sep 2005
Posts: 651

PostPosted: Wed Oct 15, 2014 8:33 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CAPITAL Office Business Software Forum Index -> Scripting & Customisation All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

phpBB Template by Vereor
Protected by Anti-Spam ACP