diff --git a/product/ERP5Banking/Document/CheckOperationLine.py b/product/ERP5Banking/Document/CheckOperationLine.py index 55a052d53b590321285246b5ef8917ed810d1180..dfb4b04883857d0c4e6fc8d93617499557558f8d 100755 --- a/product/ERP5Banking/Document/CheckOperationLine.py +++ b/product/ERP5Banking/Document/CheckOperationLine.py @@ -61,3 +61,24 @@ class CheckOperationLine(BaobabMixin, DeliveryLine): , PropertySheet.ItemAggregation ) + security.declareProtected(Permissions.View, 'getDestinationPaymentInternalBankAccountNumber') + def getDestinationPaymentInternalBankAccountNumber(self, default=None): + """ + Getter for internal account number + """ + dest = self.getDestinationPaymentValue(default) + if dest is default: + return default + else: + return dest.getInternalBankAccountNumber(default) + + security.declareProtected(Permissions.View, 'getSourcePaymentInternalBankAccountNumber') + def getSourcePaymentInternalBankAccountNumber(self, default=None): + """ + Getter for internal account number + """ + src = self.getSourcePaymentValue(default) + if src is default: + return default + else: + return src.getInternalBankAccountNumber(default)