Reference

Location

Settings > Contracts and Invoices > Invoice Date Configuration

Calculation order

Zenskar computes the invoice date in three sequential steps:

  1. Resolve the reference date.
  2. Apply the offset (if enabled).
  3. Pin the day within the resulting month.

Fields

Invoice Date Configuration (toggle)

PropertyValue
TypeOn/Off toggle
DefaultOff
ScopeOrganization-wide; applies to all customers and contracts
Behavior when offInvoice date defaults to the invoice generation timestamp

With Reference to

OptionResolves toDefault
Invoice Generation DateThe exact moment Zenskar creates the invoice, in UTCYes
Bill For DateThe billing cycle date the contract's billing period is anchored toNo
Service Period Start DateThe first day of the service window being billed on the invoiceNo

Offset

PropertyValue
TypeOn/Off toggle, with a numeric field and a direction selector
DefaultOff
No. of MonthsInteger; number of months to shift
DirectionBefore Reference Date or After Reference Date
Behavior when offInvoice date uses the reference date directly, subject to day pinning

Day pinning

OptionBehavior
Same Day as of Reference DateUses the same day number as the reference date, in the target month
Last Day of That MonthAlways uses the final day of the target month, regardless of the reference date's day number

Month-end handling

ConditionBehavior
Resolved day does not exist in the target month (e.g., the 31st in a 30-day month)Clamped to the closest valid day in that month
Leap yearsHandled automatically; no separate configuration

Worked examples

Reference DateOffsetDay PinningResult
Bill For Date = March 1+1 monthLast Day of That MonthApril 30
Invoice Generation Date = March 310(n/a, uses reference date)March 31
Service Period Start Date = February 10Last Day of That MonthFebruary 28 (February 29 in a leap year)
Reference date = the 10thLands on MarchSame Day as of Reference DateMarch 10
Reference date = the 19thLands on FebruaryLast Day of That MonthFebruary 28 (February 29 in a leap year)
Generation date = April 4-1 monthLast Day of That MonthMarch 31

Manual invoice date edit

PropertyValue
LocationInvoices (sidebar) > open invoice > pencil icon next to Invoice Date
Editable invoice statusDRAFT only
Behavior on other statusesUpdate rejected
Input methodsDirect date entry, quick-select (e.g., Today, Start of Month), calendar picker
ScopeSingle invoice only; does not affect the organization-wide rule
Save behaviorInvoice document refreshes automatically


Did this page help you?