This commit is contained in:
bcomsugi 2024-10-05 06:19:53 +07:00
parent 55888707b8
commit 27edf3393c
2 changed files with 1382 additions and 3 deletions

1368
QBClasses copy.py Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,9 @@
from server import baseQBQuery, timing
from .server import baseQBQuery
# from server import baseQBQuery, timing
import pprint
# import timeit
# import xml.dom.minidom
from utils import timing, cleanIncludeRetElements, makeAList
from .utils import timing, cleanIncludeRetElements, makeAList
import json
from typing import Union
@ -1155,6 +1156,7 @@ class InvoiceQuery(baseQBQuery):
if self.__class__.__name__==self.className:
self.runCheck() ### running the qbxml connection to get data ###
@timing
def InventoryStockStatusByVendor(ReportEntityFilter_FullName:str='TACO') -> dict:
# g= GeneralSummaryReportQuery(debug=False, GeneralSummaryReportType="ProfitAndLossStandard", ReportDateMacro="ThisYear")
@ -1251,7 +1253,16 @@ if __name__ == "__main__":
print(g.count())
@timing
def main():
g= GeneralSummaryReportQuery(debug=False, GeneralSummaryReportType="ProfitAndLossStandard", ReportDateMacro="ThisYear")
print(g, type(g))
print(type(g.all()))
print(g.all())
print(g.response_string)
pprint.pprint(g.filter("reportdata").all())
print(g.count(), g.all())
@timing
def iteminventoryquery():