132 lines
2.6 KiB
JSON
132 lines
2.6 KiB
JSON
{
|
|
"name": "InvoiceTemplate",
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string",
|
|
"description": "Template name"
|
|
},
|
|
"client_name": {
|
|
"type": "string",
|
|
"description": "Client/Business name"
|
|
},
|
|
"from_company": {
|
|
"type": "object",
|
|
"description": "Vendor company info",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"to_company": {
|
|
"type": "object",
|
|
"description": "Client company info",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"address": {
|
|
"type": "string"
|
|
},
|
|
"phone": {
|
|
"type": "string"
|
|
},
|
|
"email": {
|
|
"type": "string"
|
|
},
|
|
"hub_name": {
|
|
"type": "string"
|
|
},
|
|
"manager_name": {
|
|
"type": "string"
|
|
},
|
|
"vendor_id": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
},
|
|
"hub": {
|
|
"type": "string",
|
|
"description": "Hub location"
|
|
},
|
|
"department": {
|
|
"type": "string",
|
|
"description": "Department"
|
|
},
|
|
"po_reference": {
|
|
"type": "string",
|
|
"description": "PO reference"
|
|
},
|
|
"payment_terms": {
|
|
"type": "string",
|
|
"description": "Payment terms"
|
|
},
|
|
"staff_entries": {
|
|
"type": "array",
|
|
"description": "Template staff entries (positions and rates)",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"position": {
|
|
"type": "string"
|
|
},
|
|
"rate": {
|
|
"type": "number"
|
|
},
|
|
"check_in": {
|
|
"type": "string"
|
|
},
|
|
"check_out": {
|
|
"type": "string"
|
|
},
|
|
"lunch": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"charges": {
|
|
"type": "array",
|
|
"description": "Template charges",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"name": {
|
|
"type": "string"
|
|
},
|
|
"qty": {
|
|
"type": "number"
|
|
},
|
|
"rate": {
|
|
"type": "number"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"staff_count": {
|
|
"type": "number",
|
|
"description": "Number of staff entries"
|
|
},
|
|
"charges_count": {
|
|
"type": "number",
|
|
"description": "Number of charges"
|
|
},
|
|
"notes": {
|
|
"type": "string",
|
|
"description": "Template notes"
|
|
}
|
|
},
|
|
"required": [
|
|
"name"
|
|
]
|
|
} |