674 |
:history: |
:history: |
675 |
|
|
676 |
/* |
/* |
677 |
entity_currency |
entity_currency_type |
678 |
|
|
679 |
what currencies an entity handles |
what currencies an entity handles |
680 |
|
|
681 |
*/ |
*/ |
682 |
entity_currency: |
entity_currency_type: |
683 |
id (serial) |
id (serial) |
684 |
entity -> entity |
entity -> entity |
685 |
currency-> currency |
currency_type -> currency_type |
686 |
:history: |
:history: |
687 |
|
|
688 |
/* |
/* |
1090 |
:history: |
:history: |
1091 |
|
|
1092 |
/* |
/* |
1093 |
currency |
currency_type |
1094 |
|
|
1095 |
types of cash, with a rate that would be against one of them. |
types of cash, with a rate that would be against one of them. |
1096 |
|
|
1097 |
*/ |
*/ |
1098 |
currency: |
currency_type: |
1099 |
id (serial) |
id (serial) |
1100 |
name (varchar(50)) |
name (varchar(50)) |
1101 |
rate (numeric(10,2)) |
rate (numeric(10,2)) |
1114 |
id (bigserial) |
id (bigserial) |
1115 |
|
|
1116 |
# what kind of cash |
# what kind of cash |
1117 |
currency -> currency |
currency_type -> currency_type |
1118 |
movement -> movement |
movement -> movement |
1119 |
:entry: |
:entry: |
1120 |
|
|
1193 |
cheque: |
cheque: |
1194 |
id (bigserial) |
id (bigserial) |
1195 |
chequebook -> chequebook |
chequebook -> chequebook |
|
movement -> movement |
|
1196 |
date (timestamp) |
date (timestamp) |
1197 |
:account: |
:account: |
1198 |
:entry: |
:entry: |
1199 |
|
|
1200 |
/* |
/* |
1201 |
|
cheque_movement |
1202 |
|
|
1203 |
|
*/ |
1204 |
|
cheque_movement(movement): |
1205 |
|
id (bigserial) |
1206 |
|
|
1207 |
|
cheque -> cheque |
1208 |
|
movement -> movement |
1209 |
|
:entry: |
1210 |
|
|
1211 |
|
/* |
1212 |
cheque_tax |
cheque_tax |
1213 |
*/ |
*/ |
1214 |
cheque_tax: |
cheque_tax: |
1225 |
third_party_cheque: |
third_party_cheque: |
1226 |
id (bigserial) |
id (bigserial) |
1227 |
bank_branch -> entity |
bank_branch -> entity |
|
movement -> movement |
|
1228 |
# when the cheque is due |
# when the cheque is due |
1229 |
credit_date (timestamp) |
credit_date (timestamp) |
1230 |
emmited_by (varchar(80)) |
emmited_by (varchar(80)) |
1233 |
:account: |
:account: |
1234 |
:entry: |
:entry: |
1235 |
|
|
1236 |
|
/* |
1237 |
|
third_party_cheque_movement |
1238 |
|
|
1239 |
|
*/ |
1240 |
|
third_party_cheque_movement(movement): |
1241 |
|
id (bigserial) |
1242 |
|
|
1243 |
|
third_party_cheque -> third_party_cheque |
1244 |
|
movement -> movement |
1245 |
|
:entry: |
1246 |
|
|
1247 |
third_party_cheque_tax: |
third_party_cheque_tax: |
1248 |
id (bigserial) |
id (bigserial) |
1249 |
third_party_cheque -> third_party_cheque |
third_party_cheque -> third_party_cheque |
1276 |
:history: |
:history: |
1277 |
|
|
1278 |
/* |
/* |
1279 |
|
ticket_type |
1280 |
|
*/ |
1281 |
|
ticket_type: |
1282 |
|
# the primary key |
1283 |
|
id (serial) |
1284 |
|
|
1285 |
|
# what is this ticket type? |
1286 |
|
name (varchar(80)) |
1287 |
|
|
1288 |
|
# that doesn't say a thing to me. Tell me more. |
1289 |
|
description (varchar(255)) |
1290 |
|
|
1291 |
|
# this table mirrors an entry in account_plan |
1292 |
|
:account: |
1293 |
|
|
1294 |
|
# this table has a history (or "transactional") |
1295 |
|
:history: |
1296 |
|
|
1297 |
|
/* |
1298 |
ticket_movement |
ticket_movement |
1299 |
*/ |
*/ |
1300 |
ticket_movement(movement): |
ticket_movement(movement): |
1304 |
:entry: |
:entry: |
1305 |
|
|
1306 |
/* |
/* |
1307 |
document |
obligation |
1308 |
|
|
1309 |
legal documents, e.g. "I.O.U.s" |
legal documents, e.g. "I.O.U.s" |
1310 |
|
|
1311 |
FIXME: this is incomplete |
FIXME: this is incomplete |
1312 |
|
|
1313 |
*/ |
*/ |
1314 |
document: |
obligation: |
1315 |
id (serial) |
id (serial) |
1316 |
date (timestamp) |
date (timestamp) |
1317 |
amount (numeric(12,4)) |
amount (numeric(12,4)) |
1318 |
:account: |
:account: |
1319 |
|
|
1320 |
/* |
/* |
1321 |
document_movement |
obligation_type |
1322 |
|
*/ |
1323 |
|
obligation_type: |
1324 |
|
# the primary key |
1325 |
|
id (serial) |
1326 |
|
|
1327 |
|
# what is this obligation type? |
1328 |
|
name (varchar(80)) |
1329 |
|
|
1330 |
|
# that doesn't say a thing to me. Tell me more. |
1331 |
|
description (varchar(255)) |
1332 |
|
|
1333 |
|
# this table mirrors an entry in account_plan |
1334 |
|
:account: |
1335 |
|
|
1336 |
|
# this table has a history (or "transactional") |
1337 |
|
:history: |
1338 |
|
|
1339 |
|
/* |
1340 |
|
obligation_movement |
1341 |
*/ |
*/ |
1342 |
document_movement(movement): |
obligation_movement(movement): |
1343 |
id (bigserial) |
id (bigserial) |
1344 |
document -> document |
obligation -> obligation |
1345 |
movement -> movement |
movement -> movement |
1346 |
:entry: |
:entry: |
1347 |
|
|
1408 |
:account: |
:account: |
1409 |
:history: |
:history: |
1410 |
|
|
1411 |
|
/* |
1412 |
|
barter_type |
1413 |
|
*/ |
1414 |
|
barter_type: |
1415 |
|
# the primary key |
1416 |
|
id (serial) |
1417 |
|
|
1418 |
|
# what is this barter type? |
1419 |
|
name (varchar(80)) |
1420 |
|
|
1421 |
|
# that doesn't say a thing to me. Tell me more. |
1422 |
|
description (varchar(255)) |
1423 |
|
|
1424 |
|
# this table mirrors an entry in account_plan |
1425 |
|
:account: |
1426 |
|
|
1427 |
|
# this table has a history (or "transactional") |
1428 |
|
:history: |
1429 |
|
|
1430 |
barter_movement(movement): |
barter_movement(movement): |
1431 |
id (bigserial) |
id (bigserial) |
1432 |
barter -> barter |
barter -> barter |