Clean up some purchasing views
This commit is contained in:
parent
3223a77cb1
commit
ad9c193061
2 changed files with 9 additions and 1 deletions
|
@ -520,7 +520,7 @@ class PurchasingBatchView(BatchMasterView):
|
|||
elif purchase.status == self.enum.PURCHASE_STATUS_RECEIVED:
|
||||
date = purchase.date_received
|
||||
total = purchase.invoice_total
|
||||
return '{} for ${:0,.2f} ({})'.format(date, total, purchase.department or purchase.buyer)
|
||||
return '{} for ${:0,.2f} ({})'.format(date, total or 0, purchase.department or purchase.buyer)
|
||||
|
||||
def get_batch_kwargs(self, batch, mobile=False):
|
||||
kwargs = super(PurchasingBatchView, self).get_batch_kwargs(batch, mobile=mobile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue