PT Sterling Tulus Cemerlang
www.sterling-team.com

Whatsapp
+62-877-8655-5055

Email
sales-enquiry@sterling-team.com

Address
Sampoerna Strategic Square
South Tower Level 30
Jl Jend. Sudirman No. 45-46
Jakarta 12930 – Indonesia

500+ FREE Tips SAP Business One for you to Become SAP B1 Super User from Sterling Tulus Cemerlang (STEM)

Sales Order Document Approval Query by Overdue A/R Invoice

SAP Business One Tips Sales Order Document Approval Quey

Almost all companies using ERP Systems such as SAP Business One are wanted to restrict and analyze their sales through correct data submitted by their sales admin. Company management wants to know if their customers have outstanding invoices before they open another new sales order document. This will lead management to decide if these customers can buy products from them through the approval process in SAP Business One.

You can use the query below in Approval Templates menu so the approval process can be done in SAP Business One Hana version or SAP Business One SQL version:

/*HANA Query Version*/
SELECT DISTINCT 'True'
FROM "OINV" T0
WHERE T0."CardCode"=$[$4.0.0]
AND  T0."DocStatus" ='O'
AND T0."CANCELED"='N'
AND T0."DocDueDate" <  CURRENT_DATE

 

/*SQL Server Query Version*/
SELECT DISTINCT 'True'
FROM dbo.[OINV] T0
WHERE T0.[CardCode]=$[$4.0.0]
AND  T0.[DocStatus] ='O'
AND T0.[CANCELED]='N'
AND T0.[DocDueDate] <  GETDATE()

Also read:

Run Your Business With The Piece of Mind Using SAP Business One

This article was written by PT. Sterling Tulus Cemerlang
More details about SAP Business One,
email to: sales-enquiry@sterling-team.com or call +6221-5806336 or wa +6287786555055

, , , , , ,