home *** CD-ROM | disk | FTP | other *** search
- SBP
- ╜ Stock control program
- ┤ Ö"PRODUCT": ╜ ***** Necessary to handle Edit selection off menu
-
- stmenu: Γ e: ┤ £"stmenu"
- vsetup
- stend: Æ
-
- setup: ╜ set up prompts for forms
- ╜ ********************************************************************
- ╩ É e
- │ _ wsterrtrap
- ╜ ********************************************************************
- ├
-
-
-
-
- supcntrl: ╜ ************ pushbutton clicked from menu ******
- ╜ ******************** load Supplier Section *********
- ¿"supcntrl"
- Æ
- qrcntrl: ╜ ************* pushbuttons clicked from menu ****
- ╜ ******************** load Query/Report/Update section*
- ä"qrcntrl"
- Æ
-
-
- ╜ *************************************************************
- ╜ Product - Entry and Amend and View
- ╜ *************************************************************
-
- prodent: ╜ ************ REM pushbutton clicked from menu **
- ╜ ******************** Add a New Product *************
- ┤ £"prodent"
- vsetup
- ü £: ö1,0
- Æ
-
- prodedit: ╜ *********** REM pushbutton clicked ************
- ╜ ******************** go from browse to Amend *******
- key1$ Product_code.product
- Γ e
- ┤ £"prodamd"
- vsetup
- ╔ £ Ñkey1$: £
- Æ
-
- getprod: ╜ ************* On entry or Amend Forms *******
- ╜ ********************* After entry of Product-code ***
- ╜ ********************* Also on Movement-Postings *****
- key1$ product_code.product
- í O J(key1$,product_code.product) p
- ┬"Product file","Select a Product (or <CANCEL> to Enter New)",20,a%,key1$,60,product_code.product,description.product
- ía% 0 p ┤ £"prodent": ü £: ö: Æ
- Æ í
- ╔ £ Ñkey1$: £
- Æ
-
- ├
-
- prodview: ╜ ************ pushbutton clicked ****************
- ╜ ********************* goto browse form **************
- Γ │: ┤ £"prodview"
- vsetup: ╔ £ Ñkey1$: £
- Æ
-
- ╜ *************************************************************
- ╜ Stock Movement Entry and View Phase
- ╜ *************************************************************
-
- stpostnu: ╜ ** pushbutton clicked **************************
- ╜ *********** A New Posting ***************************
- Γ │: ┤ £"stmovpst": vsetup
- ü £: ö1,9
- Æ
-
-
- stpost: ╜ **** the Posting phase ***********************
- ╜ *********** Now Calculate and Post Effects of Entry *
- ╜ *********** Arrived at from end Of Movement Entry ***
- ╜ ********** unpack the 'effect' fields **************
- ╔ ÑMovement_type.stmovmnt Ö"sttype"
- x% Effect_On_Order.sttype: ╜ ** On Order *************
- y$ "On Order": vstunp
- On_order.product On_order.Product v%
- x% Effect_In_Stock.sttype: ╜ ** In Stock *************
- y$ "In Stock": vstunp
- In_Stock.Product In_stock.Product v%
- íMovement_Type.STType "GRN" p
- ╜ ***** Goods Received - New Unit Price ? ***********
- ┬"Update Product Unit Cost ?","",21,a%
- ía% punit_cost.product Movement_Value.STMovmnt Movement_Qty.StMovmnt
- Æ í
- íMovement_type.sttype "CDS" p
- ╜ ***** Goods Dispatched - Update Sales Statistics **
- Sales_Val_per.product Sales_Val_per.product Movement_value.StMovmnt
- Sales_Val_yr.product Sales_Val_yr.product Movement_value.StMovmnt
- Sales_qty_per.product Sales_qty_per.product Movement_qty.StMovmnt
- Sales_qty_yr.product Sales_qty_yr.product Movement_qty.StMovmnt
- Æ í
- x% Effect_Alloc.sttype: ╜ ***** Allocated *************
- y$ "Allocated": vstunp
- Allocated.product Allocated.Product v%
- ╠ Ö"Product"
- ╠ £
- ü £
- Æ
-
-
- stunp: ╜ **** get answer if Operator entry required ****
- íx% 1 p
- stunp1: ┬"Please enter effect on " y$,"( '+' or '-' or CANCEL>)",4,a%,a$,1
- ía% 0 pa$ " "
- x% (a$ "+") {1:(a$ "-") { 1:(a$ " ") {0:99
- íx% 2 p wstunp1
- Æ í
- v% Movement_qty.stmovmnt x%
- ├
-
- stmoview: ╜ ************ pushbutton clicked ***************
- ╜ ********************* View Movement Transactions ***
- key1$ product_code.product
-
- Γ │: ┤ £"stmoview"
- vsetup
- ╔ £ Ñkey1$
- Æ
-
- prgroup: ╜ ************** product group entry ************
- Γ e
- ┤ £"prgroup"
- vsetup
- Æ
-
- prodgrview: ╜ *********** view product groups as transactions ****
- Γ │
- ┤ £"prgrpvu"
- vsetup
- Æ
-
- sterrtrap: í & 11 p Æ
- í & 8
- & 10 p y
- í & 50 p Æ
- ┬"ERROR " ( &,"9999"), (( &),2,a%: Æ
-
-
-
-