Update: to 7.0.4

Fix: Balance Sheet was showing account in random heads
Fix: Batch was not showing in issue
Fix: At times, the Product Ledger created error on rounding and did not show.
This commit is contained in:
Amritanshu Agrawal 2020-07-16 13:09:22 +05:30
parent ad8a2d2cc3
commit a04cb4cd4d
5 changed files with 21 additions and 21 deletions

View File

@ -479,18 +479,18 @@ class AccountType:
@classmethod
def list(cls):
return [
AccountType(1, "Cash", True, True, "Cash", 10, True),
AccountType(2, "Purchase", False, True, "Operating", 20, True),
AccountType(3, "Sale", False, False, "Operating", 10, True),
AccountType(4, "Assets", True, True, "Investing", 20, True),
AccountType(5, "Capital", True, False, "Financing", 70, True),
AccountType(6, "Debtors", True, True, "Operating", 30, True),
AccountType(7, "Expenses", False, True, "Operating", 40, True),
AccountType(9, "Creditors", True, False, "Operating", 60, True),
AccountType(10, "Salary", True, True, "Operating", 40, False),
AccountType(11, "Liabilities", True, False, "Operating", 50, True),
AccountType(12, "Revenue", False, False, "Operating", 30, True),
AccountType(13, "Tax", True, False, "Operating", 80, True),
AccountType(1, "Cash", True, True, "Cash", 10000, True),
AccountType(2, "Purchase", False, True, "Operating", 20000, True),
AccountType(3, "Sale", False, False, "Operating", 10000, True),
AccountType(4, "Assets", True, True, "Investing", 20000, True),
AccountType(5, "Capital", True, False, "Financing", 70000, True),
AccountType(6, "Debtors", True, True, "Operating", 30000, True),
AccountType(7, "Expenses", False, True, "Operating", 40000, True),
AccountType(9, "Creditors", True, False, "Operating", 60000, True),
AccountType(10, "Salary", True, True, "Operating", 40000, False),
AccountType(11, "Liabilities", True, False, "Operating", 50000, True),
AccountType(12, "Revenue", False, False, "Operating", 30000, True),
AccountType(13, "Tax", True, False, "Operating", 80000, True),
]
# list.append(AccountType(8, 'Discount', False, False, True, 30, True))
# list.append(AccountType(14, 'Total', False, False, False, 900, False))

View File

@ -27,7 +27,7 @@ def batch_term(
filter_ = q if q is not None and q.strip() != "" else None
date = None if not d else datetime.datetime.strptime(d, "%d-%b-%Y")
list_ = []
for index, item in enumerate(Batch.list(filter_, include_nil=False, date=date, dbsession=db)):
for index, item in enumerate(Batch.list(filter_, include_nil=False, date=date, db=db)):
text = f"{item.product.name} ({item.product.units}) {item.quantity_remaining:.2f}@{item.rate:.2f} from {item.name.strftime('%d-%b-%Y')}"
list_.append(
{

View File

@ -245,12 +245,12 @@ class ProductLedgerItem(BaseModel):
url: List[str]
type_: str
narration: str
debit_quantity: Optional[Decimal] = Field(multiple_of=0.01)
debit_amount: Optional[Decimal] = Field(multiple_of=0.01)
credit_quantity: Optional[Decimal] = Field(multiple_of=0.01)
credit_amount: Optional[Decimal] = Field(multiple_of=0.01)
running_quantity: Decimal = Field(multiple_of=0.01)
running_amount: Decimal = Field(multiple_of=0.01)
debit_quantity: Optional[Decimal]
debit_amount: Optional[Decimal]
credit_quantity: Optional[Decimal]
credit_amount: Optional[Decimal]
running_quantity: Decimal
running_amount: Decimal
posted: bool
@validator("date_", pre=True)

View File

@ -1,6 +1,6 @@
{
"name": "overlord",
"version": "7.0.3",
"version": "7.0.4",
"scripts": {
"ng": "ng",
"start": "ng serve",

View File

@ -11,7 +11,7 @@ with open(os.path.join(here, 'requirements.txt'), "r") as r:
requires = r.read().splitlines()
setup(name='brewman',
version='7.0.3',
version='7.0.4',
description='brewman',
long_description=README + '\n\n' + CHANGES,
classifiers=[