PurchSpendingThresholdValidation_PSN.calculateTotalAmountPerCategory Method [AX 2012]
Calculate the total purchase amount being spent for the selected category
private AmountMST calculateTotalAmountPerCategory(
PurchPolicyRuleCatThresholdDetail_PSN _purchPolicyRuleCatThresholdDetail,
PurchCategory _procurementCategory,
PurchId _purchId,
boolean _isPurchaseOrder,
RecId _vendInvoiceRecId)
Run On
ServerParameters
- _purchPolicyRuleCatThresholdDetail
- Type: PurchPolicyRuleCatThresholdDetail_PSN Table
The PurchPolicyRuleCatThresholdDetail_PSN table record.
- _procurementCategory
- Type: PurchCategory Extended Data Type
The procurement category for the PO or invoice line being processed.
- _purchId
- Type: PurchId Extended Data Type
The PurchId table field for the PO or invoice line being processed.
- _isPurchaseOrder
- Type: boolean
Boolean variable indicating wheather caller is a Purchase Order or invoice that is being processed.
- _vendInvoiceRecId
- Type: RecId Extended Data Type
Vendor Invoice Rec Id for the invoice being posted.
Return Value
Type: AmountMST Extended Data TypeThe total spent amount for the selected category in accounting currency.
Community Additions
ADD
Show: