× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




Hi Adam
if I understand your question correctly.
The weight of the order SHOULD include the weight of any and all boxes used
for the shipment.
As far as the weight are concerned if you hold the weight in pounds/kilos
to a number of decimal places then
move this value to another field with zero decimal places and compare

DWeighttrue s 9 2
DWeight s 9 0
Weight = Weighttrue;
if Weighttrue > Weight;
Weighttrue = Weight + 1;
endif;

However if you hold the weight in 2 seperate fields
DPound s 9 2
DOunces s 4 2

if Ounces > 0;
clear Ounces;
Pounds += 1;
endif;


Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxxxxx
P:(631) 244-2000 ext. 5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill





Adam West
<adamster@xxxxxxx
om> To
Sent by: rpg400-l@xxxxxxxxxxxx
rpg400-l-bounces@ cc
midrange.com
Subject
Technique for rounding up
05/19/2008 04:23
PM


Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>






HI What is a good way to round up a part that has the weight, for
shipping
purposes? Because when actually packed for UPS there is that extra
packing
box, etc.



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.