Class s.l.s.SintegraFile(object):

Part of stoqlib.lib.sintegra View In Hierarchy

No class docstring
Method __init__ Undocumented
Method add Adds a register to the file
Method add_header Receive values to generate Sintegra Register type 10.
Method add_complement_header Receive values to generate Sintegra Register type 11.
Method add_fiscal_coupon Receive values for generate 60M Sintegra Register.
Method add_fiscal_tax Receive values for generate 60A Sintegra Register.
Method add_products_summarized Undocumented
Method add_receiving_order Undocumented
Method add_receiving_order_item Undocumented
Method add_inventory_item Undocumented
Method add_product Undocumented
Method close Closes the file.
Method write Writes out of the content of the file to a filename or fp
Method get_registers Undocumented
def __init__(self):
Undocumented
def add(self, register):
Adds a register to the file
Parametersregistera register (type: SintegraRegister )
def add_header(self, cgc, estadual, company, city, state, fax, start, end):
Receive values to generate Sintegra Register type 10.
Parameterscgcthe branch CNPJ number.
estadualthe branch 'Inscrição estadual' number or ISENTO.
companythe company fancy name.
citythe branch city.
statethe branch city state.
faxthe branch fax number.
startstart's date period, generally, the 1th month day. (type: datetime.date )
endend's date periodo, generally, the last month day. (type: datetime.date )
def add_complement_header(self, address, number, complement, district, postal, name, phone):
Receive values to generate Sintegra Register type 11.
Parametersaddressthe branch address.
numberthe number of the branch address.
complementthe complement of the branch address.
districtdistrict of the branch address.
postalpostal code number of the branch address.
namethe branch manager name.
phonethe branch phone number.
def add_fiscal_coupon(self, date, printerserial, printerid, coupon_start, coupon_end, crz, cro, period_total, total):
Receive values for generate 60M Sintegra Register.
Parametersdateemission date of the fiscal coupon. (type: datetime.date )
printerserialserial number of the fiscal printer.
printeridthe refered number (id) for the fiscal printer in a branch.
coupon_startthe number in which the coupon fiscal starts.
coupon_endthe number in which the fiscal coupon ends.
crzcounter the number of 'Zs reduction' made by fiscal printer.
crocounter how many times the fiscal printer was restarted their operations.
period_totalvalue total in a fiscal day.
totaltotal acumulated in fiscal printer.
def add_fiscal_tax(self, date, printerserial, code, value):
Receive values for generate 60A Sintegra Register.
Parametersdateemission date of the fiscal coupon. (type: datetime.date )
printerserialserial number of the fiscal printer.
codethe tax code.
valuethe tax value.
def add_products_summarized(self, date, product_code, product_quantity, total_liquido_produto, total_icms_base, icms_aliquota):
Undocumented
def add_receiving_order(self, cnpj, state_registry, receival_date, state, modelo, serial, numero, cfop, emitente, total, icms_base, icms_total, isenta, outras, aliquota_icms, situacao):
Undocumented
def add_receiving_order_item(self, cnpj, modelo, serial, numero, cfop, cst, numero_item, product_code, product_quantity, valor_bruto_produto, desconto, icms_base, icms_subst_trib, ipi, icms_aliquota):
Undocumented
def add_inventory_item(self, start, product_code, product_quantity, total_product_value, owner_code, owner_cnpj, owner_state_registry, state):
Undocumented
def add_product(self, start, end, product_code, ncm, desc, unit, aliquota_ipi, aliquota_icms, reducao_icms, base_icms):
Undocumented
def close(self):
Closes the file. This will add a couple of registers of type 90.
def write(self, filename=None, fp=None):
Writes out of the content of the file to a filename or fp
Parametersfilenamefilename
fpfile object, anything implementing write(data)
def get_registers(self):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.