POS SALES in Go Pro
alberto
Member Posts: 60
Hi,
does anyone know if it's possible to block automaticly the sales of quantity of an item (made by POS) if I haven't enought of it on inventory?
Thanks
does anyone know if it's possible to block automaticly the sales of quantity of an item (made by POS) if I haven't enought of it on inventory?
Thanks
0
Comments
-
codeunit 22, function InsertItemLedgEntry, second if statement then text005.
There you have it.
Thange that if statement just the way you like it."Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Thanks, but what I have exactly to change to block selling of the excess quantity that I don't have in my inventory?
WITH ItemJnlLine DO BEGIN
IF ItemLedgEntry.Open THEN BEGIN
IF (((ItemLedgEntry."Entry Type" IN
[ItemLedgEntry."Entry Type"::"Negative Adjmt.",
ItemLedgEntry."Entry Type"::Consumption]) AND
("Source Type" = "Source Type"::Item)) OR
(ItemLedgEntry."Entry Type" = ItemLedgEntry."Entry Type"::Transfer)) AND
(ItemLedgEntry.Quantity < 0)
THEN
ERROR(Text005,ItemLedgEntry."Item No.");0 -
I'm not quite sure, but try something like this:
WITH ItemJnlLine DO BEGIN IF ItemLedgEntry.Open THEN BEGIN (ItemLedgEntry.Quantity < 0) THEN ERROR(Text005,ItemLedgEntry."Item No.");
* Please test carefully!"Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions