Commssion DN/CN
This commit is contained in:
@@ -7446,6 +7446,29 @@ class PurchaseTradeTestCase(ModuleTestCase):
|
||||
debit.total_amount = Decimal('-10')
|
||||
self.assertEqual(debit.report_note_title, 'Debit Note')
|
||||
|
||||
def test_invoice_commission_note_uses_company_to_broker_direction(self):
|
||||
'commission note title follows company to broker correction direction'
|
||||
Invoice = Pool().get('account.invoice')
|
||||
|
||||
credit = Invoice()
|
||||
credit.total_amount = Decimal('-79.37')
|
||||
self.assertEqual(credit.report_commission_note_title, 'Credit Note')
|
||||
self.assertEqual(credit.report_commission_due_label, 'TOTAL DUE TO US')
|
||||
|
||||
debit = Invoice()
|
||||
debit.total_amount = Decimal('79.37')
|
||||
self.assertEqual(debit.report_commission_note_title, 'Debit Note')
|
||||
self.assertEqual(debit.report_commission_due_label, 'TOTAL DUE TO YOU')
|
||||
|
||||
def test_invoice_commission_note_total_is_absolute(self):
|
||||
'commission note total is displayed without the accounting sign'
|
||||
Invoice = Pool().get('account.invoice')
|
||||
|
||||
invoice = Invoice()
|
||||
invoice.total_amount = Decimal('-79.37')
|
||||
|
||||
self.assertEqual(invoice.report_commission_note_total_display, '79.37')
|
||||
|
||||
def test_invoice_report_net_sums_signed_invoice_lines(self):
|
||||
'invoice report net uses the signed differential from invoice lines'
|
||||
Invoice = Pool().get('account.invoice')
|
||||
|
||||
Reference in New Issue
Block a user