-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add support for ``cph.VEND``
- Loading branch information
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2015-TODAY LasLabs Inc. | ||
# License MIT (https://opensource.org/licenses/MIT). | ||
|
||
from carepoint import Carepoint | ||
from sqlalchemy import (Column, | ||
Integer, | ||
String, | ||
DateTime, | ||
) | ||
|
||
|
||
class Vendor(Carepoint.BASE): | ||
__dbname__ = 'cph' | ||
__tablename__ = 'VEND' | ||
|
||
ID = Column(Integer, primary_key=True) | ||
COMPANY = Column(String) | ||
ADDR1 = Column(String) | ||
ADDR2 = Column(String) | ||
CITY = Column(String) | ||
STATE = Column(String) | ||
ZIP = Column(String) | ||
FEDID = Column(String) | ||
CONTACT = Column(String) | ||
PHONE = Column(String) | ||
ISSUE1099 = Column(String) | ||
ONETIME = Column(String) | ||
FAX = Column(String) | ||
ACCT = Column(String) | ||
TERMS = Column(String) | ||
COSTTYPE = Column(Integer) | ||
compound_vendor_yn = Column(String) | ||
POPrefix = Column(string) | ||
po_alpha_align_cn = Column(Integer) | ||
po_alpha_used = Column(String) | ||
po_next_id_int = Column(Integer) | ||
DocumentNumber = Column(String) | ||
NumberOfDigits = Column(Integer) | ||
LastPODate = Column(DateTime) | ||
DocCounter = Column(Integer) | ||
grid_color = Column(Integer) | ||
bold_yn = Column(Integer) | ||
italic_yn = Column(Integer) | ||
add_user_id = Column( | ||
Integer, | ||
ForeignKey('csuser.user_id'), | ||
) | ||
add_date = Column(DateTime) | ||
chg_user_id = Column( | ||
Integer, | ||
ForeignKey('csuser.user_id'), | ||
) | ||
chg_date = Column(DateTime) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2015-TODAY LasLabs Inc. | ||
# License MIT (https://opensource.org/licenses/MIT). | ||
|
||
import unittest | ||
from sqlalchemy.schema import Table | ||
from carepoint.tests.db.db import DatabaseTest | ||
from carepoint.models.cph.vendor import Vendor | ||
|
||
|
||
class TestModelsCphVendor(DatabaseTest): | ||
|
||
def test_table_initialization(self, ): | ||
self.assertIsInstance(Vendor.__table__, Table) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |