ACCPAC Tables - database

I'm doing some work with ACCPAC and don't have the benefit of any documentation.
Specifically, I'm looking for:
ARCUS
ARIBD
ARIBH
AROBL
If you could tell me what the columns are as well, that'd be doubly benificial.

Hope these help you out:
http://www.priceconsulting.ab.ca/cgi-bin/accpac.cgi?dat=ARCUS
http://www.priceconsulting.ab.ca/cgi-bin/accpac.cgi?dat=ARIBD
http://www.priceconsulting.ab.ca/cgi-bin/accpac.cgi?dat=ARIBH
http://www.priceconsulting.ab.ca/cgi-bin/accpac.cgi?dat=AROBL

If you have access to the database there should be a table that lists all of the tables and descriptions and another one with a complete field list. Look for the sysdflds table for field descriptions and sydtabl for table descriptions.

There is a method to their madness...
AH Sage Accpac HRMS Payroll Link
AP Accounts Payable
AR Accounts Receivable
AS Administrative Services
BK Bank Services
CP Canadian Payroll
CS Common Services
CT Cdn PR Tax Update Jul. 1, 2009
FA Sage FAS Integration
GL General Ledger
GP G/L Subledger Services
IC Inventory Control
OE Order Entry
PM Project and Job Costing
PO Purchase Orders
TX Tax Services
UP US Payroll
UT US PR Tax Update Oct. 1, 2009
ZC G/L Consolidations
ZI Intercompany Transactions

You need to use internet Explorer,
For all Modules like AR, OE etc..
http://sageaom.kcsvar.com/AOM2012/Advantage.xml
You can find all AR tables here :
http://sageaom.kcsvar.com/AOM2012/AR0036.xml
for Example , AROBL :
http://sageaom.kcsvar.com/AOM2012/AR.xml

Related

Postgresql query to compare tables and find inside and outside results

I currently have a pair of datasets. They are closely related with each other in that they share a common column called product.
So the first table would look like this (provider table)
Provider
Product
John
Apples
John
Bananas
Steve
Apples
Steve
Pears
The second table would look like this (buyer table)
Buyer
Product
Elton
Apples
Elton
Kiwis
Austin
Bananas
Austin
Melons
The relationship that I need is on how the products that every provider has, relates to the products that every buyer also owns. Or in a simpler manner, what are the products a provider could sell to a buyer and which are the ones he is missing, with a focus on what are the products the buyer requires.
For instance, the relationship of the current users in the table would tell me
John -> Elton = Apples(Could Sell), Kiwis (Missing)
John -> Austin = Bananas(Could Sell), Melons (Missing)
Steve -> Elton = Apples(Could Sell), Kiwis (Missing)
Steve -> Austin = Bananas(Missing), Melons (Missing)
The idea is to end un with a table that looks like this, and that contains every provider, along with every relationship to every buyer, ordered first by providers, and then by buyers.
Provider
Buyer
Selling product
Missing Product
John
Elton
Apples
Kiwis
John
Austin
Bananas
Melons
Steve
Elton
Apples
Kiwis
Steve
Austin
----
Bananas, Melons
I have used this type of queries to try to find the products that match but it is not working as intended
from (
select tss.product , buyer_table.buyer
from buyer_table
inner join provider_table tss
on buyer_table.product = tss.product
group by tss.provider , buyer_table.buyer
) t join buyer_table c on t.buyer= c.buyer
order by t.provider desc;
Additionally, I have not being able to find a way of finding the products that do not match and have it grouped by Provider and Buyer.
It is ok to build this use case by parts, for instance find the products that match and dont match first, and then join them together, or do it all in a single query.
What are the SQL queries that I need in order to create this type of functionality?

Zip code/Postal Code and location Database

Can you please suggest me a good provider for "City, State, Country, Zip code/postal code and geocode" Database. We have a requirement in our project for location search autocomplete. So, we need a database with complete locations list for US and Canada on priority and other countries in future.
Please suggest a location database provider with above mentioned fields, which has accurate data.
For Canada and the US see: https://geocoder.ca/?register=1&capostal=1
(
The Canadian Postal Code Dataset, last updated on 2018-07-01 00:15:15, with 5371 new records, has a total of 995676 unique postal codes.)
For your task you will most likely need: 2. Complete File - Canada Postal Address Database (20363095 records as of 2018-06-26 16:28:27)
As for the USA, fro the same source: the US Zip+4 Database Containing over 30Million Records
For USA you can populate data from the link below :
http://gomashup.com/cms/usa_zipcode_json

