lbx-invoice
Version:
Provides functionality around generating invoices.
27 lines (26 loc) • 611 B
text/typescript
import { model, property } from '@loopback/repository';
/**
* Information about the unit of the amount value.
* Consists of a display name like "Hours" and a code like "HUR".
*/
@model()
export class AmountUnit {
/**
* The display name for invoices.
*/
@property({
type: 'string',
required: true
})
displayName: string;
/**
* The common code for the unit, based on rec20
* https://unece.org/trade/uncefact/cl-recommendations.
* Used for x-rechnung.
*/
@property({
type: 'string',
required: true
})
code: string;
}