Logic for verifying the destination type of a purchase order

Source: Internet
Author: User
-- Validation Logic:
-- If not null, validate destination_type_code based on item_status,
-- Accrue_on_receipt_flag, transaction_flow_header_id;
--
-- Validation Business Rules
-- Item status
-- 'O' = outside processing item
-- Destination type must be SHOP FLOOR
-- 'E' = item stockable in the org
-- Destination type cannot be SHOP FLOOR
-- 'D' = item defined but not stockable in org
---Destination type must be EXPENSE
-- Null = item not defined in org
--
-- Accrue on receept
-- 'N'-destination type must be expense
-- 'Y'-if expense_accrual = PERIOD END
-- Then destination type code cannot be EXPENSE
-- Cannot be INVENTORY if item_id is null.
-- If SHIKYU item, then dest type code must be INVENTORY.

That is to say, the value of the destination type of the item depends on the status of the item, the acceptance identifier, and transaction_flow_header_id.

These verification logics are valid when purchasing orders are added, but are there any restrictions when purchasing orders.

The type of destination affects the generation of accounting subjects.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.