--Order 20011253.90


ALTER TABLE WORKORDER
	ADD (SALESNOTEREADYFORINVOICING NUMBER  DEFAULT 0 NOT NULL CONSTRAINT SalesNoteReadyForInv_valid1 CHECK (SALESNOTEREADYFORINVOICING IN (0, 1)));



COMMENT ON COLUMN WORKORDER.SALESNOTEREADYFORINVOICING IS '0 = Sales note is ready for invoicing after the sales is completely issued.
1 = Sales note is ready for invoicing after the sales is completely issued and invoice date is equal to or after the neededdate (so sales not is not invoiced before the neededdate). Only applicable for periodical invoicing.
';


