Tweaks to order form template etc., for purchasing batch
This commit is contained in:
parent
c2a189cb40
commit
732681b545
|
@ -158,11 +158,12 @@
|
|||
% for data in history:
|
||||
<th>
|
||||
% if data:
|
||||
% if data['purchase']['date_ordered']:
|
||||
${data['purchase']['date_ordered'].strftime('%m/%d')}
|
||||
% elif data['purchase']['date_received']:
|
||||
% if data['purchase']['date_received']:
|
||||
Rec.<br />
|
||||
${data['purchase']['date_received'].strftime('%m/%d')}
|
||||
% elif data['purchase']['date_ordered']:
|
||||
Ord.<br />
|
||||
${data['purchase']['date_ordered'].strftime('%m/%d')}
|
||||
% else:
|
||||
??
|
||||
% endif
|
||||
|
|
|
@ -366,6 +366,7 @@ class PurchaseBatchView(BatchMasterView):
|
|||
if batch.mode == self.enum.PURCHASE_BATCH_MODE_ORDERING:
|
||||
del g.cases_received
|
||||
del g.units_received
|
||||
del g.has_credits
|
||||
del g.invoice_total
|
||||
elif batch.mode in (self.enum.PURCHASE_BATCH_MODE_RECEIVING,
|
||||
self.enum.PURCHASE_BATCH_MODE_COSTING):
|
||||
|
|
Loading…
Reference in a new issue