@@ -202,7 +202,7 @@ def test_register_payment_single_batch_grouped_keep_open_lower_amount(self):
202
202
})._create_payments ()
203
203
204
204
self .assertRecordValues (payments , [{
205
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
205
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
206
206
'payment_method_line_id' : self .inbound_payment_method_line .id ,
207
207
}])
208
208
self .assertRecordValues (payments .move_id .line_ids .sorted ('balance' ), [
@@ -235,7 +235,7 @@ def test_register_payment_single_batch_grouped_keep_open_higher_amount(self):
235
235
})._create_payments ()
236
236
237
237
self .assertRecordValues (payments , [{
238
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
238
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
239
239
'payment_method_line_id' : self .inbound_payment_method_line .id ,
240
240
}])
241
241
self .assertRecordValues (payments .move_id .line_ids .sorted ('balance' ), [
@@ -270,7 +270,7 @@ def test_register_payment_single_batch_grouped_writeoff_lower_amount_debit(self)
270
270
})._create_payments ()
271
271
272
272
self .assertRecordValues (payments , [{
273
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
273
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
274
274
'payment_method_line_id' : self .inbound_payment_method_line .id ,
275
275
}])
276
276
self .assertRecordValues (payments .move_id .line_ids .sorted ('balance' ), [
@@ -313,7 +313,7 @@ def test_register_payment_single_batch_grouped_writeoff_higher_amount_debit(self
313
313
})._create_payments ()
314
314
315
315
self .assertRecordValues (payments , [{
316
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
316
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
317
317
'payment_method_line_id' : self .inbound_payment_method_line .id ,
318
318
}])
319
319
self .assertRecordValues (payments .move_id .line_ids .sorted ('balance' ), [
@@ -356,7 +356,7 @@ def test_register_payment_single_batch_grouped_writeoff_lower_amount_credit(self
356
356
})._create_payments ()
357
357
358
358
self .assertRecordValues (payments , [{
359
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
359
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
360
360
'payment_method_line_id' : self .outbound_payment_method_line .id ,
361
361
}])
362
362
self .assertRecordValues (payments .move_id .line_ids .sorted ('balance' ), [
@@ -399,7 +399,7 @@ def test_register_payment_single_batch_grouped_writeoff_higher_amount_credit(sel
399
399
})._create_payments ()
400
400
401
401
self .assertRecordValues (payments , [{
402
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
402
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
403
403
'payment_method_line_id' : self .outbound_payment_method_line .id ,
404
404
}])
405
405
self .assertRecordValues (payments .move_id .line_ids .sorted ('balance' ), [
@@ -555,7 +555,7 @@ def test_register_payment_single_batch_grouped_with_credit_note(self):
555
555
556
556
self .assertRecordValues (payments , [
557
557
{
558
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
558
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
559
559
'payment_method_line_id' : self .outbound_payment_method_line .id ,
560
560
},
561
561
])
@@ -676,7 +676,7 @@ def test_register_payment_multi_batches_grouped(self):
676
676
677
677
self .assertRecordValues (payments , [
678
678
{
679
- 'memo' : Like (f'BATCH /{ self .current_year } /...' ),
679
+ 'memo' : Like (f'PAY /{ self .current_year } /...' ),
680
680
'payment_method_line_id' : self .outbound_payment_method_line .id ,
681
681
},
682
682
{
@@ -1747,7 +1747,7 @@ def test_installment_mode_multiple_batches(self):
1747
1747
'installments_mode' : 'next' ,
1748
1748
'installments_switch_amount' : 1333.33 ,
1749
1749
'currency_id' : self .company .currency_id .id , # Different currencies, so we get the company's one
1750
- 'communication' : Like (f'BATCH /{ self .current_year } /...' ),
1750
+ 'communication' : Like (f'PAY /{ self .current_year } /...' ),
1751
1751
}])
1752
1752
1753
1753
wizard = self .env ['account.payment.register' ].with_context (
@@ -1784,7 +1784,7 @@ def test_installment_mode_multiple_batches(self):
1784
1784
'payment_difference' : 0.5 ,
1785
1785
'installments_mode' : 'next' ,
1786
1786
'installments_switch_amount' : 357.83 , # 24.5 for in_invoice_epd_applied + 1000 / 3 (rate) for the second
1787
- 'communication' : Like (f'BATCH /{ self .current_year } /...' ),
1787
+ 'communication' : Like (f'PAY /{ self .current_year } /...' ),
1788
1788
}])
1789
1789
1790
1790
# Clicking on the button to full gets the amount from js, so we need to put it by hand here
@@ -1798,7 +1798,7 @@ def test_installment_mode_multiple_batches(self):
1798
1798
'payment_difference' : 0.5 ,
1799
1799
'installments_mode' : 'full' ,
1800
1800
'installments_switch_amount' : 57.83 , # The previous 'next' amount
1801
- 'communication' : Like (f'BATCH /{ self .current_year } /...' ),
1801
+ 'communication' : Like (f'PAY /{ self .current_year } /...' ),
1802
1802
}])
1803
1803
1804
1804
def test_payment_register_with_next_payment_date (self ):
0 commit comments