Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47

Thread: automatic price & stock updates from Pastel Partner to MySQL website?

  1. #21
    Junior Member
    Join Date
    Sep 2011
    Location
    Midrand
    Posts
    22
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Right-clicking server properties when inside Pervasive Control Center brings up a list of properties of which "Communication Protocols" contains the port number.

    However, when I click on Communication Protocols the panel with the settings is nearly blank because of some redraw problem. After clicking repeatedly on the property list, the page showed properly and I was able to see the port number.

    Now I need to set up the router's port forwarding to achieve remote access and then start testing the setup via PHP ODBC queries.

  2. #22
    Site Caretaker Dave A's Avatar
    Join Date
    May 2006
    Location
    Durban, South Africa
    Posts
    22,659
    Thanks
    3,307
    Thanked 2,678 Times in 2,259 Posts
    Blog Entries
    12
    Sounds like you're making good progress.

  3. #23
    Junior Member
    Join Date
    Sep 2011
    Location
    Midrand
    Posts
    22
    Thanks
    7
    Thanked 3 Times in 3 Posts
    After some interruption, this project is moving forward again, hoping to complete it soon.

    I'm successfully accessing Pastel Partner remotely via PHP script. I can query the tables, view their columns and rows, etc.

    However, I'm not understanding how to access product price lists. I'm not a Pastel expert. All I understand is that Pastel installations have similar data structures.

    Here's a list of tables which I can access, but none of them appear to be a price list when I query its contents:

    AccountUser
    ActivityMaster
    AnalysisCodes
    BankDetails
    BICUsers
    BillingParameters
    BOMHeader
    BOMLines
    CashBookCurrency
    Category1099
    CompanyParameters
    CostCodeBudgets
    CostCodeLevelLinks
    CostCodeLevelNames
    CostCodeLevelSetup
    CostCodes
    CostCodeTransactions
    CurrencyFile
    CustomerCategories
    CustomerDiscount
    CustomerMaster
    CustSuppParameters
    DeliveryAddresses
    EmployeeActivities
    EmployeeMaster
    Euro
    FinancialCategories
    Fonts
    GAAP
    HistoryHeader
    HistoryLines
    HistoryTax
    HistoryUserDesc
    HistoryUserSetup
    InternetBank
    InternetBenf
    Inventory
    InventoryCategory
    InventoryGroups
    InventoryLink
    InventoryParameters
    JumpUserAccess
    LedgerBalances
    LedgerMaster
    LedgerParameters
    LedgerTransactions
    LinkHeader
    LinkLines
    MenuAccess
    MultiStore
    MultiStoreTrn
    Notes
    OpenItem
    POSAudit
    POSCashUp
    POSPaidOuts
    POSPayments
    POSSetup
    PreferredSupplier
    ProcessOptions
    ReceiptTransactions
    ReportCategories
    ReportExport
    ReportWriter
    SalesmanMaster
    SerialMaster
    SerialTransaction
    SupplierCategories
    SupplierMaster
    SystemParameters
    TaxBox
    TaxDescription
    TaxParameters
    TimesheetHead
    TimesheetLines
    Unposted
    UserGroups
    UserStore

  4. #24
    Diamond Member Neville Bailey's Avatar
    Join Date
    Nov 2010
    Location
    Westville, Durban
    Posts
    2,763
    Thanks
    44
    Thanked 452 Times in 397 Posts
    Selling prices are stored in the MultiStoreTrn data table, if I'm not mistaken.
    Neville Bailey - Sage Pastel Accounting Consultant
    www.accountingsoftwaresupport.co.za
    neville@accountingsoftwaresupport.co.za
    IronTree Online Solutions

    "Give every person more in use value than you take from them in cash value."
    WALLACE WATTLES (1860-1911)

  5. Thanks given for this post:

    Salad_Dressing (25-Jun-12)

  6. #25
    Junior Member
    Join Date
    Sep 2011
    Location
    Midrand
    Posts
    22
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Neville Bailey View Post
    Selling prices are stored in the MultiStoreTrn data table, if I'm not mistaken.
    Fantastic! Found the prices. Thanks Neville!

    MultiStoreTrn turns out to be one of the few tables I had not yet searched in because the name just does not sound like it would hold item prices!

  7. #26
    Junior Member
    Join Date
    Sep 2011
    Location
    Midrand
    Posts
    22
    Thanks
    7
    Thanked 3 Times in 3 Posts
    I'm now also looking for the Pastel table where the stock on hand & stock available is stored.

    Can anyone please help?

    For those interested in this project: I've installed XAMPP onto the Pastel server, allowing me to remotely execute local PHP scripts which perform the queries and return the data to the web server via the HTML post feature, all via PHP. This technique reduces the query time from 9 minutes to 6 seconds. This makes it feasible to run fairly frequent price and stock update scripts.

  8. Thanks given for this post:

    Dave A (25-Jun-12)

  9. #27
    Diamond Member Neville Bailey's Avatar
    Join Date
    Nov 2010
    Location
    Westville, Durban
    Posts
    2,763
    Thanks
    44
    Thanked 452 Times in 397 Posts
    Quote Originally Posted by Salad_Dressing View Post
    I'm now also looking for the Pastel table where the stock on hand & stock available is stored.
    You will find that in the MultiStoreTrn table as well, although you will need to do a calculation of a number of fields there in order to get the info you need.

    Stock on Hand is OpeningQty, plus QtyBuyThis01 to QtyBuyThis12, plus QtyAdjustThis01 to QtyAdjustThis12, minus QtySellThis01 to QtySellThis12.
    Neville Bailey - Sage Pastel Accounting Consultant
    www.accountingsoftwaresupport.co.za
    neville@accountingsoftwaresupport.co.za
    IronTree Online Solutions

    "Give every person more in use value than you take from them in cash value."
    WALLACE WATTLES (1860-1911)

  10. Thanks given for this post:

    Salad_Dressing (25-Jun-12)

  11. #28
    Junior Member
    Join Date
    Sep 2011
    Location
    Midrand
    Posts
    22
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Neville Bailey View Post
    You will find that in the MultiStoreTrn table as well, although you will need to do a calculation of a number of fields there in order to get the info you need.

    Stock on Hand is OpeningQty, plus QtyBuyThis01 to QtyBuyThis12, plus QtyAdjustThis01 to QtyAdjustThis12, minus QtySellThis01 to QtySellThis12.
    Thanks again Neville!

    Honestly, without your inputs I'd be in the dark since none of this is obvious.

    I'll run this calculation and have the Pastel lady check it.

  12. #29
    Junior Member
    Join Date
    Sep 2011
    Location
    Midrand
    Posts
    22
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Quote Originally Posted by Neville Bailey View Post
    You will find that in the MultiStoreTrn table as well, although you will need to do a calculation of a number of fields there in order to get the info you need.

    Stock on Hand is OpeningQty, plus QtyBuyThis01 to QtyBuyThis12, plus QtyAdjustThis01 to QtyAdjustThis12, minus QtySellThis01 to QtySellThis12.
    I have played with the formula in all the ways I can think of, but nothing I have done so far matches the actual Stock-on-Hand reported in Pastel Partner.

    Do QtyBuyThis01 to QtyBuyThis12 represent activity over the 12 months of the financial year?

    If so, would the formula for Stock-on-Hand for the 4th month be: OpeningQty + QtyBuyThis04 + QtyAdjustThis04 - QtySellThis04

    OR

    Should the formula be inclusive of all 12 columns, something like this:

    $tB = $qB01+$qB02+$qB03+$qB04+$qB05+$qB06+$qB07+$qB08+$q B09+$qB10+$qB11+$qB12; //QtyBuyThis
    $tA = $qA01+$qA02+$qA03+$qA04+$qA05+$qA06+$qA07+$qA08+$q A09+$qA10+$qA11+$qA12; //QtyAdjustThis
    $tS = -$qS01-$qS02-$qS03-$qS04-$qS05-$qS06-$qS07-$qS08-$qS09-$qS10-$qS11-$qS12; //QtySellThis
    $qOH = $qO + $tB + $tA - $tS; //qO = OpeningQty

  13. #30
    Diamond Member Neville Bailey's Avatar
    Join Date
    Nov 2010
    Location
    Westville, Durban
    Posts
    2,763
    Thanks
    44
    Thanked 452 Times in 397 Posts
    Quote Originally Posted by Salad_Dressing View Post
    If so, would the formula for Stock-on-Hand for the 4th month be: OpeningQty + QtyBuyThis04 + QtyAdjustThis04 - QtySellThis04
    No, it would be:

    OpeningQty + QtyBuyLast + QtyBuyThis01 + QtyBuyThis02 + QtyBuyThis03 + QtyBuyThis04 + QtyAdjustLast + QtyAdjustThis01 + QtyAdjustThis02 + QtyAdjustThis03 + QtyAdjustThis04 - QtySellLast - QtySellThis01 - QtySellThis02 - QtySellThis03 - QtySellThis04

    Sorry, in my previous post I forgot to mention that QtyBuyLast, QtyAdjustLast and QtySellLast must also be included. OpeningQty represents the quantity on hand at the beginning of the prior financial year.
    Neville Bailey - Sage Pastel Accounting Consultant
    www.accountingsoftwaresupport.co.za
    neville@accountingsoftwaresupport.co.za
    IronTree Online Solutions

    "Give every person more in use value than you take from them in cash value."
    WALLACE WATTLES (1860-1911)

  14. Thanks given for this post:

    Salad_Dressing (16-Jul-12)

Page 3 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. Replies: 3
    Last Post: 19-Jul-18, 11:49 AM
  2. [Question] Pastel Partner v 9.3.4
    By Martinco in forum Accounting Forum
    Replies: 6
    Last Post: 07-Jan-16, 05:17 PM
  3. Magento website developers - idea on price?
    By Pap_sak in forum Business Online Forum
    Replies: 8
    Last Post: 18-Nov-11, 04:48 PM
  4. [Question] Pastel Partner
    By Goop in forum General Business Forum
    Replies: 5
    Last Post: 15-Aug-10, 06:58 PM
  5. [Question] Help with Pastel Payroll Partner
    By celly007 in forum Tax Forum
    Replies: 3
    Last Post: 17-Sep-09, 10:25 AM

Did you like this article? Share it with your favourite social network.

Did you like this article? Share it with your favourite social network.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •