Welcome, Guest. Please Login.
05/19/25 at 14:10:52
News:
Home Help Search Login


Pages: 1
Send Topic Print
Deleting price codes (Read 746 times)
apsupplies
Browser
*


I love YaBB 1G -
SP1!

Posts: 34
Deleting price codes
06/08/05 at 11:48:42
 
Is there a way to delete ALL price codes in our system?  We have the add on to delete records for specific price codes but somehow some got entered under price code "0" and "100" which the program won't acknowledge.  We are looking to reload all new price codes but would like to remove the exsisting ones from our system.
Back to top
 
 
  IP Logged
Danimal
Member
**




Posts: 59
Gender: male
Re: Deleting price codes
Reply #1 - 06/08/05 at 12:25:03
 
Quote from apsupplies   on 06/08/05 at 11:48:42:
Is there a way to delete ALL price codes in our system?

Although I have never encountered this specific problem, I would probably go about it as such, with the understanding that you want to clear the entire price matrix table of your default company (BKICPMAT_B). I recommend backing up all of your files before attempting this, and only do so if you are comfortable with performing the operation. PROCEED WITH CAUTION!
 
Enter the Pervasive Control Center application, traverse the tree on the left to get to the table view of your DBA database and click the "Execute SQL Query" button (green arrow with pencil and ellipses). Enter the following exactly...
DELETE FROM "BKICPMAT_B"
...and click the "Execute Query" button (green arrow with document). With any luck the function will execute successfully and clear your price code entries.
Back to top
 
« Last Edit: 06/09/05 at 04:35:06 by Danimal »  
Email   IP Logged
Lynn_Pantic
Administrator
*****


evolution (n) -
gradual change to a
different form

Posts: 5663
Re: Deleting price codes
Reply #2 - 06/08/05 at 17:20:13
 
Be VERY careful.  This will probably work and UT-A, program DBAIF (DBAIF.RUN in EVO), file BKICPMAT will certainly work but Customer Contract Prices live in the same file and you will wipe them out too.
Back to top
 
 

Lynn Pantic
IS Tech Support
lynn@istechsupport.com
Email   IP Logged
Danimal
Member
**




Posts: 59
Gender: male
Re: Deleting price codes
Reply #3 - 06/09/05 at 05:04:09
 
True, if you want to delete price codes with the exception of those assigned to a specific customer (contract pricing), use the following...
DELETE FROM "BKICPMAT_B" WHERE BKIC_PMAT_CUST=''
...those are TWO single quotes (apostrophes) following the equal sign. I had to remove the asterisk from the statement as PCC does not require it and will display an error if included (driver not capable). Long live the syntax error. Wink
 
...and congratulations, Lynn, on your 2000th post! Grin
Back to top
 
 
Email   IP Logged
apsupplies
Browser
*


I love YaBB 1G -
SP1!

Posts: 34
Re: Deleting price codes
Reply #4 - 06/09/05 at 07:56:57
 
Thanks but I think we will try deleting just those that the program recognizes - I don't want to mess up contract pricing.  Speaking of - is there a program that will down load an entire spreadsheet of contract pricing or are we struck entering one at a time?
Back to top
 
 
  IP Logged
Danimal
Member
**




Posts: 59
Gender: male
Re: Deleting price codes
Reply #5 - 06/09/05 at 09:00:46
 
Well, do whatever works best for you. I actually performed this same operation this morning as we were in the process of updating our price codes, and it worked well (thus discovering the syntax problem). We are only working with about a dozen entries separate from our contract pricing, so entering the new records by hand through Evo was not a problem.
 
As far as importing from a spreadsheet, I am not aware of such a program; however, I do have a method that I could recommend using... but if you are not confident in performing the process above, I don't think that it will be worth my time describing. Best of luck to you! 8)
Back to top
 
 
Email   IP Logged
Lynn_Pantic
Administrator
*****


evolution (n) -
gradual change to a
different form

Posts: 5663
Re: Deleting price codes
Reply #6 - 06/09/05 at 09:16:43
 
Yes, IS Tech has an Import Price Code/Contract Pricing add-on.
Back to top
 
 

Lynn Pantic
IS Tech Support
lynn@istechsupport.com
Email   IP Logged
Pages: 1
Send Topic Print