WebProWorld Dev Forum
Forms input area
Does anyone know a short script or tag that makes the input area (in my case the quantity) have a minimum value. I want my users not to be able to type in anything less than 6.
Click to read more...

How Did You Learn PHP / MySql
Feel free to comment how long it took to learn, the best way to learn, any resources you can point to or suggestions for those who are just now breaking into it.
Click to read more...

Odd code?
Why would a web page have a form that only has hidden values and one of the fields be over 11,000 characters of what looks like garbage?
Click to read more...

Recent Articles
Microsoft Navision Integration with Microsoft RMS
Microsoft Business Solutions Navision serves both European and American megamarkets.

SQLBase for Linux Novell Ready
Gupta Technologies its' SQLBase 9.0 for Linux product has just been certified "Novell Ready" for SUSE LINUX Enterprise Server 8 and 9.

Microsoft Great Plains – SQL Querying Trivia
This is beginner level SQL scripting article for DB Administrator, Programmer, IT Specialist.

Oracle Sets World Record
Oracle announced a world record 2-processor benchmark on Linux that placed Oracle Database 10g Standard Edition One (Oracle Standard Edition One) in the coveted Top Ten TPC-C by Price-Performance category. This record benchmark is the best price-performance ever on a 2-processor system, proving Oracle's ability to deliver exceptional performance and value on low-end servers.

Microsoft Navision Database: C/SIDE or MS SQL Server - Overview for IT Specialist
Microsoft Business Solutions promotes Navision (former Attain) on US market as excellent manufacturing applications (formerly it was promoting Great Plains).

MySQL Partner Program Continues to Grow
MySQL AB has signed a Value-Added Reseller (VAR) agreement with GoldenGate Software who will become a Certified ISV Partner for MySQL.

Oracle and Dell Announce Oracle Database 10g Standard Edition One for Windows Users
Solution Makes it Easier, Faster and More Cost-Effective to Use Leading Database.

Embarcadero Releases Embarcadero DBArtisan and DBArtisan Workbench 8.0
New Version of DBArtisan and DBArtisan Workbench Significantly Extends DBA Solutions for DB2, Oracle, SQL Server, and Sybase.

11.08.04


Programming Auto-apply In Accounts Receivable

By Andrew Karasev

Microsoft Great Plains is one of three Microsoft Business Solutions mid-market ERP products: Great Plains, Solomon, Navision.

Considering that Great Plains is now very good candidate for integration with POS application, such as Microsoft Retail Management System or RMS and Client Relation Systems, such as Microsoft CRM - there is common need in Great Plains customizations and integrations, especially on the level of MS SQL Server transact SQL queries and stored procedures. In this small article we'll show you how to create auto-apply utility, when you integrate huge number of sales transactions and payments. We will be working with RM20101 - Receivables Open File and RM20201 - Receivables Apply Open File. Let's see SQL code:

declare @curpmtamt numeric(19,5)
declare @curinvamt numeric(19,5)
declare @curpmtnum varchar(20)
declare @curinvnum varchar(20)
declare @curinvtype int
declare @curpmttype int
declare @maxid int
declare @counter int

-- Create a temporary table
create table #temp
(
     [ID] int identity(1,1) primary key,
     CUSTNMBR varchar(15),
     INVNUM varchar(20),
     INVTYPE int,
     PMTNUM varchar(20),
     PMTTYPE int,
     INVAMT numeric(19,5),
     PMTAMT numeric(19,5),
     AMTAPPLIED numeric(19,5)
)

create index IDX_INVNUM on #temp (INVNUM)
create index IDX_PMTNUM on #temp (PMTNUM)


Join Rebecca Wettemann, of Nucleus Research, Inc. for this FREE LIVE webcast. Rebecca will discuss how hosted CRM customers are achieving positive ROI and success in today's competitive marketplace. --> Click Here

-- Insert unapplied invoices and payments
insert into #temp
     (
     CUSTNMBR,
     INVNUM,
     INVTYPE,
     PMTNUM,
     PMTTYPE    ,
     INVAMT,
     PMTAMT,
     AMTAPPLIED
)
select
     CUSTNMBR = a.CUSTNMBR,
     INVNUM = b.DOCNUMBR,
     INVTYPE = b.RMDTYPAL,
     PMTNUM = a.DOCNUMBR,
     PMTTYPE = a.RMDTYPAL,
     INVAMT = b.CURTRXAM,
     PMTAMT = a.CURTRXAM,
     AMTAPPLIED = 0
from RM20101 a
     join RM20101 b on (a.CUSTNMBR = b.CUSTNMBR)
     join RM00101 c on (a.CUSTNMBR = c.CUSTNMBR)
where
     a.RMDTYPAL in (7, 8, 9) and
     b.RMDTYPAL in (1, 3) and
     a.CURTRXAM <> 0 and
     b.CURTRXAM <> 0
order by
     a.custnmbr,
     b.DOCDATE,
     a.DOCDATE,
     a.DOCNUMBR,
     b.DOCNUMBR


Read the Rest of the Article.


About the Author:
Andrew Karasev is Chief Technology Officer in Alba Spectrum Technologies – USA nationwide Microsoft CRM, Microsoft Great Plains customization company, based in Chicago, California, Texas, New York, Georgia and Florida and having locations in multiple states and internationally (www.albaspectrum.com), he is Dexterity, SQL, C#.Net, Crystal Reports and Microsoft CRM SDK developer.

About SQLproNews
SQLproNews is a collection of up to date tutorials and insightful articles designed to help SQL users of any skill level implement successful SQL systems and practices. SQL Strategies and Tactics for Business

SQLproNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
SQLproNews.com WirelessProNews.com
CProgrammingTrends.com SysAdminNews.com


-- SQLProNews is an iEntry, Inc. publication --
iEntry, Inc. 880 Corporate Drive, Lexington, KY 40503
2004 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

advertising info | news headlines | free newsletters | comments/feedback | submit article

SQL Strategies and Tactics for Business SQLproNews News Archives About Us Feedback SQLproNews Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact