Cmdlet
Set-OfficeInvoice
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 SetsExamples
Updates common invoice header and party fields.
$invoice | Set-OfficeInvoice -Number INV-002 -Currency EURParameters
- -Buyer InvoiceParty
- Replacement buyer.
- -Currency String
- Replacement currency code.
- -Invoice Invoice
- Editable invoice.
- -IssueDate DateTime
- Replacement issue date.
- -Number String
- Replacement document number.
- -PassThru SwitchParameter
- Return the created or changed object.
- -RecalculateTotals SwitchParameter
- Remove source-declared totals and tax breakdowns so the owner recomputes them from the edited model.
- -Seller InvoiceParty
- Replacement seller.
- -TaxAmountInAccountingCurrency Decimal
- Explicit VAT amount in the accounting currency; no exchange rate is inferred.
- -TaxCurrency String
- 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.