Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficeInvoice

Module PSWriteOffice
Inputs
OfficeIMO.Invoicing.Invoice
Outputs
OfficeIMO.Invoicing.Invoice

Updates common invoice header and party fields.

Syntax

Set-OfficeInvoice [-Buyer <InvoiceParty>] [-Currency <String>] -Invoice <Invoice> [-IssueDate <DateTime>] [-Number <String>] [-PassThru] [-RecalculateTotals] [-Seller <InvoiceParty>] [-TaxAmountInAccountingCurrency <Decimal>] [-TaxCurrency <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Updates common invoice header and party fields.

$invoice | Set-OfficeInvoice -Number INV-002 -Currency EUR

Parameters

-Buyer InvoiceParty optional
Replacement buyer.
-Currency String optional
Replacement currency code.
-Invoice Invoice requiredpipeline: True (ByValue)
Editable invoice.
-IssueDate DateTime optional
Replacement issue date.
-Number String optional
Replacement document number.
-PassThru SwitchParameter optional
Return the created or changed object.
-RecalculateTotals SwitchParameter optional
Remove source-declared totals and tax breakdowns so the owner recomputes them from the edited model.
-Seller InvoiceParty optional
Replacement seller.
-TaxAmountInAccountingCurrency Decimal optional
Explicit VAT amount in the accounting currency; no exchange rate is inferred.
-TaxCurrency String optional
Accounting VAT currency. Changing it invalidates its previously declared amount.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.