How to sum up the records on an Object with respect to a Month

Hello there Salesforce experts,
I have an Object Monthly_cc__c where there are records flowing in for each country every month.
Below are the fields
ID is the record ID
Processing Date
Processing Year
Processing Month
Distributor__c is the Master-Detal relation ship with Account.
Operating Company (IND, AUS, GBR...)
Now for every record there are the below fields
Personal CC
Monthly CC
For each Operating company these results are being sent and for the same Processing date we have various records for different Operating companies.
I would like to sum up the Personal cc for January for us to not complicate our SQL query.
Please let us know a solution on how to accomplish this task.
Thank you.
The expected result would be
For January, 2017
Personal CC = sum(AUS,IND,GBR'S Personal CC)
Monthly CC = Sum(AUS,IND,GBR'S Monthly CC)
You have lots of options here and final result also depends on whether your company uses currency management (is CurrencyIsoCode field present on all objects?).
This should be what you're asking for:
SELECT Distributor__c, SUM(Personal_CC__c) personal, SUM(Monthly_CC__c) monthly
FROM Monthly_CC__c
WHERE Processing_Year__c = 2017 AND Processing_Month__c = 1
GROUP BY Distributor__c
LIMIT 200
This should be bit more flexible:
SELECT Distributor__c, Processing_Year__c, Processing_Month__c, SUM(Personal_CC__c) personal, SUM(Monthly_CC__c) monthly
FROM Monthly_CC__c
GROUP BY Distributor__c, Processing_Year__c, Processing_Month__c
LIMIT 200
Read up about SOQL, GROUP BY & aggregate functions, GROUP BY ROLLUP().
Your data looks to be bit artificially split into day-month-year. If you have real date fields there are ways to GROUP BY CALENDAR_MONTH().
And last but not least - if this query results will be processed in Apex - you need to read about AggregateResult.
P.S. You should work on your questions. We're not writing code for you. What have you tried, what part you're stuck on? If you're completely new to salesforce and don't even know what to experiment with - start with SQOL-related Trailheads

How to do, 'Versioning with a History Table' in Flask SQLALchemy. Preferably with some code examples

My models are made of flask-sqlalchemy on top of postgresql. I want to keep track of changes made my models.
I have a employees table:
class Employee(db.Model):
__tablename__ = 'employees'
id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(60))
job_title = db.Column(db.String(60))
job_type = db.Column(db.String(60)) # teaching, IT, manager,
job_location = db.Column(db.String(60))
salary = db.Column(db.Numeric(15,2))
The salary of particular title of employees are increased from 30k to 35k at dec 2014, and to 40k at jan 2016.
And in some another part of my application say while calculating the revenue and balance sheet, the above employees.salary is used in the formula. So I should be able to use old salary 30k for any calculation involving dates before dec 2014, and 35k after that, up to jan 2016. Any detailed answer with codes related to this example I have is much appreciated, thank you.
I've been searching for how to do this, everywhere with no luck.

Cloud Vision billing/pricing inconsistency

I was just glossing over my billing history and to my surprise found out I've been charged $28.71 for Cloud Vision API Cloud Vision API Label Detection Operations. I'm really confused because it says I have "5356 counts".
The Cloud Vision pricing table lists 1001-1000000 units as $5.00 for Label Detection.
Is this a mistake on Google's billing or am I interpretting the pricing incorrectly? I've read over the description several times and am not sure how I could be misunderstanding the breakdown.
Price per 1000 units
If the count includes free quota then you have 4356 units. If the units are rounded up to 5000, then you have 5 units x $5 = 25 (+ tax?)
Pricing Chart
npe's answer is accurate. Adding more details that I have.
Had the same issue. I mailed the sales team and the
https://cloud.google.com/vision/
The tag they added to resolve any such confusions is : "Price per 1,000 units, by monthly usage"
Thanks
Suman

Resources