]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0314.data.acq.cancel_reason.sql
LP#1806968 Teach Vandelay to pass correct auth tracker type
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0314.data.acq.cancel_reason.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0314'); --atz
4
5 -- We won't necessarily use all of these, but they are here for completeness.
6 -- Source is the EDI spec 1229 codelist, eg: http://www.stylusstudio.com/edifact/D04B/1229.htm
7 -- Values are the EDI code value + 1000
8
9 INSERT INTO acq.cancel_reason (keep_debits, id, org_unit, label, description) VALUES 
10 ('t',(  1+1000), 1, 'Added',     'The information is to be or has been added.'),
11 ('f',(  2+1000), 1, 'Deleted',   'The information is to be or has been deleted.'),
12 ('t',(  3+1000), 1, 'Changed',   'The information is to be or has been changed.'),
13 ('t',(  4+1000), 1, 'No action',                  'This line item is not affected by the actual message.'),
14 ('t',(  5+1000), 1, 'Accepted without amendment', 'This line item is entirely accepted by the seller.'),
15 ('t',(  6+1000), 1, 'Accepted with amendment',    'This line item is accepted but amended by the seller.'),
16 ('f',(  7+1000), 1, 'Not accepted',               'This line item is not accepted by the seller.'),
17 ('t',(  8+1000), 1, 'Schedule only', 'Code specifying that the message is a schedule only.'),
18 ('t',(  9+1000), 1, 'Amendments',    'Code specifying that amendments are requested/notified.'),
19 ('f',( 10+1000), 1, 'Not found',   'This line item is not found in the referenced message.'),
20 ('t',( 11+1000), 1, 'Not amended', 'This line is not amended by the buyer.'),
21 ('t',( 12+1000), 1, 'Line item numbers changed', 'Code specifying that the line item numbers have changed.'),
22 ('t',( 13+1000), 1, 'Buyer has deducted amount', 'Buyer has deducted amount from payment.'),
23 ('t',( 14+1000), 1, 'Buyer claims against invoice', 'Buyer has a claim against an outstanding invoice.'),
24 ('t',( 15+1000), 1, 'Charge back by seller', 'Factor has been requested to charge back the outstanding item.'),
25 ('t',( 16+1000), 1, 'Seller will issue credit note', 'Seller agrees to issue a credit note.'),
26 ('t',( 17+1000), 1, 'Terms changed for new terms', 'New settlement terms have been agreed.'),
27 ('t',( 18+1000), 1, 'Abide outcome of negotiations', 'Factor agrees to abide by the outcome of negotiations between seller and buyer.'),
28 ('t',( 19+1000), 1, 'Seller rejects dispute', 'Seller does not accept validity of dispute.'),
29 ('t',( 20+1000), 1, 'Settlement', 'The reported situation is settled.'),
30 ('t',( 21+1000), 1, 'No delivery', 'Code indicating that no delivery will be required.'),
31 ('t',( 22+1000), 1, 'Call-off delivery', 'A request for delivery of a particular quantity of goods to be delivered on a particular date (or within a particular period).'),
32 ('t',( 23+1000), 1, 'Proposed amendment', 'A code used to indicate an amendment suggested by the sender.'),
33 ('t',( 24+1000), 1, 'Accepted with amendment, no confirmation required', 'Accepted with changes which require no confirmation.'),
34 ('t',( 25+1000), 1, 'Equipment provisionally repaired', 'The equipment or component has been provisionally repaired.'),
35 ('t',( 26+1000), 1, 'Included', 'Code indicating that the entity is included.'),
36 ('t',( 27+1000), 1, 'Verified documents for coverage', 'Upon receipt and verification of documents we shall cover you when due as per your instructions.'),
37 ('t',( 28+1000), 1, 'Verified documents for debit',    'Upon receipt and verification of documents we shall authorize you to debit our account with you when due.'),
38 ('t',( 29+1000), 1, 'Authenticated advice for coverage',      'On receipt of your authenticated advice we shall cover you when due as per your instructions.'),
39 ('t',( 30+1000), 1, 'Authenticated advice for authorization', 'On receipt of your authenticated advice we shall authorize you to debit our account with you when due.'),
40 ('t',( 31+1000), 1, 'Authenticated advice for credit',        'On receipt of your authenticated advice we shall credit your account with us when due.'),
41 ('t',( 32+1000), 1, 'Credit advice requested for direct debit',           'A credit advice is requested for the direct debit.'),
42 ('t',( 33+1000), 1, 'Credit advice and acknowledgement for direct debit', 'A credit advice and acknowledgement are requested for the direct debit.'),
43 ('t',( 34+1000), 1, 'Inquiry',     'Request for information.'),
44 ('t',( 35+1000), 1, 'Checked',     'Checked.'),
45 ('t',( 36+1000), 1, 'Not checked', 'Not checked.'),
46 ('f',( 37+1000), 1, 'Cancelled',   'Discontinued.'),
47 ('t',( 38+1000), 1, 'Replaced',    'Provide a replacement.'),
48 ('t',( 39+1000), 1, 'New',         'Not existing before.'),
49 ('t',( 40+1000), 1, 'Agreed',      'Consent.'),
50 ('t',( 41+1000), 1, 'Proposed',    'Put forward for consideration.'),
51 ('t',( 42+1000), 1, 'Already delivered', 'Delivery has taken place.'),
52 ('t',( 43+1000), 1, 'Additional subordinate structures will follow', 'Additional subordinate structures will follow the current hierarchy level.'),
53 ('t',( 44+1000), 1, 'Additional subordinate structures will not follow', 'No additional subordinate structures will follow the current hierarchy level.'),
54 ('t',( 45+1000), 1, 'Result opposed',         'A notification that the result is opposed.'),
55 ('t',( 46+1000), 1, 'Auction held',           'A notification that an auction was held.'),
56 ('t',( 47+1000), 1, 'Legal action pursued',   'A notification that legal action has been pursued.'),
57 ('t',( 48+1000), 1, 'Meeting held',           'A notification that a meeting was held.'),
58 ('t',( 49+1000), 1, 'Result set aside',       'A notification that the result has been set aside.'),
59 ('t',( 50+1000), 1, 'Result disputed',        'A notification that the result has been disputed.'),
60 ('t',( 51+1000), 1, 'Countersued',            'A notification that a countersuit has been filed.'),
61 ('t',( 52+1000), 1, 'Pending',                'A notification that an action is awaiting settlement.'),
62 ('f',( 53+1000), 1, 'Court action dismissed', 'A notification that a court action will no longer be heard.'),
63 ('t',( 54+1000), 1, 'Referred item, accepted', 'The item being referred to has been accepted.'),
64 ('f',( 55+1000), 1, 'Referred item, rejected', 'The item being referred to has been rejected.'),
65 ('t',( 56+1000), 1, 'Debit advice statement line',  'Notification that the statement line is a debit advice.'),
66 ('t',( 57+1000), 1, 'Credit advice statement line', 'Notification that the statement line is a credit advice.'),
67 ('t',( 58+1000), 1, 'Grouped credit advices',       'Notification that the credit advices are grouped.'),
68 ('t',( 59+1000), 1, 'Grouped debit advices',        'Notification that the debit advices are grouped.'),
69 ('t',( 60+1000), 1, 'Registered', 'The name is registered.'),
70 ('f',( 61+1000), 1, 'Payment denied', 'The payment has been denied.'),
71 ('t',( 62+1000), 1, 'Approved as amended', 'Approved with modifications.'),
72 ('t',( 63+1000), 1, 'Approved as submitted', 'The request has been approved as submitted.'),
73 ('f',( 64+1000), 1, 'Cancelled, no activity', 'Cancelled due to the lack of activity.'),
74 ('t',( 65+1000), 1, 'Under investigation', 'Investigation is being done.'),
75 ('t',( 66+1000), 1, 'Initial claim received', 'Notification that the initial claim was received.'),
76 ('f',( 67+1000), 1, 'Not in process', 'Not in process.'),
77 ('f',( 68+1000), 1, 'Rejected, duplicate', 'Rejected because it is a duplicate.'),
78 ('f',( 69+1000), 1, 'Rejected, resubmit with corrections', 'Rejected but may be resubmitted when corrected.'),
79 ('t',( 70+1000), 1, 'Pending, incomplete', 'Pending because of incomplete information.'),
80 ('t',( 71+1000), 1, 'Under field office investigation', 'Investigation by the field is being done.'),
81 ('t',( 72+1000), 1, 'Pending, awaiting additional material', 'Pending awaiting receipt of additional material.'),
82 ('t',( 73+1000), 1, 'Pending, awaiting review', 'Pending while awaiting review.'),
83 ('t',( 74+1000), 1, 'Reopened', 'Opened again.'),
84 ('t',( 75+1000), 1, 'Processed by primary, forwarded to additional payer(s)',   'This request has been processed by the primary payer and sent to additional payer(s).'),
85 ('t',( 76+1000), 1, 'Processed by secondary, forwarded to additional payer(s)', 'This request has been processed by the secondary payer and sent to additional payer(s).'),
86 ('t',( 77+1000), 1, 'Processed by tertiary, forwarded to additional payer(s)',  'This request has been processed by the tertiary payer and sent to additional payer(s).'),
87 ('t',( 78+1000), 1, 'Previous payment decision reversed', 'A previous payment decision has been reversed.'),
88 ('t',( 79+1000), 1, 'Not our claim, forwarded to another payer(s)', 'A request does not belong to this payer but has been forwarded to another payer(s).'),
89 ('t',( 80+1000), 1, 'Transferred to correct insurance carrier', 'The request has been transferred to the correct insurance carrier for processing.'),
90 ('t',( 81+1000), 1, 'Not paid, predetermination pricing only', 'Payment has not been made and the enclosed response is predetermination pricing only.'),
91 ('t',( 82+1000), 1, 'Documentation claim', 'The claim is for documentation purposes only, no payment required.'),
92 ('t',( 83+1000), 1, 'Reviewed', 'Assessed.'),
93 ('f',( 84+1000), 1, 'Repriced', 'This price was changed.'),
94 ('t',( 85+1000), 1, 'Audited', 'An official examination has occurred.'),
95 ('t',( 86+1000), 1, 'Conditionally paid', 'Payment has been conditionally made.'),
96 ('t',( 87+1000), 1, 'On appeal', 'Reconsideration of the decision has been applied for.'),
97 ('t',( 88+1000), 1, 'Closed', 'Shut.'),
98 ('t',( 89+1000), 1, 'Reaudited', 'A subsequent official examination has occurred.'),
99 ('t',( 90+1000), 1, 'Reissued', 'Issued again.'),
100 ('t',( 91+1000), 1, 'Closed after reopening', 'Reopened and then closed.'),
101 ('t',( 92+1000), 1, 'Redetermined', 'Determined again or differently.'),
102 ('t',( 93+1000), 1, 'Processed as primary',   'Processed as the first.'),
103 ('t',( 94+1000), 1, 'Processed as secondary', 'Processed as the second.'),
104 ('t',( 95+1000), 1, 'Processed as tertiary',  'Processed as the third.'),
105 ('t',( 96+1000), 1, 'Correction of error', 'A correction to information previously communicated which contained an error.'),
106 ('t',( 97+1000), 1, 'Single credit item of a group', 'Notification that the credit item is a single credit item of a group of credit items.'),
107 ('t',( 98+1000), 1, 'Single debit item of a group',  'Notification that the debit item is a single debit item of a group of debit items.'),
108 ('t',( 99+1000), 1, 'Interim response', 'The response is an interim one.'),
109 ('t',(100+1000), 1, 'Final response',   'The response is an final one.'),
110 ('t',(101+1000), 1, 'Debit advice requested', 'A debit advice is requested for the transaction.'),
111 ('t',(102+1000), 1, 'Transaction not impacted', 'Advice that the transaction is not impacted.'),
112 ('t',(103+1000), 1, 'Patient to be notified',                    'The action to take is to notify the patient.'),
113 ('t',(104+1000), 1, 'Healthcare provider to be notified',        'The action to take is to notify the healthcare provider.'),
114 ('t',(105+1000), 1, 'Usual general practitioner to be notified', 'The action to take is to notify the usual general practitioner.'),
115 ('t',(106+1000), 1, 'Advice without details', 'An advice without details is requested or notified.'),
116 ('t',(107+1000), 1, 'Advice with details', 'An advice with details is requested or notified.'),
117 ('t',(108+1000), 1, 'Amendment requested', 'An amendment is requested.'),
118 ('t',(109+1000), 1, 'For information', 'Included for information only.'),
119 ('f',(110+1000), 1, 'Withdraw', 'A code indicating discontinuance or retraction.'),
120 ('t',(111+1000), 1, 'Delivery date change', 'The action / notiification is a change of the delivery date.'),
121 ('f',(112+1000), 1, 'Quantity change',      'The action / notification is a change of quantity.'),
122 ('t',(113+1000), 1, 'Resale and claim', 'The identified items have been sold by the distributor to the end customer, and compensation for the loss of inventory value is claimed.'),
123 ('t',(114+1000), 1, 'Resale',           'The identified items have been sold by the distributor to the end customer.'),
124 ('t',(115+1000), 1, 'Prior addition', 'This existing line item becomes available at an earlier date.');
125
126 COMMIT;
127