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.
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.
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?
|
|
|
|
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. |