Share via


Table "Purchases & Payables Setup"

ID 312
Namespace: Microsoft.Purchases.Setup

Properties

Name Value
Caption Purchases & Payables Setup
DrillDownPageID Page Microsoft.Purchases.Setup."Purchases & Payables Setup"
LookupPageID Page Microsoft.Purchases.Setup."Purchases & Payables Setup"
DataClassification CustomerContent

Fields

Name Type Description
"Primary Key" Code[10]
"Discount Posting" Option
"Receipt on Invoice" Boolean
"Invoice Rounding" Boolean
"Ext. Doc. No. Mandatory" Boolean
"Vendor Nos." Code[20]
"Quote Nos." Code[20]
"Order Nos." Code[20]
"Invoice Nos." Code[20]
"Posted Invoice Nos." Code[20]
"Credit Memo Nos." Code[20]
"Posted Credit Memo Nos." Code[20]
"Posted Receipt Nos." Code[20]
"Blanket Order Nos." Code[20]
"Calc. Inv. Discount" Boolean
"Appln. between Currencies" Option
"Copy Comments Blanket to Order" Boolean
"Copy Comments Order to Invoice" Boolean
"Copy Comments Order to Receipt" Boolean
"Allow VAT Difference" Boolean
"Calc. Inv. Disc. per VAT ID" Boolean
"Posted Prepmt. Inv. Nos." Code[20]
"Posted Prepmt. Cr. Memo Nos." Code[20]
"Check Prepmt. when Posting" Boolean
"Prepmt. Auto Update Frequency" Option
"Default Posting Date" Enum Microsoft.Foundation.Enums."Default Posting Date"
"Default Qty. to Receive" Option

Specifies the default value for the Qty. to Receive field on purchase order lines and the Return Qty. to Ship field on purchase return order lines. If you choose Blank, the quantity to receive is not automatically calculated.

"Post with Job Queue" Boolean
"Job Queue Category Code" Code[10]
"Job Queue Priority for Post" Integer
"Post & Print with Job Queue" Boolean
"Job Q. Prio. for Post & Print" Integer
"Notify On Success" Boolean
"Allow Document Deletion Before" Date
"Report Output Type" Enum Microsoft.Foundation.Enums."Setup Report Output Type"
"Document Default Line Type" Enum Microsoft.Purchases.Document."Purchase Line Type"
"Default G/L Account Quantity" Boolean
"Archive Quotes" Option
"Archive Orders" Boolean
"Archive Blanket Orders" Boolean
"Archive Return Orders" Boolean
"Ignore Updated Addresses" Boolean
"Create Item from Item No." Boolean
"Copy Vendor Name to Entries" Boolean
"Copy Inv. No. To Pmt. Ref." Boolean
"Disable Search by Name" Boolean
"Allow Multiple Posting Groups" Boolean
"Check Multiple Posting Groups" Enum Microsoft.Finance.ReceivablesPayables."Posting Group Change Method"
"P. Invoice Template Name" Code[10]
"P. Cr. Memo Template Name" Code[10]
"P. Prep. Inv. Template Name" Code[10]
"P. Prep. Cr.Memo Template Name" Code[10]
"IC Purch. Invoice Templ. Name" Code[10]
"IC Purch. Cr. Memo Templ. Name" Code[10]
"Copy Line Descr. to G/L Entry" Boolean
"Debit Acc. for Non-Item Lines" Code[20]
"Credit Acc. for Non-Item Lines" Code[20]
"Auto Post Non-Invt. via Whse." Enum Microsoft.Warehouse.Structure."Non-Invt. Item Whse. Policy"
"Posted Return Shpt. Nos." Code[20]
"Copy Cmts Ret.Ord. to Ret.Shpt" Boolean
"Copy Cmts Ret.Ord. to Cr. Memo" Boolean
"Return Order Nos." Code[20]
"Return Shipment on Credit Memo" Boolean
"Exact Cost Reversing Mandatory" Boolean
"Price Calculation Method" Enum Microsoft.Pricing.Calculation."Price Calculation Method"
"Price List Nos." Code[20]
"Allow Editing Active Price" Boolean
"Default Price List Code" Code[20]
"Link Doc. Date To Posting Date" Boolean
"Posting Date Check on Posting" Boolean
"Check Doc. Total Amounts" Boolean

Specifies if you want the Doc. Amount Incl. VAT field in Purchase Invoice and Purchase Credit Memo to be compared to the sum of the VAT amounts fields in the purchase lines. If the amounts are not the same, you will be notified when posting the document. The totals will always be checked for invoices received from e-documents.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

GetRecordOnce

procedure GetRecordOnce()

JobQueueActive

procedure JobQueueActive(): Boolean

Returns

Type Description
Boolean

ShouldDocumentTotalAmountsBeChecked

procedure ShouldDocumentTotalAmountsBeChecked(PurchaseHeader: Record "Purchase Header"): Boolean

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Boolean

CanDocumentTotalAmountsBeEdited

procedure CanDocumentTotalAmountsBeEdited(PurchaseHeader: Record "Purchase Header"): Boolean

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Boolean

Events

OnAfterShouldDocumentTotalAmountsBeChecked

Event to customize whether the document total amounts should be checked or not. If the system is configured to check the document totals, it will be checked regardless of the code executed in this event. When using this event, consider that it can have multiple subscribers: it's a good practice to check the value that ShouldDocumentTotalAmountsBeChecked has before changing it.

[IntegrationEvent(False,False)]
local procedure OnAfterShouldDocumentTotalAmountsBeChecked(PurchaseHeader: Record "Purchase Header", var ShouldDocumentTotalAmountsBeChecked: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

The Purchase Header that we want to know if we should check the totals of.

ShouldDocumentTotalAmountsBeChecked Boolean

Out-parameter

OnCanDocumentTotalAmountsBeEditable

Event to customize whether the document total amounts can be edited or not. By default, if the amounts are shown in the document they can be edited, however we provide an event to allow extensions to change this behavior. When using this event, consider that it can have multiple subscribers: it's a good practice to check the value that CanDocumentTotalAmountsBeEdited has before changing it.

[IntegrationEvent(False,False)]
local procedure OnCanDocumentTotalAmountsBeEditable(PurchaseHeader: Record "Purchase Header", var CanDocumentTotalAmountsBeEdited: Boolean)

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

The Purchase Header that we want to know if it can be edited.

CanDocumentTotalAmountsBeEdited Boolean

Out-parameter

See also